[issue19678] smtpd.py: channel should be passed to process_message

Leslie P. Polzer report at bugs.python.org
Thu Nov 21 11:56:50 CET 2013


New submission from Leslie P. Polzer:

process_message needs to have access to the channel state since it needs to make decisions based on the authentication or transport associated with the channel. It should be either the first or the last arg.

I can provide a patch for this. Should backwards compatibility be achieved by using the inspect module to check the signature of process_message and call it accordingly?

----------
components: Library (Lib), email
messages: 203609
nosy: barry, lpolzer, r.david.murray
priority: normal
severity: normal
status: open
title: smtpd.py: channel should be passed to process_message
type: enhancement
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19678>
_______________________________________


More information about the Python-bugs-list mailing list