i had this exact same problem and couldnt find a solution that worked 
unfortunately. however while browsing freshmeat.net the other day i say a 
programme called getmail that apparently does it very well.

worth checking out i suspect

At 14:41 3/01/2001 +0100, Martin Man wrote:
>Hi gurus,
>         which tool would you suggest me to use for simple mail sorting for my
>small company. Let's say we're getting email for our domain via POP from 
>one POP
>account and I've to distribute appropriate email messages to
>appropriate mailboxes according to To: and Cc: headers.
>
>         The procmail fails when someone sends an email to 
> [EMAIL PROTECTED]
>and cc's it to [EMAIL PROTECTED] because procmail's rule will match the
>only first address and doesn't have a chance to match against cc header,
>therefore [EMAIL PROTECTED] will get the email, the others won't.
>
>         So I just would like to get a simple sorting filter to which I 
> can pass
>messages directly from .forward and which will distribute the email to correct
>place.
>         I'm running potato+exim+fetchmail, know it's possible using sendmail,
>but don't really want to go into it, because it's too complicated.
>
>thanx,
>
>P.S. or if someone knows simple ruleset for procmail ??
>
>
>--
>-------------------------------------------------------------------------------
>"Only dead fish swims with a stream"
>gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09  7BCB 6202 7024 6E06 0223
>home_page: http://home.zcu.cz/~mman
>
>
>--
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-
-=|  Daniel Free                     Earthlight Communications LTD    |=-
-=|  [EMAIL PROTECTED]    ICQ#    15707938                 |=-
-=|  Cellular # 021 258 3389         HTTP://quake.earthlight.co.nz/   |=-
-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to