procmail
[Top] [All Lists]

x-loop non seen

2003-10-20 08:13:56
Bonjour,

I have some trouble for a recipe sendind an automatic reply: procmail seems to
ignore the X-loop statement. Here is the recipe (copied from man procmailex):

 #-*- Mode: sh -*-
#<--- définition des variables-----

MOI=fp(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)(_dot_)
TOO_=`formail -rt -xTo:| expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`
GOULP=$HOME/mail/poubelle
SUB=`formail -t -xSubject:`

:3 hc
* !^FROM_DAEMON
* !^X-Loop: $MOI
* ^Subject: Renouvellement
|(formail -r -A"X-Loop: $MOI";\
echo "tu as reçu un message de $TOO_ à propos de $SUB")|$SENDMAIL -i $MOI
:0 a 
$GOULP

Here are the headers of the message sended to me:

From machin(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)  Mon Oct 20 09:54:31 2003
Return-Path: <machin(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)>
Received: from bhaskara.... (localhost.localdomain [127.0.0.1])
        by bhaskara.... (8.12.8/8.12.8) with ESMTP id h9K4OVFE001814
        for <fp(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)>; Mon, 20 Oct 2003 
09:54:31 +0530
Received: (from machin(_at_)localhost)
        by bhaskara.... (8.12.8/8.12.8/Submit) id h9K4OVW2001812
        for fp; Mon, 20 Oct 2003 09:54:31 +0530
Date: Mon, 20 Oct 2003 09:54:31 +0530
From: machin(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)
Message-Id: 
<200310200424(_dot_)h9K4OVW2001812(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)>
To: fp(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)
Subject: Renouvellement

And here are the lines from the log file for this message:

procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk....
procmail: Match on ! "^X-Loop: $MOI"
procmail: Match on "^Subject: Renouvellement"

OK. But here are the same lines for the automatic reply:

procmail: Assigning "SUB= Re: Renouvellement"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk....
procmail: Match on ! "^X-Loop: $MOI"
procmail: No match on "^Subject: Renouvellement"

Match on ! "^X-Loop: $MOI" why????? Here are the headers of this automatic 
reply:

From: fp(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)
To: machin(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)
Subject: Re: Renouvellement
References: 
<200310200424(_dot_)h9K4OVW2001812(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)>
In-Reply-To: 
<200310200424(_dot_)h9K4OVW2001812(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)>
X-Loop: fp(_at_)bhaskara(_dot_)(_dot_)(_dot_)(_dot_)

thank you for your help.
-- 
François Patte



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


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