procmail
[Top] [All Lists]

Re: Auto Respond Looping

2000-11-02 16:03:15
Philip Guenther wrote:
Todd Jamison <toddjamison(_at_)yahoo(_dot_)com> writes:
...
:0 Hwc
* ! ^X-Loop: $LOGNAME
* ! ^FROM_DAEMON
| /usr/local/scripts/emailreply.sh

Well, here's your problem: you forgot to tell procmail to expand variables
in that first condition.  As a result, it's trying to match an X-Loop:
header that contains exactly one space, followed by a newline (thus
ending the header field), followed by a header field whose name starts
with "Logname".  The solution is to use the '$' special before the regexp:

      :0 Hwc
      * ! $ ^X-Loop: $LOGNAME
      * !   ^FROM_DAEMON
      | /usr/local/scripts/emailreply.sh

There's one other problem, Todd... the script contains:
    (formail -r -A"X-Loop: $LOGNAME(_at_)domain(_dot_)com";

and $LOGNAME won't match $LOGNAME(_at_)domain(_dot_)com .

Either use "@domain.com" in both places (best, because then it's
uniquely yours for sure) or in neither place.

Cheers,
Stan
_______________________________________________
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>