Issue 4 in gmail-backup: Two digit year in email Date line gets put in 1970

7 views
Skip to first unread message

codesite...@google.com

unread,
Mar 20, 2012, 7:46:56 PM3/20/12
to py-gmai...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 4 by chrissha...@gmail.com: Two digit year in email Date line
gets put in 1970
http://code.google.com/p/gmail-backup/issues/detail?id=4

What steps will reproduce the problem?
1. Receive email with malformed Date line containing 2 digit year - Gmail
displays year correctly
2. Backup email

What is the expected output? What do you see instead?
Email should be stored either using 2 digit year or by guessing century
correctly or by extracting date from another field.
Email is actually stored and names as if the year were 1970

What version of the product are you using? On what operating system?
Revision 15 (2011-03-07)
Windows 7

Please provide any additional information below.

Here is a sample header. This should have been named
20090214-013902-ebay@ebay_co_uk-Your_watched_eBay_item_is_ending_soon
but was actually named
19700214-013902-ebay@ebay_co_uk-Your_watched_eBay_item_is_ending_soon

Delivered-To: XXXXXXXXXXXXXXXX
Received: by 10.210.125.6 with SMTP id x6cs104600ebc;
Sat, 21 Feb 2009 05:50:42 -0800 (PST)
Received: by 10.210.38.17 with SMTP id l17mr1585400ebl.192.1235224241384;
Sat, 21 Feb 2009 05:50:41 -0800 (PST)
Received-SPF: softfail (google.com: domain of transitioning unknown does
not designate <unknown> as permitted sender)
Received: by 10.241.103.25 with POP3 id 25mf293173ewy.7;
Sat, 21 Feb 2009 05:50:41 -0800 (PST)
X-Gmail-Fetch-Info: XXXXXXXXXXXXXXXX 2 pop.mail.yahoo.co.uk 110
XXXXXXXXXXXXXXXX
X-Apparently-To: XXXXXXXXXXXXXXXX via 212.82.104.165; Sat, 21 Feb 2009
12:54:32 +0000
X-YMailISG:
1.v1TqYWLDt9TeILKZBqRqO_2PIvv_8oRjsdgm3YE5RmEVjO.hPrdomrBYUp_lWERik2HF4VrVTeWR0en7LF9AL.W9_PPgLjd9u8Po6N46Xiv4n1yV6Jub35JbiFTqzdXZne2HecLjfneoz.2LBRmTAINWnXF3ha_mv2_kQhgw8RGS4fSy3ZaEwTiLL99mg.Vg4t9LByoPvbSbGvxsLH6_ltpCW_jZNhuLRvU2fGfYxXEpt7NuNq_JKBU0zEIJaQ9XLLNgjfSCiutpF3GT2vpA6qwyqEE74.wshdFMTLnzWEI0_0VRARkYWHn1S0hczb1EkMG2Nil3P3Rpls1cEZYi5c1PKjqx.k_2ciIayqn2XXfGm8A6pCVHsGtKxHNImfWcc-
X-Originating-IP: [66.135.209.216]
Authentication-Results: mta109.mail.ird.yahoo.com from=ebay.co.uk;
domainkeys=pass (ok); from=ebay.co.uk; dkim=neutral (no sig)
Received: from 66.135.209.216 (EHLO mxsmfpool01.ebay.com) (66.135.209.216)
by mta109.mail.ird.yahoo.com with SMTP; Sat, 21 Feb 2009 12:54:32 +0000
Received: from smfbat44.smf.ebay.com ([10.8.194.232])
by mxsmfpool01.ebay.com (8.13.8/8.13.8) with ESMTP id n1LCs8j0021741
for <XXXXXXXXXXXXXXXX>; Sat, 21 Feb 2009 05:54:31 -0700 (GMT)
DomainKey-Signature: a=rsa-sha1; s=dksm28; d=ebay.co.uk; c=nofws; q=dns;
h=x-ebay-mailtracker:to:from:mime-version:

content-transfer-encoding:content-type:subject:date:message-id:reply-to:x-ebay-mailversiontracker;
b=jsutyP5Hx5FMRz6JknmbwHfi56bzoGm0RI1iejEdg9m94iIyTHtj18etSKnBa+BFB
Mt/PpJQmk0Ue7hBACFYXw==
X-eBay-MailTracker: 11010.595.3.0
To: XXXXXXXXXXXXXXXX
From: eBay <eb...@ebay.co.uk>
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1
Subject: Your watched eBay item is ending soon: XXXXXXXXXXXXXXXX
Date: Sat, 21 Feb 09 05:54:05 GMT-0700
Message-ID: <21941109.1235220845672.JavaMail.ebba@smfbat44>
Reply-To: eb...@ebay.co.uk
X-eBay-MailVersionTracker: 595.7650636


codesite...@google.com

unread,
Mar 20, 2012, 7:54:00 PM3/20/12
to py-gmai...@googlegroups.com

Comment #1 on issue 4 by richar...@gmail.com: Two digit year in email

You're actually using this code? If I do take a look at the bug, you'd
have to tell me how you got it to work. Last I heard there were issues
with unicode and varying versions of the gmail access Python library it
depended on, and I haven't used it since I wrote it :-)

codesite...@google.com

unread,
Mar 20, 2012, 7:59:03 PM3/20/12
to py-gmai...@googlegroups.com

Comment #2 on issue 4 by chrissha...@gmail.com: Two digit year in email

Yup. I'd been using the one off http://www.gmail-backup.com/ for a couple
of years but then found this one. It seems to work fine for me, other than
the issue mentioned, which isn't really a big deal

codesite...@google.com

unread,
Mar 20, 2012, 8:03:06 PM3/20/12
to py-gmai...@googlegroups.com

Comment #3 on issue 4 by chrissha...@gmail.com: Two digit year in email

Sorry, I seem to have posted in the wrong place. I got mixed up with this
http://code.google.com/p/gmail-backup-com/
My bad

Reply all
Reply to author
Forward
0 new messages