1 Return-Path: <j.schauer@email.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by arlo.cworth.org (Postfix) with ESMTP id 6CF796DE17BF
\r
6 for <notmuch@notmuchmail.org>; Wed, 22 Apr 2015 06:42:46 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.016 tagged_above=-999 required=5 tests=[AWL=0.005,
\r
12 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01,
\r
13 RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled
\r
14 Received: from arlo.cworth.org ([127.0.0.1])
\r
15 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id zZoZcPn1hnxl for <notmuch@notmuchmail.org>;
\r
17 Wed, 22 Apr 2015 06:42:44 -0700 (PDT)
\r
18 Received: from mout.web.de (mout.web.de [212.227.17.11])
\r
19 by arlo.cworth.org (Postfix) with ESMTPS id 141CA6DE1617
\r
20 for <notmuch@notmuchmail.org>; Wed, 22 Apr 2015 06:42:44 -0700 (PDT)
\r
21 Received: from localhost ([46.5.19.64]) by smtp.web.de (mrweb102) with ESMTPSA
\r
22 (Nemesis) id 0M6mPA-1ZW9sy1bU4-00wUfK for <notmuch@notmuchmail.org>;
\r
23 Wed, 22 Apr 2015 15:42:40 +0200
\r
24 Content-Type: multipart/signed; protocol="application/pgp-signature";
\r
25 micalg="pgp-sha256"; boundary="===============7396538308649467340=="
\r
27 Content-Disposition: inline
\r
28 From: Johannes Schauer <j.schauer@email.de>
\r
29 User-Agent: alot/0.3.6
\r
30 To: notmuch@notmuchmail.org
\r
31 References: <20150422065630.6330.90536@hoothoot>
\r
32 <m2vbgo8et0.fsf@guru.guru-group.fi>
\r
33 In-Reply-To: <m2vbgo8et0.fsf@guru.guru-group.fi>
\r
34 Message-ID: <20150422134239.6330.58670@hoothoot>
\r
35 Subject: Re: bug: notmuch cannot handle invalid Date fields
\r
36 Date: Wed, 22 Apr 2015 15:42:39 +0200
\r
37 X-Provags-ID: V03:K0:XFvPrMPO97gMKYKK+ZFaHjEU/NQN1bg0ohx++aFf+xhsw4arcrD
\r
38 t6632LATaFVbpxo+XDi3NfzysmV1Zz/3kb6/B7cPtuX/x3v0tp4j+WsLfTDqxQj7tyv5ywP
\r
39 QVn8MO3B1OGhJZiehPpNyh0YO9B7Ej3ffwgC6HzR80IhuV10eht+13lp1uPfqm8LyU3l8Ci
\r
40 ynFelJN2HcnxJC9sdGqiQ==
\r
41 X-UI-Out-Filterresults: notjunk:1;
\r
42 X-Mailman-Approved-At: Wed, 22 Apr 2015 06:45:51 -0700
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.18
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Wed, 22 Apr 2015 13:42:46 -0000
\r
57 --===============7396538308649467340==
\r
58 Content-Type: text/plain; charset="utf-8"
\r
60 Content-Transfer-Encoding: quoted-printable
\r
64 Quoting Tomi Ollila (2015-04-22 15:37:15)
\r
65 > What do you mean by that datetime cannot handle dates before 1900 ?
\r
69 > : Python 2.7.6 (default, Mar 22 2014, 22:59:56)
\r
71 > : >>> datetime.datetime.strptime('1799-11', '%Y-%m')
\r
72 > : datetime.datetime(1799, 11, 1, 0, 0)
\r
73 > : >>> x=3Ddatetime.datetime.strptime('1799-11', '%Y-%m')
\r
74 > : >>> x.isoformat()
\r
75 > : '1799-11-01T00:00:00'
\r
79 "The exact range of years for which strftime() works also varies across
\r
80 platforms. Regardless of platform, years before 1900 cannot be used."
\r
85 Python 2.7.9 (default, Dec 11 2014, 08:58:12) =
\r
87 [GCC 4.9.2] on linux2
\r
88 Type "help", "copyright", "credits" or "license" for more information.
\r
90 >>> x=3Ddatetime.datetime.strptime('1799-11', '%Y-%m')
\r
91 >>> x.strftime("%P")
\r
92 Traceback (most recent call last):
\r
93 File "<stdin>", line 1, in <module>
\r
94 ValueError: year=3D1799 is before 1900; the datetime strftime() methods req=
\r
100 --===============7396538308649467340==
\r
102 Content-Transfer-Encoding: 7bit
\r
103 Content-Description: signature
\r
104 Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
\r
106 -----BEGIN PGP SIGNATURE-----
\r
109 iQIcBAABCAAGBQJVN6VPAAoJEPLLpcePvYPh94MQALSyLX0DA3jJN7mZnexkJhxS
\r
110 5MlanN5d3nWsHvpL+BAGgfP1HKT6HdegwXh3rmJUKmNWkHq9VtZVVVN7Qkx8Ea06
\r
111 phjRlwRuR1Zl3HihYTbWZ3xCBOUM7QeVrT3APNJcixWmlJwNZq2q7QhCirqDh8cB
\r
112 vfheYBkoflsf2FQu2/B9g0AK6zCXh7eYXDSrinUVUkMOsyIQBkiSBM+OhpyncOFJ
\r
113 PCtNfof58TJKxXV5qoPxN02Emv6DPVFrULuKhrIlb2bq8LwGylerF65PGlz3MEJs
\r
114 i9kQ/NaSo9Ge2sL6ITz9Q2CEmJJ3Ys4jLtLOsouQ9OY9gWDvIdHiy4FpD8om/v8u
\r
115 XIjxIShHreAVQEB3olpooF70ZXmVh6tLVy4YJLQ+6hndN/bu2AYylbSWBl35J5Fm
\r
116 JLD0I6JbY1x2mr86FM3UM0xIHgFz8tKK9dPC8L+xvjfeskY9A3xRYLVP2vip3+sk
\r
117 /8b9Md1Lril9xGOBsqkzkhuV9duycUhpt6rhlQj0aqcx5LPWh8qPmn6aw/fb70lz
\r
118 dGc1Z3FkTrPGE7puJvdh6njZrbY/0PrctsyH+hQyVv5qhcv3p6i0i6c9AqyV6/qm
\r
119 8EQ+KzC+h9qUmxlwoZFQb5wie7Y+6g9Tko5dG19TOx72gFXLDPIcbsfJYuUgJBWW
\r
120 BeH8p/npuV8dsSr1hbZW
\r
122 -----END PGP SIGNATURE-----
\r
124 --===============7396538308649467340==--
\r