From: Edgar Hipp <contact@javascript-ninja.fr>
To: <notmuch@notmuchmail.org>
Subject: Adding support for notmuch-address --output=sender --output=date
Date: Thu, 27 Oct 2022 16:15:16 +0200 [thread overview]
Message-ID: <20221027141516.dc2ifkgwvvtjlad3@xenophon> (raw)
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
reply other threads:[~2022-10-27 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221027141516.dc2ifkgwvvtjlad3@xenophon \
--to=contact@javascript-ninja.fr \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).