diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-05-04 22:21:59 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2001-05-04 22:21:59 +0000 |
commit | 45b50cfab01bbc44ae564155e1a2aaa00a57703e (patch) | |
tree | 4a041b40ccd6b45a1ece8cac1a108341808c01b4 /mail/pygmy | |
parent | Upgrade to 2.3.20010503. (diff) |
When parsing `Date' header use function that respects sender's timezone. This
makes pygmy usable for FreeBSD lists ;).
Notes
Notes:
svn path=/head/; revision=42262
Diffstat (limited to 'mail/pygmy')
-rw-r--r-- | mail/pygmy/files/patch-folderops.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/pygmy/files/patch-folderops.py b/mail/pygmy/files/patch-folderops.py new file mode 100644 index 000000000000..ab21aff2ec6e --- /dev/null +++ b/mail/pygmy/files/patch-folderops.py @@ -0,0 +1,28 @@ + +$FreeBSD$ + +--- folderops.py 2001/05/04 21:59:28 1.1 ++++ folderops.py 2001/05/04 22:14:52 +@@ -295,7 +295,7 @@ + ## + ## + def create_folder_index(pathname, start=0): +- import pygmymailbox, time, marshal, os, string, mimify ++ import pygmymailbox, time, marshal, os, string, mimify, rfc822 + from string import replace, join + from posixpath import split + +@@ -342,11 +342,11 @@ + subject = replace(subject, '\n', '') + subject = replace(subject, '\r', '') + # Get the Date: field +- date = m.getdate('date') or "" ++ date = m.getdate_tz('date') or "" + if date != "": + # Convert to epoch value + try: +- date = time.mktime(date) ++ date = rfc822.mktime_tz(date) + except: + date = time.time() + else: |