Kaydet (Commit) 31137658 authored tarafından R David Murray's avatar R David Murray

#19662: Make requirement to support arbitrary keywords explicit.

When not using decode_data=True, smtpd may provide keyword arguments to the
process_message user-implemented method.  This doc update is intended to make
it clear that arbitrary keywords must be supported, so that we can add
additional features in the future by just adding keywords to the
process_message call.
üst cee7cf60
...@@ -89,6 +89,10 @@ SMTPServer Objects ...@@ -89,6 +89,10 @@ SMTPServer Objects
Currently no ``RCPT TO`` options are supported, so for now Currently no ``RCPT TO`` options are supported, so for now
this will always be an empty list. this will always be an empty list.
Implementations of ``process_message`` should use the ``**kwargs``
signature to accept arbitrary keword arguments, since future feature
enhancements may add keys to the kwargs dictionary.
Return ``None`` to request a normal ``250 Ok`` response; otherwise Return ``None`` to request a normal ``250 Ok`` response; otherwise
return the desired response string in :RFC:`5321` format. return the desired response string in :RFC:`5321` format.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment