|August 14th, 2009|
|statmbx, programming, email [html]|
- Listing the contents of my mailboxes when I have a lot of mail and want to see what needs dealing with
- Checking if I have anything new to deal with since I last ran it.
From email@example.com Fri Aug 14 15:42:23 2009 Subject: EFFector 22.23: Locational Privacy -- Who Knows Where You Are, And Wh Folder: /var/mail/jeff From firstname.lastname@example.org Fri Aug 14 15:50:36 2009 Subject: Medications that you need. Folder: probably-spam 2012 From email@example.com Fri Aug 14 16:12:01 2009 Subject: sorry I missed you. Folder: /var/mail/jeff 1498 From firstname.lastname@example.org Fri Aug 14 16:29:24 2009 Subject: If you want to change your style, start with a watch. Folder: probably-spam 2906 From email@example.com Fri Aug 14 16:29:44 2009 Subject: Save some funk for Sunday Folder: probably-spam 1510All I need to do is pretty this up, strip out the probably-spam entires, and display it as it comes in. So a little python program, clean_pmlog.py, and a tail -f and we're set:
email_bounce_handler@ ... EFFector 22.23: Locational Privacy -- Who Knows Where You Are, And Wh firstname.lastname@example.org sorry I missed you.I alias wmail to 'tail -f ~/procmail/pmlog | python ~/clean_pmlog.py' and leave it running. Now I hope I can get away from compulsively running my statmbx program to see if I've gotten new mail. Update: After starting to use this, I've realized that the from address it has is the envelope sender. Which is usually the same as the sender, unless there's a mailing list involved. So this is less useful for mailing lists than it could be, especially when there's lots of traffic on one list and it all has the same subject. But I run statmbx a lot less now.
Comment via: facebook