Skip to content

Commit

Permalink
Fix incorrect variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Boenninghausen committed Oct 28, 2024
1 parent 891000a commit 0986a77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, smtp_out):
async def handle_DATA(self, server, session, envelope):
# peer, mail_from, mail_to, rcpt_tos and data are now all encapsulated in 'envelope'
# keep in mind that envelope.data contains raw bytes which first have to be decoded
mail = mime_string_to_text_mail(envelope.data.decode("utf-8"))
mail = mime_string_to_text_mail(envelope.content.decode("utf-8"))
logger.info("Received mail from " + str(mail.sender) + " addressed to " + str(mail.receiver))
self.swap_sender_receiver(mail)
self.modify_text(mail)
Expand Down

0 comments on commit 0986a77

Please sign in to comment.