procmail
[Top] [All Lists]

Re: dynamci filters

2008-07-30 16:50:47


KJR> George Crum wrote:
KJR> > 2. Receive email with "Subject: PROBLEM ..." for the first time, 
forward
KJR> > to email-address1.  Any consecutive times afterwards I want to forward
KJR> > the email to email-address2.
KJR> > 
KJR> > 3. When email with "Subject: RECOVERY..." is received I want the email 
to
KJR> > go to email-address1 and change the filter for "Subject: PROBLEM ..."
KJR> > back to forwading to email-address1.
KJR> >  
KJR> Since procmail handles one message at a time, you will need to store 
state
KJR> information somewhere, for example create a file which indicates the
KJR> current state and route mail depending on the contents of that file.
KJR> 
KJR> 

You probably don't even need to check the contents of the file.  If you 
'touch" the file when the PROBLEM message comes in and remove it when the 
RECOVERY message comes in, all that is needed is to check for the file's 
existence.

-- 
Alan


So true.  Thank you Alan.

-george



      
____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>