>> (P.S. I am very much aware of the existence of procmail, TMDA etc. My >> requirements are very specific and requires integration with another >> program, so I am only interested in getting a custom solution).
Tim> But are you aware that a procmail recipe can feed a message through Tim> a filter, and then pass the results of that filter back in to the Tim> e-mail system for further processing? Should the OP need further evidence that this is possible, this is exactly how I use SpamBayes [1]. Skip [1] http://www.spambayes.org/ -- http://mail.python.org/mailman/listinfo/python-list