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

Re: procmail



On Tue, Mar 16, 1999 at 06:53:25AM -0500, Benoit Joly wrote:
> Hi, I want to setup procmail to forward every email sent to jolb01@gel.usherb.ca
> 
> here is my .procmailrc
> 
> :0                             
> * ^To.*jolb01@gel.usherb.ca
> benoit                        
> 
> :0                              
> * ^Received.*^.*$^.*for.*jolb01@gel.usherb.ca
> benoit                  
> 
> 
> the first command work ok... the problem is when i receive mail from debian
> user, my email address is not in Cc or To section... it's on the 3rd line aft
> er the Received section.
> 
> the last command dont work... what's wrong?

I think grep only compares one line at a time, so that won't work.  For
the debian-user list I identify it by the Resent-Sender header, with this
recipe:

:0:
* ^Resent-Sender.*debian-user-request@lists.debian.org
Debian-user

Hope that helps,
Matt

-- 
Matt Folwell, Trinity College, Cambridge.  CB2 1TQ
mjf36@cam.ac.uk


Reply to: