One day (about two hours ago), I was sitting, avidly working on Flock and using my compile times to attempt to get procmail working on my server so that I wouldn't have to add mail filtering rules to the G5.
I had tried a few times to get it up and running and was finally successful. Then the problems set in. I wanted to make sure to forward a copy of every message to my gmail account because sometimes on trips (read: Amsterdam) I don't have reliable access to internet with ports other than 80 open. Procmail isn't too nice about the kind of things where you want multiple destinations under various conditions. Loops are dumb.
After finally giving up on having slick sorting for the moment and just letting the thing send to gmail and leave a copy in default inbox, I did a quick search for "procmail python," hoping to find a script that I could filter things through to handle some of the more complex cases I had.
I was wonderfully rewarded.
Meet pycmail, Knight of RFC822, Procmail-Slayer. Wait, wait, I can use Python, a syntax that has /words/ and sane concepts to sort my mail? Ho-ly fuck. I am going to send this man money and then I am going to write a wicked-rad clone of the thing to add to my courriel library that currently does approximately nothing.
Technorati Tags: opensource, procmail, python