2020-12-27

deleting old email

tags: data

Alex Schröder reminds us:

Data parsimony demands that we don’t collect the data we don’t need; that we don’t store the data we collect; that we don’t keep the data we store. Delete that shit!

gemini://alexschroeder.ch/page/2020-12-22_Crawling

local copy

So today I went ahead and removed 5 old mailboxes in odd formats. Nowadays I use emacs/mu4e and I did not feel inclined to import the old stuff. I did search for and find two text documents from 2001, which I moved into the Archive directory, something like my personal timeline.

But before calling rm I decided to have some fun with them mail boxes. Using a few shell commands I found this:

No, I did not look at them. I did not waste countless hours trying to freshen my memories about things long forgotten. I will admit that I pulled an email address from these files a few weeks back, but it was not really important or a live saver. I did send a message to that email address, however, and I got a nice reply, too!

So, on to the 37000 emails in my current mailbox? Hmm. Maybe I should archive this stuff once a year and start over. Just wondering ...

$ find Maildir/ -type f | xargs grep -h '^Date: ' | sed 's/^Date: //' | dateutils.dconv -i "%a, %d %b %Y" -i "%d %b %Y" -f ymd 2>/dev/null | sed 's/-..-..$//' | sort | uniq -c
    108 2004
    455 2005
    344 2006
...
   3843 2018
   3529 2019
   4485 2020

So I deleted 100 MiB and kept 2700 MiB --- oh my!

Cheers,

~ew

Home