Update of /cvsroot/tmda/tmda/TMDA/pythonlib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv32310/pythonlib/email
Modified Files:
_parseaddr.py
Log Message:
Sync email with Python CVS. Fixes the Pine ``foo: ;'' bug reported
by Chris Hardie.
Index: _parseaddr.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/_parseaddr.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- _parseaddr.py 7 Jan 2003 00:03:03 -0000 1.3
+++ _parseaddr.py 17 Mar 2003 18:41:28 -0000 1.4
@@ -196,12 +196,12 @@
Returns a list containing all of the addresses.
"""
result = []
- while True:
+ while self.pos < len(self.field):
ad = self.getaddress()
if ad:
result += ad
else:
- break
+ result.append(('', ''))
return result
def getaddress(self):
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs