Skip to content

Simple python script to display mails counts grouped by sender. Useful to free up space on your mailbox.

Notifications You must be signed in to change notification settings

adipasquale/mbox-sender-frequency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Mbox Sender Frequency

This very small tool will display mail counts grouped by sender. This is helpful to identify automated notification mails that you may want to delete from your mailbox to free up some space.

If you're curious, I wrote a blogpost in which I explain the context in which I needed this script, namely to leave GMail.

Usage

Clone this repo somewhere or download the standalone python script. You can then simply use it with :

python list_senders.py [-h] [--threshold THRESHOLD] [--group-by-email]
                       mbox_path

for example :

usage example

Getting your mbox file from GMail

Head to Google Takeout, select Mails, and opt for the file download link version. Then be patient, and you will receive a mail with a link to your own mbox file within a few hours / days.

Limitations

This was not optimized at all, so it may be quite slow, however it ran on my 4GB file within a few minutes, which was acceptable to me.

About

Simple python script to display mails counts grouped by sender. Useful to free up space on your mailbox.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages