Are you looking for something like procmail? Procmail allows you to apply filtering and processing rules to incomming mail. With procmail, you can do things like forward all mail with a certain string in the title to another address, move mail comming from a mailing list to a specific folder, send mail that is not addressed directly to you (spam) to the trash and so on. Procmail is a UNIX utility, however
Mail::Audit and
Mail::Procmail provide similar functionality in pure perl. You can use these modules in conjunction to one of the mail client modules (i.e.,
Net::Pop3), a mailserver such as
Mercury and NT's at command to simulate the functionality of procmail. Hope this helps.
----
Coyote