Sorry, it was my fault. the procmail script did say "-is -f" not as I
mention " -i -x -f"
Anyway, I changed the script to the following:
:0
* ^FROM_DAEMON|FROM_MAILER
{
:0
* $? fgrep -i -f $DEFAULT/somelist1.lst
{
:0 fwh
| formail -I"Subject: Some Problem1 ${CUST_NO} ${EMAILADDRESS}
${SUBJ_}"
:0:mail.lock
! email address
}
:0
* $ ? fgrep -i -f somelist2.lst
{
:0 fwh
| formail -I"Subject: Some Problem2 ${CUST_NO} ${SUBJ_}"
:0:mail.lock
!email address
}
However, I got the same result
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,-i,-f,/......../somelist1.lst"
procmail: Match on "fgrep -i -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 09:58:25 2007
Subject: Some Problem 224578 ABCDESRF(_at_)MASN(_dot_)NET failure notice
Folder: /usr/sbin/sendmail -oi email_address
-----Original Message-----
From: procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
[mailto:procmail-bounces(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE] On Behalf Of
Bart
Schaefer
Sent: Thursday, May 31, 2007 10:00 AM
To: procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
Subject: Re: Strange problem with the fgrep
On 5/31/07, Alex Kosach <alex(_dot_)kosach(_at_)replacements(_dot_)com> wrote:
:0HB
Don't use HB. It's the default, and some versions of procmail have a
bug wherein the H flag is never turned off once it's on.
* ^FROM_DAEMON|FROM_MAILER
"^FROM_MAILER" (with the caret included) is the magic token, not just
the string FROM_MAILER. However, ^FROM_DAEMON should match everything
that ^FROM_MAILER does, so it's redundant here.
{
:0
* $? fgrep -i -x -f $DEFAULT/somelist1.lst
This is not what your log file excerpt says you're executing. The log
says
Match on "fgrep -is -f /........./somelist1.lst"
The -s option fo fgrep causes some errors to be suppressed, so it may
be causing fgrep to return a zero exit status even when nothing
matched or somelist1.lst was not found. However, I'd be concerned
that procmail is not using the .procmailrc that you think it's using.
____________________________________________________________
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
____________________________________________________________
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