Tuesday, November 30

Managing mailing list via thunderbird

Today I was asked if i could generate a list of email addresses which were bouncing from out mailing lists. Fun!.

While I could of setup something to pull down the emails properly for me to check through them, I already had them in thunderbird and couldn't see the use in wasting the space and time.

What I did find is that you have a file under ~/.thunderbird//ImapMail//mail_dir which contains all of your emails in one large lump.

After a bit of fiddling I took this lump and ran it through :

awk '{for(i=1;i<=NF;i++){if ($(i) ~ /@/) print $i}}' $$$FILE$$$ | sort | uniq -ui >> email_list


which gave me an almost unique list of email addresses which were bouncing from our messages. Fun :)
Post a Comment

Search This Blog