in reply to Mail Processing

I would suggest using procmail instead of attempting to re-invent that wheel: http://partmaps.org/era/procmail/mini-faq.html

Replies are listed 'Best First'.
Re^2: Mail Processing
by gnosti (Chaplain) on May 31, 2011 at 01:12 UTC
    FWIW, Mail::Audit, and its successor Email::Filter, were actually developed in reaction to procmail's unusual syntax. Being able to put perl code in my filtering rules is a winner for me.