Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maildir capture: added early check. #4

Merged
merged 3 commits into from
May 26, 2021

Conversation

bernhardreiter
Copy link
Contributor

Addresses #3

@matrixise
Copy link
Owner

Nice, I have never seen this PR, I am going to check the code and will merge it asap

@bernhardreiter
Copy link
Contributor Author

@matrixise ping?

 * Use the recommended process_message() signature for smtpd.DebuggingServer
   to avoid errors like <class 'TypeError'>:process_message() got an unexpected keyword argument 'mail_options' [/usr/lib/python3.8/asyncore.py|read|83] [/usr/lib/python3.8/asyncore.py|handle_read_event|420] [/usr/lib/python3.8/asynchat.py|handle_read|171] [/usr/lib/python3.8/smtpd.py|found_terminator|386]

 * Be dynamic about what type is the data argument when
   process_message() is called as with python 3.5 it is `str` where
   with python 3.8 ist is `bytes` without other changes.
Copy link
Owner

@matrixise matrixise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution

@matrixise matrixise merged commit 09ef233 into matrixise:master May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants