Russ' solution would certainly work, but this is exactly the sort
of thing that procmail is intended for.  A procmailrc to do this
would look like this:

:0 c
* Subject:.*xxx
! user2 user3 user4

:0 c
* Subject:.*yyy
! user5 user6 user7


(Recent versions of procmail play better with qmail, in particular
they can deliver directly to both mboxes and maildirs.)


> > It's possibile? How?
>
>cat >~user1/.qmail <<EOF
>./Mailbox
>|condredirect user234 `822field Subject | grep -q "xxx"`
>|condredirect user567 `822field Subject | grep -q "yyy"`
>EOF
>
>cat >~alias/.qmail-user234 <<EOF
>&user2
>&user3
>&user4
>EOF
>
>cat >~alias/.qmail-user567 <<EOF
>&user5
>&user6
>&user7
>EOF
-- 
John R. Levine, IECC, POB 727, Trumansburg NY 14886 +1 607 387 6869
[EMAIL PROTECTED], Village Trustee and Sewer Commissioner, http://iecc.com/johnl, 
Member, Provisional board, Coalition Against Unsolicited Commercial E-mail

Reply via email to