unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Adding support for notmuch-address --output=sender --output=date
@ 2022-10-27 14:15 Edgar Hipp
  0 siblings, 0 replies; only message in thread
From: Edgar Hipp @ 2022-10-27 14:15 UTC (permalink / raw)
  To: notmuch

Hello !

I really love the simplicity of notmuch.

I'm currently creating a script that uses the output of :

notmuch address --output=sender --output=count

I'd very much like to have a way to also know, for each address, when
was the last time I got or sent an email to that person.

Something like this : 

notmuch address --output=sender --output=count --output=date

Which would return : 

10	2022-10-27T16:12:00+02:00	contact@javascript-ninja.fr

I could do this manually in a script to search for each address, when
was the last email sent or received but this will obviously require one
call to notmuch for each address and take a lot of time.

Maybe one would need to use two flags : 

--output=date-first
--output=date-last

Where date-first would be the first date of contact (for example 2020-03-11T14:15:00+02:00)

And date-last the last date of contact (for example 2022-10-27T16:12:00+02:00)

Best,

Edgar

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-27 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27 14:15 Adding support for notmuch-address --output=sender --output=date Edgar Hipp

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).