From dbcc8d9b24496ca55dd349cd2eb5273cf6723343 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 1 May 2006 03:03:02 +0000 Subject: Port forward from 2.4 branch: Patch #1464708 from William McVey: fixed handling of nested comments in mail addresses. E.g. "Foo ((Foo Bar)) " Fixes for both rfc822.py and email package. This patch needs to be back ported to Python 2.3 for email 2.5. --- Lib/email/_parseaddr.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/email/_parseaddr.py') diff --git a/Lib/email/_parseaddr.py b/Lib/email/_parseaddr.py index 5821ddf090..a08c43e7f4 100644 --- a/Lib/email/_parseaddr.py +++ b/Lib/email/_parseaddr.py @@ -367,6 +367,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 = True else: -- cgit v1.2.1