|
From: Kevin R. <ke...@ro...> - 2003-03-11 16:29:36
|
Hello cvs-syncmail folks,
The below explanation and patch were submitted by a Debian user:
--
Kevin Rosenberg | .''`. ** Debian GNU/Linux **
http://b9.com/debian.html | : :' : The universal
GPG signed and encrypted | `. `' Operating System
messages accepted. | `- http://www.debian.org/
> When cvs-syncmail sends an E-mail, the date header is not included in
> the E-mail. This causes some mail readers to sort the new E-mail
> incorrectly. This patch fixes the problem.
>
> -Tim Winter
--- /usr/bin/syncmail Sat Jan 18 11:35:16 2003
+++ syncmail Tue Mar 11 10:18:04 2003
@@ -262,6 +262,7 @@
'people' : string.join(people, COMMASPACE),
'subject' : subject,
'version' : __version__,
+ 'date' : time.strftime('%a, %d %b %Y %H:%M:%S +0000', time.gmtime())
}
print '''\
From: %(name)s <%(address)s>
@@ -271,6 +272,7 @@
print '''\
Subject: %(subject)s
X-Mailer: Python syncmail %(version)s <http://sf.net/projects/cvs-syncmail>
+Date: %(date)s
''' % vars
s.write(sys.stdin.read())
# append the diffs if available
|