[Python-bugs-list] [Bug #124344] smtplib quoteaddr() has problems with RFC821 source routing

noreply@sourceforge.net noreply@sourceforge.net
Mon, 4 Dec 2000 02:50:58 -0800


Bug #124344, was updated on 2000-Dec-04 02:50
Here is a current snapshot of the bug.

Project: Python
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: carey
Assigned to : Nobody
Summary: smtplib quoteaddr() has problems with RFC821 source routing

Details: RFC821 defines source routed SMTP addresses of the form <@USC-ISIE.ARPA:JQP@MIT-AI.ARPA>.  RFC1123 (STD3) deprecates these kinds of addresses, but does not forbid them.

If an address like this is passed to smtplib.quoteaddr(), the result is '<@USC-ISIE.ARPA>', which is useless, and illegal according to RFC821.  smtplib should probably leave the source routing there, assuming anyone using an address like this knows what they're doing, and since any SMTP server "MUST" still accept this syntax.

Alternatively, smtplib could just refuse to deliver to an address like this, with some justification.  (RFC1123 section 5.2.19.)

In any case, this isn't very important at all.  I'll probably write a patch when I have some time, using one of the two solutions outlined above.


For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=124344&group_id=5470