CVS: tmda/TMDA/pythonlib/email Message.py,1.4,1.5 __init__.py,1.9,1.10 _compat22.py,1.3,1.4 _parseaddr.py,1.4,1.5
"Jason R. Mastaler" <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tmda/tmda/TMDA/pythonlib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv8836
Modified Files:
Message.py __init__.py _compat22.py _parseaddr.py
Log Message:
sync with email v2.5.2
Index: Message.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/Message.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Message.py 11 Mar 2003 20:39:01 -0000 1.4
+++ Message.py 15 May 2003 21:54:51 -0000 1.5
@@ -102,6 +102,10 @@
"""Return the entire formatted message as a string.
Optional `unixfrom' when True, means include the Unix From_ envelope
header.
+
+ This is a convenience method and may not generate the message exactly
+ as you intend. For more flexibility, use the flatten() method of a
+ Generator instance.
"""
from email.Generator import Generator
fp = StringIO()
Index: __init__.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/__init__.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- __init__.py 31 Mar 2003 18:43:48 -0000 1.9
+++ __init__.py 15 May 2003 21:54:51 -0000 1.10
@@ -4,7 +4,7 @@
"""A package for parsing, handling, and generating email messages.
"""
-__version__ = '2.5.1'
+__version__ = '2.5.2'
__all__ = [
'base64MIME',
Index: _compat22.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/_compat22.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- _compat22.py 26 Mar 2003 19:02:10 -0000 1.3
+++ _compat22.py 15 May 2003 21:54:51 -0000 1.4
@@ -9,7 +9,7 @@
from cStringIO import StringIO
from types import StringTypes
-# Python 2.2.x where x < 2 lacks True/False
+# Python 2.2.x where x < 1 lacks True/False
try:
True, False
except NameError:
Index: _parseaddr.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/pythonlib/email/_parseaddr.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- _parseaddr.py 17 Mar 2003 18:41:28 -0000 1.4
+++ _parseaddr.py 15 May 2003 21:54:51 -0000 1.5
@@ -54,9 +54,8 @@
del data[0]
else:
i = data[0].rfind(',')
- if i < 0:
- return None
- data[0] = data[0][i+1:]
+ if i >= 0:
+ data[0] = data[0][i+1:]
if len(data) == 3: # RFC 850 date, deprecated
stuff = data[0].split('-')
if len(stuff) == 3:
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs