[Patches] [ python-Patches-1464708 ] fixed handling of nested comments in mail addresses

SourceForge.net noreply at sourceforge.net
Wed Apr 5 08:38:17 CEST 2006


Patches item #1464708, was opened at 2006-04-05 06:35
Message generated for change (Comment added) made by wamcvey
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1464708&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: William McVey (wamcvey)
Assigned to: Nobody/Anonymous (nobody)
Summary: fixed handling of nested  comments in mail addresses

Initial Comment:
RFC 2822 allows for comments to include other comments
in a mail address. email.Utils.getaddresses() handled
addresses with a comment, but incorrectly advanced the
parsing index twice after a comment finished. This
would cause the outer closing paren in an address like:
    Foo ((FOO Rocks)) <foo at bar.com>
to be missed, and treating the rest of the line as part
of the outer comment.

This patch fixes the bug and adds a testcase to look
for the bug.

----------------------------------------------------------------------

>Comment By: William McVey (wamcvey)
Date: 2006-04-05 06:38

Message:
Logged In: YES 
user_id=25956

hmm, didn't seem to attach my patch the first time. Let's
try adding it again.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1464708&group_id=5470


More information about the Patches mailing list