Re: bug: notmuch cannot handle invalid Date fields
authorJohannes Schauer <j.schauer@email.de>
Wed, 22 Apr 2015 13:42:39 +0000 (15:42 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:48:51 +0000 (14:48 -0700)
9f/035d47e42ab4e0f048a63d8dcb341a8fbfaeb5 [new file with mode: 0644]

diff --git a/9f/035d47e42ab4e0f048a63d8dcb341a8fbfaeb5 b/9f/035d47e42ab4e0f048a63d8dcb341a8fbfaeb5
new file mode 100644 (file)
index 0000000..ef4be82
--- /dev/null
@@ -0,0 +1,124 @@
+Return-Path: <j.schauer@email.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 6CF796DE17BF\r
+ for <notmuch@notmuchmail.org>; Wed, 22 Apr 2015 06:42:46 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.016\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.016 tagged_above=-999 required=5 tests=[AWL=0.005,\r
+  RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id zZoZcPn1hnxl for <notmuch@notmuchmail.org>;\r
+ Wed, 22 Apr 2015 06:42:44 -0700 (PDT)\r
+Received: from mout.web.de (mout.web.de [212.227.17.11])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 141CA6DE1617\r
+ for <notmuch@notmuchmail.org>; Wed, 22 Apr 2015 06:42:44 -0700 (PDT)\r
+Received: from localhost ([46.5.19.64]) by smtp.web.de (mrweb102) with ESMTPSA\r
+ (Nemesis) id 0M6mPA-1ZW9sy1bU4-00wUfK for <notmuch@notmuchmail.org>;\r
+ Wed, 22 Apr 2015 15:42:40 +0200\r
+Content-Type: multipart/signed; protocol="application/pgp-signature";\r
+ micalg="pgp-sha256"; boundary="===============7396538308649467340=="\r
+MIME-Version: 1.0\r
+Content-Disposition: inline\r
+From: Johannes Schauer <j.schauer@email.de>\r
+User-Agent: alot/0.3.6\r
+To: notmuch@notmuchmail.org\r
+References: <20150422065630.6330.90536@hoothoot>\r
+ <m2vbgo8et0.fsf@guru.guru-group.fi>\r
+In-Reply-To: <m2vbgo8et0.fsf@guru.guru-group.fi>\r
+Message-ID: <20150422134239.6330.58670@hoothoot>\r
+Subject: Re: bug: notmuch cannot handle invalid Date fields\r
+Date: Wed, 22 Apr 2015 15:42:39 +0200\r
+X-Provags-ID: V03:K0:XFvPrMPO97gMKYKK+ZFaHjEU/NQN1bg0ohx++aFf+xhsw4arcrD\r
+ t6632LATaFVbpxo+XDi3NfzysmV1Zz/3kb6/B7cPtuX/x3v0tp4j+WsLfTDqxQj7tyv5ywP\r
+ QVn8MO3B1OGhJZiehPpNyh0YO9B7Ej3ffwgC6HzR80IhuV10eht+13lp1uPfqm8LyU3l8Ci\r
+ ynFelJN2HcnxJC9sdGqiQ==\r
+X-UI-Out-Filterresults: notjunk:1;\r
+X-Mailman-Approved-At: Wed, 22 Apr 2015 06:45:51 -0700\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 22 Apr 2015 13:42:46 -0000\r
+\r
+--===============7396538308649467340==\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hi,\r
+\r
+Quoting Tomi Ollila (2015-04-22 15:37:15)\r
+> What do you mean by that datetime cannot handle dates before 1900 ?\r
+> =\r
+\r
+> :  $ python\r
+> :  Python 2.7.6 (default, Mar 22 2014, 22:59:56)\r
+> :  ...\r
+> :  >>> datetime.datetime.strptime('1799-11', '%Y-%m')\r
+> :  datetime.datetime(1799, 11, 1, 0, 0)\r
+> :  >>> x=3Ddatetime.datetime.strptime('1799-11', '%Y-%m')\r
+> :  >>> x.isoformat()\r
+> :  '1799-11-01T00:00:00'\r
+\r
+from the docs:\r
+\r
+"The exact range of years for which strftime() works also varies across\r
+platforms. Regardless of platform, years before 1900 cannot be used."\r
+\r
+or:\r
+\r
+$ python\r
+Python 2.7.9 (default, Dec 11 2014, 08:58:12) =\r
+\r
+[GCC 4.9.2] on linux2\r
+Type "help", "copyright", "credits" or "license" for more information.\r
+>>> import datetime\r
+>>> x=3Ddatetime.datetime.strptime('1799-11', '%Y-%m')\r
+>>> x.strftime("%P")\r
+Traceback (most recent call last):\r
+  File "<stdin>", line 1, in <module>\r
+ValueError: year=3D1799 is before 1900; the datetime strftime() methods req=\r
+uire year >=3D 1900\r
+\r
+\r
+cheers, josch\r
+\r
+--===============7396538308649467340==\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: 7bit\r
+Content-Description: signature\r
+Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v2\r
+\r
+iQIcBAABCAAGBQJVN6VPAAoJEPLLpcePvYPh94MQALSyLX0DA3jJN7mZnexkJhxS\r
+5MlanN5d3nWsHvpL+BAGgfP1HKT6HdegwXh3rmJUKmNWkHq9VtZVVVN7Qkx8Ea06\r
+phjRlwRuR1Zl3HihYTbWZ3xCBOUM7QeVrT3APNJcixWmlJwNZq2q7QhCirqDh8cB\r
+vfheYBkoflsf2FQu2/B9g0AK6zCXh7eYXDSrinUVUkMOsyIQBkiSBM+OhpyncOFJ\r
+PCtNfof58TJKxXV5qoPxN02Emv6DPVFrULuKhrIlb2bq8LwGylerF65PGlz3MEJs\r
+i9kQ/NaSo9Ge2sL6ITz9Q2CEmJJ3Ys4jLtLOsouQ9OY9gWDvIdHiy4FpD8om/v8u\r
+XIjxIShHreAVQEB3olpooF70ZXmVh6tLVy4YJLQ+6hndN/bu2AYylbSWBl35J5Fm\r
+JLD0I6JbY1x2mr86FM3UM0xIHgFz8tKK9dPC8L+xvjfeskY9A3xRYLVP2vip3+sk\r
+/8b9Md1Lril9xGOBsqkzkhuV9duycUhpt6rhlQj0aqcx5LPWh8qPmn6aw/fb70lz\r
+dGc1Z3FkTrPGE7puJvdh6njZrbY/0PrctsyH+hQyVv5qhcv3p6i0i6c9AqyV6/qm\r
+8EQ+KzC+h9qUmxlwoZFQb5wie7Y+6g9Tko5dG19TOx72gFXLDPIcbsfJYuUgJBWW\r
+BeH8p/npuV8dsSr1hbZW\r
+=jzje\r
+-----END PGP SIGNATURE-----\r
+\r
+--===============7396538308649467340==--\r