summaryrefslogtreecommitdiffstats
path: root/Lib/rfc822.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2006-05-01 03:03:02 (GMT)
committerBarry Warsaw <barry@python.org>2006-05-01 03:03:02 (GMT)
commitdbcc8d9b24496ca55dd349cd2eb5273cf6723343 (patch)
tree3db32de8b91c37685d38008263918773fcc41a39 /Lib/rfc822.py
parent09612281efc664a7705014349791cbfbb7af15bc (diff)
downloadcpython-dbcc8d9b24496ca55dd349cd2eb5273cf6723343.zip
cpython-dbcc8d9b24496ca55dd349cd2eb5273cf6723343.tar.gz
cpython-dbcc8d9b24496ca55dd349cd2eb5273cf6723343.tar.bz2
Port forward from 2.4 branch:
Patch #1464708 from William McVey: fixed handling of nested comments in mail addresses. E.g. "Foo ((Foo Bar)) <foo@example.com>" Fixes for both rfc822.py and email package. This patch needs to be back ported to Python 2.3 for email 2.5.
Diffstat (limited to 'Lib/rfc822.py')
-rw-r--r--Lib/rfc822.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 871a049..d6d5e47 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -700,6 +700,7 @@ class AddrlistClass:
break
elif allowcomments and self.field[self.pos] == '(':
slist.append(self.getcomment())
+ continue # have already advanced pos from getcomment
elif self.field[self.pos] == '\\':
quote = 1
else: