Fix unencrypted delivery arguments

When falling back to unencrypted mail delivery, do not pass sender information
to SendFrom.call method.
This commit is contained in:
Piotr F. Mieszkowski 2023-09-21 20:00:22 +02:00
parent 401f67844a
commit fccabc083c
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class MailEncryptionProxy:
def _send_unencrypted(self, operation, message, envelope, send: xport.SendFrom):
keep = KeepIntact(operation.recipients())
new_message = keep.perform(message)
send(new_message, operation.recipients(), envelope.mail_from)
send(new_message, operation.recipients())
def _beginning(self, e: Envelope) -> bytes:
double_eol_pos = e.original_content.find(DOUBLE_EOL_BYTES)