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


In reply to Re: does MIME::Lite or Net::SMTP provide forward mail function ... by Coyote
in thread does MIME::Lite or Net::SMTP provide forward mail function ..... ANY OTHER OPTIONS ?? by Ah CHU

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.