Milan Oberkirch added the comment:

I see no reason to restrict the filtering possibilities to the domain, so I 
added a method "validate_recipient_address" wich gets an address of the form 
"local-part@domain" and returns `True`.
SMTPChannel.smtp_RCPT checks any address with this method before appending it 
to the recipient list and returns "554 ..." as proposed by Mike if the 
validation failed.

----------
components: +email
keywords: +patch
nosy: +barry, jesstess, r.david.murray, zvyn
Added file: http://bugs.python.org/file35560/issue8503.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8503>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to