Massimo Quintini writes:
 > I must forward msgs from 1 sender to groups of users  AFTER EXAMINING
 > SUBJECT TEXT
 > 
 > example:
 > 
 > the rcpt of msg is user1
 > IF subject contains the char string "xxx" THEN the msg must be forwarded
 > to users user2, user3, user4
 > IF subject contains the char string "yyy" THEN the msg must be forwarded
 > to users user5, user6, user7
 > ..and so on....
 > 
 > 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

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Microsoft rivets everything.
521 Pleasant Valley Rd. | +1 315 268 1925 voice | Linux has some loose screws.
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX  | You own a screwdriver.

Reply via email to