[Zope-Checkins] CVS: Zope/lib/python/Products/MailHost - MailHost.py:1.74.6.1 version.txt:1.3.322.1

Torped Strategy and Communications info@torped.se
Fri, 11 Oct 2002 10:29:18 -0400


Update of /cvs-repository/Zope/lib/python/Products/MailHost
In directory cvs.zope.org:/tmp/cvs-serv14782/lib/python/Products/MailHost

Modified Files:
      Tag: Zope-2_6-branch
	MailHost.py version.txt 
Log Message:
Merge to Zope-2_6-branch:
Date is a required header in RFC822 and RFC2822, so MailHost now adds it if it doesn't exist.

=== Zope/lib/python/Products/MailHost/MailHost.py 1.74 => 1.74.6.1 ===
--- Zope/lib/python/Products/MailHost/MailHost.py:1.74	Wed Aug 14 18:14:51 2002
+++ Zope/lib/python/Products/MailHost/MailHost.py	Fri Oct 11 10:29:18 2002
@@ -203,6 +203,9 @@
     if mo.getheader('Bcc'):
         mo.__delitem__('Bcc')
 
+    if not mo.getheader('Date'):
+        mo['Date'] = DateTime().rfc822()
+
     mo.rewindbody()
     finalmessage = mo
     finalmessage = mo.__str__() + '\n' + mfile.read()


=== Zope/lib/python/Products/MailHost/version.txt 1.3 => 1.3.322.1 ===
--- Zope/lib/python/Products/MailHost/version.txt:1.3	Mon Dec 13 18:14:46 1999
+++ Zope/lib/python/Products/MailHost/version.txt	Fri Oct 11 10:29:18 2002
@@ -1 +1 @@
-MailHost-1-2-0
+MailHost-1-3-0