Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 94CCE431FD0 for ; Sun, 23 Oct 2011 14:43:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.001 X-Spam-Level: X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3QdQckr8VSfb for ; Sun, 23 Oct 2011 14:42:58 -0700 (PDT) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by olra.theworths.org (Postfix) with SMTP id 2B8D5431FB6 for ; Sun, 23 Oct 2011 14:42:58 -0700 (PDT) Received: (qmail invoked by alias); 23 Oct 2011 21:42:57 -0000 Received: from p54BE2C59.dip.t-dialin.net (EHLO shi.workgroup) [84.190.44.89] by mail.gmx.net (mp011) with SMTP; 23 Oct 2011 23:42:57 +0200 X-Authenticated: #19296480 X-Provags-ID: V01U2FsdGVkX19W5O9jdDpWKNveiYzdYHyMLohipgmiNpojcDE3aw QH6YMmLy4w+q2i Received: from grfz by shi.workgroup with local (Exim 4.77) (envelope-from ) id 1RI5ok-000716-Ba; Sun, 23 Oct 2011 23:42:54 +0200 From: Gregor Zattler To: Ivy Foster , Gregor Zattler , notmuch Subject: Re: search for date received possible? In-Reply-To: <87vcrfvemq.fsf@nausicaa.localdomain> References: <20111023145329.GB21842@shi.workgroup> <87vcrfvemq.fsf@nausicaa.localdomain> User-Agent: Notmuch/0.9 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu) Date: Sun, 23 Oct 2011 23:42:54 +0200 Message-ID: <87ehy35qqp.fsf@shi.workgroup> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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, 23 Oct 2011 21:43:02 -0000 Hi Ivy, On Sun, 23 Oct 2011 12:47:41 -0400, Ivy Foster wrote: > On Sun, 23 Oct 2011 16:53:29 +0200, Gregor Zattler wrote: > > is it possible to limit searches to date received ranges > > instead of date (sent) ranges? > > If your mail is delivered by procmail, I know you can insert > arbitrary headers as part of the mail-processing stage, > generally using formail. Such a recipe could look something > like this: > > NOW=$(date) > :0 fhw > | /usr/bin/formail -a "X-Date-Received: " $NOW Obviously I miss something here? There are already Received:-Headers in emails which contain the date when the mail was received. How do I search on arbitrary headers? This is especially difficult since date specifications are so complex. Ciao; gregor