unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Feature request: search for last N modified mails
@ 2016-12-02 14:01 Ico
  2016-12-03 13:22 ` cesar mena
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ico @ 2016-12-02 14:01 UTC (permalink / raw)
  To: notmuch


My normal mail workflow is to keep todo's in my inbox; these can be a few days
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 modified
              mails. Where 'modified' would probably mean changing tags
14:41 < bremner> Zevv: you can get the current value from notmuch count --lastmod '*'
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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-09-03 11:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 14:01 Feature request: search for last N modified mails Ico
2016-12-03 13:22 ` cesar mena
2022-08-08 11:50 ` [PATCH] WIP: provide relative lastmod sexp queries David Bremner
2022-08-09 11:25   ` [PATCH 2/3] WIP/lib: factor out lastmod range handling from sexp parser David Bremner
2022-08-09 11:25     ` [PATCH 3/3] WIP/lib: use common lastmod logic in infix parser David Bremner
2022-09-03 11:51 ` Feature request: search for last N modified mails David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).