[Python-checkins] CVS: python/dist/src/Lib rfc822.py

Barry A. Warsaw bwarsaw@cnri.reston.va.us
Thu, 14 Jan 1999 15:00:00 -0500 (EST)


Update of /projects/cvsroot/python/dist/src/Lib
In directory anthem:/projects/python/develop/bwarsaw/pristine/Lib

Modified Files:
	rfc822.py 
Log Message:
Message.getaddrlist(): This now handles multiple occurances of the
named header, so that if a message has, e.g. multiple CC: lines, all
will get returned by the call to getaddrlist().  It also correctly
handles addresses which show up in continuation lines.

AdderlistClass.__init__(): Added \n to self.CR which fixes a bug that
sometimes, an address would contain a bogus trailing newline.

Message.getaddress(): In final else clause, added a test for the
character we're at being in self.specials.  Without this, such
characters never get consumed and we infloop.  Case in point (as
posted to c.l.py):

To: <[smtp:dd47@mail.xxx.edu]_at_hmhq@hdq-mdm1-imgout.companay.com>
----------------------------^
otherwise we'd infloop here