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
info msg 104056: bytes 1094 from <[EMAIL PROTECTED]> qp 4756 uid 946
starting delivery 29: msg 104056 to local [EMAIL PROTECTED]
status: local 1/10 remote 0/20
delivery 29: failure:
condredirect:_usage:_condredirect_newaddress_program_[_arg_..._]/
status: local 0/10 remote 0/20
bounce msg 104056 qp 4764
end msg 104056
new msg 104057
info msg 104057: bytes 1669 from <> qp 4764 uid 951
starting delivery 30: msg 104057 to remote [EMAIL PROTECTED]
status: local 1/10 remote 0/20
delivery 30: success: did_1+0+0/
status: local 0/10 remote 0/20
end msg 104057

I have tried with many test but without success!!!

Thanks. Massimo QUINTINI

Russell Nelson wrote:

> 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.

--
Massimo Quintini
Osservatorio Astronomico Collurania Teramo
Via Mentore Maggini s.n.c. 64100 TERAMO (Italy)
Tel +39-0861210490  Fax +39-0861210492
http://www.te.astro.it


Reply via email to