procmail
[Top] [All Lists]

Strange problem with the fgrep

2007-05-31 06:15:05
I have the following procmail recipe. It suppose to add some specific
words to the subject of the email if words in the body or in the header
of the email matches the words on the different lists

However, the procmail always picks the first available option and states
that it is a match. I don't know what the problem is. Any ideas?

 

Thanks

 

The procmail log file is like that:

 

 

procmail: Match on "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To:
Multiple recipients of
|(((Resent-)?(From|Sender)|X-Envelope-From):|>?From
)([^>]*[^((_dot_)%(_at_)a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|dae
mon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|
sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|y
stem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
][^<)]*(\(.*\).*)?)?$([^>]|$)))|FROM_MAILER"

procmail: Executing "fgrep,-is,-f,/......../somelist1.lst"

procmail: Match on "fgrep -is -f /........./somelist1.lst"

procmail: Executing "formail,-ISubject: Some Problem1 224578
ABCDESRF(_at_)MASN(_dot_)NET failure notice"

procmail: Locking "mail.lock"

procmail: Executing "/usr/sbin/sendmail,-oi,email_address"

procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi email_address "

procmail: Unlocking "mail.lock"

procmail: Notified comsat: "bbprocess@:/usr/sbin/sendmail -oi
email_address "

From MAILER-DAEMON(_at_)MASN(_dot_)NET  Thu May 31 08:55:16 2007

 Subject: Some Problem 224578 ABCDESRF(_at_)MASN(_dot_)NET failure notice

  Folder: /usr/sbin/sendmail -oi email_address

 

 

 

:0HB

* ^FROM_DAEMON|FROM_MAILER

{

 :0

 * $? fgrep -i -x  -f $DEFAULT/somelist1.lst

 {

  :0 fwh

  | formail -I"Subject:  Some Problem1 ${CUST_NO} ${EMAILADDRESS}
${SUBJ_}"

  :0:mail.lock

  ! email address

 

 }

 

 :0

 * $ ? fgrep -i -x -f somelist2.lst

  {

  :0 fwh

  | formail -I"Subject: Some Problem2 ${CUST_NO} ${SUBJ_}"

  :0:mail.lock

  !email address

 

  }

 

 :0

 * $ ? egrep -i -x -f somelist3.lst

  {

  :0 fwh

  | formail -I"Subject: Some Problem3 ${CUST_NO}  ${SUBJ_}"

  :0:mail.lock

  ! email address

 

  }

 

 

 :0

 * $ ? fgrep -i -x -f somelist4.lst

  {

  :0 fwh

  | formail -I"Subject: Some Problem 4 ${CUST_NO} ${SUBJ_}"

  :0:mail.lock

  !email address

 

  }

 

 :0

* ^FROM_DAEMON

  {

  :0 fwh

  | formail -I"Subject: Some Problem 5 ${SUBJ_}"

  :0:mail.lock

  !email address

 

  }

 

}

 

 

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