Skip to content

Commit

Permalink
Revert "fix: apply workaround for clients that send auth=<>"
Browse files Browse the repository at this point in the history
This reverts commit 7cdfe27.
  • Loading branch information
YoRyan committed Jan 9, 2024
1 parent 7cdfe27 commit e2f7117
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/mailrise/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ async def handle_DATA(self, server: SMTP, session: Session, envelope: Envelope)

return '250 OK'

# pylint: disable=invalid-name,unused-argument
async def handle_EHLO(self, _server: SMTP, session: Session, _envelope: Envelope,
hostname: str, responses: list[str]) -> list[str]:
"""This hook is called during ``EHLO``."""
# Workaround for SMTP clients that use AUTH=<>
# https://github.com/aio-libs/aiosmtpd/issues/299#issuecomment-1427487291
session.host_name = hostname # type: ignore
return [r for r in responses if not r.startswith("250-AUTH")]


def _parsemessage(msg: StdlibEmailMessage, envelope: Envelope) -> r.EmailMessage:
"""Parses an email message into an `EmailNotification`.
Expand Down

0 comments on commit e2f7117

Please sign in to comment.