Re[2]: Scrip Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 4 Jan 2006 07:25:25 -0800 (PST)
"Scott Taylor" <scott@xxxxxxxxxxxxxxx> wrote:

> 
> Kev said:
> > im seting up a scrip pipe for postfix + spamassassin as a filter in
> > postfix.
> >
> > this really works how ever i have a prb with the FWD depending on the
> > recipent, can any one help me with this line
> >
> > if $EGREP -q -i "To: *kav@xxxxxxxxxx*" < /var/tempfs/out.$$
> >
> > how can i tell egrep to check for any format of To: in the email heder.
> 
> You did.  Perhaps something else in your query is blocking you, or maybe
> you just want grep, it doesn't look like you are using "Extended Regex"
> here.
> 
> 'man grep' might be some more help to you.

yeah i got it to work with the way i have put there, but the prb is that
email addred comes as many formats like 

To: "Kev" <kev@xxxxxxxxxx>
To: Kev <kev@xxxxxxxxxx>
To: <kev@xxxxxxxxxx>
To: <kev@xxxxxxxxxx> "Kev"

etc etc.... so my above way dont work :(

> However, why reinvent the wheel?
> http://www.procmail.org/
> 

thank you for the input but this box act as a relay for the exchange
servers in the local network, so i dont think procmail can do the fwd
part with out a .forward, if im not mistaken.


rgds
Kev
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux