Adding support for notmuch-address --output=sender --output=date

Subject: Adding support for notmuch-address --output=sender --output=date

Date: Thu, 27 Oct 2022 16:15:16 +0200

To: notmuch@notmuchmail.org

Cc:

From: Edgar Hipp


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
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: