procmail
[Top] [All Lists]

Re: flaky recipe -- too bad it's not for pastries

2003-02-11 05:58:56
Jeff Orrok <jeff(_at_)rt(_dot_)com> wrote:

Here is an update on my problem.

I set LINEBUF=8192 and still have the problem with the same frequency
of occurrence.

I have LOGABSTRACT=on and set VERBOSE=on before the recipe block.

Here is a fragment of .maillog (with the From_ lines escaped).  As you
can see, there is nothing remarkable about the telemetry except for
the error.

Please break your lines when typing.  A line limit of about 72 is ideal.  
I have used the tool "par" here to reformat some of your long lines, so
I could read them at all, let alone reply.

I don't know whether you saw my personal note to you the other day in
which I voiced irritation over having received an acknowledgment to
a message I cc'd to you and posted to this list in reply to your
initial query.  If you are going to mail questions to mailing lists,
you should think seriously about turning off or blocking replies to
people who might answer from the list.

Perhaps no one has answered this time because the first time through we
only had some recipes but no results to see; while this time, we only
have a log extract but no recipes.  Not many of us are going to revert
to the list archives to remind ourselves in enough detail of what you
are trying to do and what this extract is supposed to be telling us.
Best would be for you to state concisesly what the problem is, pertinent
information such as version numbers, platform, etc., a recipe that
is failing to function as you believe it should, and a relevant
snippet of error log for that recipe.


procmail: [19620] Sun Feb  9 16:09:09 2003
procmail: No match on "^To: .*REDEEM\/msg\(_dot_)[^(_at_)(_dot_)/]+"
procmail: No match on "^X-Loop: procmail(_at_)lastname(_dot_)com"
procmail: Assigning "MATCH="
procmail: Matched "firstname(_at_)lastname(_dot_)com"
procmail: Match on "^To: \/.*"
procmail: Executing " formail -rzxTo: | fgrep -iwqsf $HOME/whitelist"
procmail: Non-zero exitcode (1) from " formail -rzxTo: | fgrep -iwqsf 
$HOME/whitelist"
procmail: Match on ! " formail -rzxTo: | fgrep -iwqsf $HOME/whitelist"
procmail: Executing " formail -rtzxTo: | fgrep -iwqsf $HOME/whitelist"
procmail: Non-zero exitcode (1) from " formail -rtzxTo: | fgrep -iwqsf 
$HOME/whitelist"
procmail: Match on ! " formail -rtzxTo: | fgrep -iwqsf $HOME/whitelist"
procmail: Assigning "SENTTO=firstname(_at_)lastname(_dot_)com"
procmail: Locking "nonwhitelist.lock"
procmail: Assigning "LASTFOLDER=nonwhitelist/msg.kY0L"
procmail: Opening "nonwhitelist/msg.kY0L"
procmail: Acquiring kernel-lock
From cid=14-uid=3768419-mid=110--(_at_)bounce(_dot_)jsuati(_dot_)com Mon 
Feb 10 00:09:08 2003
 Subject: Get Grace magazine and a 5-piece Clinique Makeup Set FREE!
  Folder: nonwhitelist/msg.kY0L                                               
  15727
procmail: Unlocking "nonwhitelist.lock"

That all looks normal enough to me.  Exitcode 1 for formail, I can't recall
off-hand if I'd want to be worried about.  You might have restated what you're
trying to do with formail, so we can tell more easily if the above is a problem.


procmail: Executing "echo $LASTFOLDER | sed -e "s#.*/##""
procmail: Assigning "LASTMSG=msg.kY0L"


Now that you clarified what you were doing with sed, I can still tell you how
to do it inside procmail, thus saving the pipe and the call to sed.

        :0
        * LASTFOLDER ?? /\/[^/]+
        { LASTMSG = $MATCH }


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)?|daemon|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)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>
        ][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: procmail(_at_)lastname(_dot_)com"
procmail: Assigning "REPORT="
procmail: Executing " (formail -q- -r \
      -XSubject: \
      -XTo: ; \
     echo "From: \"firstname lastname\" 
<REDEEM${LASTMSG}(_at_)lastname(_dot_)com>" ; \
     echo "Reply-To: \"firstname lastname\" 
<REDEEM${LASTMSG}(_at_)lastname(_dot_)com>" ; \
     echo "X-Loop: procmail(_at_)lastname(_dot_)com" ; \
     echo ; echo "Hello, you sent a message with the above subject to 
$SENTTO" ; \
     cat $HOME/autoreply.text ; \
    ) 2>>ERROR${LASTMSG} | $SENDMAIL $SENDMAILFLAGS -t 2>>ERROR${LASTMSG}"
procmail: Error while writing to " (formail -q- -r \

I think a good approach is to handle one error, and one recipe, at a time.
Please re-post the recipe that gnerates this error, along with a the
log entry (snipped to relevant matter), and state whether it happens
all the time or just intermittently.


      -XSubject: \
      -XTo: ; \
     echo "From: \"firstname lastname\" 
<REDEEM${LASTMSG}(_at_)lastname(_dot_)com>" ; \
     echo "Reply-To: \"firstname lastname\" 
<REDEEM${LASTMSG}(_at_)lastname(_dot_)com>" ; \
     echo "X-Loop: procmail(_at_)lastname(_dot_)com" ; \
     echo ; echo "Hello, you sent a message with the above subject to 
$SENTTO" ; \
     cat $HOME/autoreply.text ; \
    ) 2>>ERROR${LASTMSG} | $SENDMAIL $SENDMAILFLAGS -t 2>>ERROR${LASTMSG}"
procmail: Assigning "LOG=
### Autoresponder failed.  more /home/firstname/Mail/nonwhitelist/msg.kY0L 
"

How are you deciding that the autoresponder failed?  (Recipe, please.)

-- 
dman


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail