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 A5DC66DE0A5B for ; Fri, 2 Dec 2016 06:01:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.011 X-Spam-Level: X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_NONE=-0.0001, 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 FJauD2A3fZeJ for ; Fri, 2 Dec 2016 06:01:25 -0800 (PST) Received: from fe2.pruts.nl (pruts.nl [82.94.235.106]) by arlo.cworth.org (Postfix) with ESMTP id 605666DE0A53 for ; Fri, 2 Dec 2016 06:01:25 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by fe2.pruts.nl (Postfix) with ESMTP id C79C31400A3 for ; Fri, 2 Dec 2016 15:01:17 +0100 (CET) X-Virus-Scanned: amavisd-new at pruts.nl Received: from fe2.pruts.nl ([IPv6:::ffff:127.0.0.1]) by localhost (fe2.local [::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KdrI4HC+Q+V0 for ; Fri, 2 Dec 2016 15:01:15 +0100 (CET) Received: by fe2.pruts.nl (Postfix, from userid 1000) id ABE731400C5; Fri, 2 Dec 2016 15:01:15 +0100 (CET) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: notmuch@notmuchmail.org Message-ID: <20161202140115.62194.22060@localhost.localdomain> From: Ico User-Agent: alot/0.3.7 Subject: Feature request: search for last N modified mails Date: Fri, 02 Dec 2016 15:01:15 +0100 X-Mailman-Approved-At: Fri, 02 Dec 2016 06:43:14 -0800 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: Fri, 02 Dec 2016 14:01:26 -0000 My normal mail workflow is to keep todo's in my inbox; these can be a few d= ays or weeks old if I'm lazy. Every now and then I find myself accidentally removing things from the inbox, and I have a very hard time finding things back. As discussed on #notmuch IRC today: I'd like to request a feature for searching for the last N modified mails, as notmuch already has this info in the database. bremner suggested this could be implemented using with a query like lastmod:-10 14:39 < Zevv> basically, I'd like to be able to search for the last 10 modi= fied mails. Where 'modified' would probably mean changing tags 14:41 < bremner> Zevv: you can get the current value from notmuch count --l= astmod '*' 14:41 < bremner> then basically every tag change increments it 14:42 < bremner> so I guess subtract 10 and search? 14:44 < Zevv> Hm that would make it hard to use it as a simple query for in= alot 14:45 < bremner> yes. 14:45 < bremner> I never thought about it before, but it would be possible = to impliment lastmod:-10 14:47 < Zevv> that would be extremely handy -- :wq ^X^Cy^K^X^C^C^C^C