Re: Statistics about senders with notmuch possible?

Subject: Re: Statistics about senders with notmuch possible?

Date: Tue, 28 Dec 2021 11:47:08 +0100

To: notmuch@notmuchmail.org

Cc:

From: Michael J Gruber


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

Thread: