On Sat, 10 Jun 2000, Aviram Jenik wrote:

> I've got a simple qmail question.
> 
> I want to forward all the mail I receive, with a simple filter: Only mail
> that has 'To: aviram' will be forwarded. I tried 'filterto', using the
> following line:
> | /usr/local/bin/filterto otheraddress@somehost grep "To: Aviram"
> but for some reason the e-mail is 'trimmed' and only contains the 'to' line
> (i.e. the line that contains the match).

try these:

|condredirect user@somewhere grep -i -E "^(To|Cc):.*\aviram"
|condredirect user@somewhere grep -i -E "^(To|Cc):.*\aviram@jenik\.com"

using /var/qmail/bin/condredirect ofcourse.
the first will also catch mail generally with your name on it, not at
this specific domain ofcourse.


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to