forwarding msgs analyzing subject text

2001-05-30 Thread Massimo Quintini
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 u

Re: forwarding msgs analyzing subject text

2001-05-30 Thread Lukasz Gogolewski
Hello, Just a wild idea - maybe you can use procmail to filter your messages. I know that procmail has the best match & do features. Also try qmail.org for any user contributed utilities. - Lucas On Wed, 30 May 2001 15:38:14 +0200 Massimo Quintini wrote: MQ>I must forward msgs from 1 sender t

Re: forwarding msgs analyzing subject text

2001-05-30 Thread Russell Nelson
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 c

Re: forwarding msgs analyzing subject text

2001-05-30 Thread John R. Levine
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 par

Re: forwarding msgs analyzing subject text

2001-05-31 Thread Massimo Quintini
Excuse me, but I have tried your solution but it don't works! My files are ~massimo/.qmail ./Maildir/ |/var/qmail/bin/condredirect iauc `822field Subject | grep -q "IAUC"` ~alias/.qmail-iauc &[EMAIL PROTECTED] The messages in /var/log/qmail/current are new msg 104056 in

Re: forwarding msgs analyzing subject text

2001-05-31 Thread Russell Nelson
Massimo Quintini writes: > Excuse me, but I have tried your solution but it don't works! > |/var/qmail/bin/condredirect iauc `822field Subject | grep -q "IAUC"` Doh! Yes, of course that won't work. condredirect wants a program to run, not a string. Try it this way: |/var/qmail/bin/

Re: forwarding msgs analyzing subject text

2001-05-31 Thread Henning Brauer
On Thu, May 31, 2001 at 10:10:56AM -0400, Russell Nelson wrote: > Massimo Quintini writes: > > Excuse me, but I have tried your solution but it don't works! > > > |/var/qmail/bin/condredirect iauc `822field Subject | grep -q "IAUC"` > > Doh! Yes, of course that won't work. condredire

Re: forwarding msgs analyzing subject text

2001-05-31 Thread Massimo Quintini
Dear Russell Fantastic.it works ! Thanks...thanks..and thanks again Massimo QUINTINI Russell Nelson wrote: > Massimo Quintini writes: > > Excuse me, but I have tried your solution but it don't works! > > > |/var/qmail/bin/condredirect iauc `822field Subject | grep -