procmail
[Top] [All Lists]

Re: change X-priority in header

2004-08-09 06:59:46
Bill McCormick wrote:

Bill McCormick wrote:

Hello,

I'd like to check for key words in the body and if found change the X_priority to high and then deliver. Something like this:

 :0E
 * ^Subject:.*log
 {
   :0Bc
   * (authentication failures|invalid users)
   change header action????
     :0
     .billinux.Logs/new
 }

Thanks :)

I'm trying this without any success:

 :0E
 * ^Subject:.*log
 {
   :0Bc
   * (authentication failures|invalid users)
   | formail -i "X-Priority: 1 (Highest)"

   :0

   .billinux.Logs/new
 }


And the answer is ...

 :0E
 * ^Subject:.*log
 {
   :0B
   * (authentication failures|invalid users)
   {
     :0Afhw

     | formail -i "X-Priority: 1 (Highest)"
   }

   :0

   .billinux.Logs/new
 }

Note the abscense of the "c" copy

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