Michele Orrù <maker...@gmail.com> added the comment:

Patch attached.
A few considerations: in case of syntax error, the server responds with " MAIL 
FROM:<address> [SP <mail-parameters> ] <CRLF>" according to 
http://tools.ietf.org/html/rfc5321#section-3.3 (instead of "MAIL 
FROM:<address>"). Note that this could break something, as far as backwards 
compatibility is concerned. 
Looking at http://tools.ietf.org/html/rfc3030#section-4.2 , I was wondering 
whether the size parameter on MAIL FROM should have implications on the RCPT TO 
command (i.e., we should check that the foreign email accepts that size).
Finally, right now the size parameter is not considered until greater than 
max_message_size. This could let the user push an email with a size greater 
than the on declared (but smaller than max_message_size).

Tests for command line and cleanup will be on another issue.

Waiting for directives :) ,
-- 
ù

----------
Added file: http://bugs.python.org/file24793/issue8739.patch

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

Reply via email to