From: Michael J Gruber <michaeljgruber+grubix+git@gmail.com>
To: notmuch@notmuchmail.org
Subject: Re: Statistics about senders with notmuch possible?
Date: Tue, 28 Dec 2021 11:47:08 +0100 [thread overview]
Message-ID: <164068842830.6452.17697963800602811854.michaeljgruber+grubix+git@gmail.com> (raw)
In-Reply-To: <9fcfcd939fe28bc87fbdb3bb25323fd1@cock.li>
signmeup1337@cock.li venit, vidit, dixit 2021-12-27 23:57:18:
> I would like to create some kind of statistics to see from which sender
> I've got the most emails, having something like a TOP 10 list.
>
> In the end of every year I delete all my emails, which are not marked as
> archive and this year I got over 4.000 and most of them are just
> notifications (like ebay, if someone buys something). But I really would
> like to figure out where else the most mails are coming from to avoid
> them in the next year.
>
> Is something like this possible with notmuch?
`notmuch address` should provide everything you want (bar the sorting):
`notmuch address --output=count --deduplicate=address date:2021 | sort -nr | head -n 10`
Leave out the dedup option if you want to distinguish senders by the
full mailbox address. And, of course, amend the query any way you want.
That's the beauty of notmuch's modular approach.
Cheers
Michael
next prev parent reply other threads:[~2021-12-28 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-27 22:57 Statistics about senders with notmuch possible? signmeup1337
2021-12-28 10:47 ` Michael J Gruber [this message]
2022-01-07 17:32 ` Carl Worth
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=164068842830.6452.17697963800602811854.michaeljgruber+grubix+git@gmail.com \
--to=michaeljgruber+grubix+git@gmail.com \
--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).