procmail
[Top] [All Lists]

(no subject)

2000-11-02 12:21:32
Help,


I have created a script that is supposed to send a
reply to any messages that I recieve.  The only thing
that isnt working properly with the script is when
there are two users that are autoresponding.  if one
user sends a mail to the other they will both do into
an infinite responding loop. This is on a Redhat Linux
6.2 Server. Here is a copy of the rc, script and the
email message.

.procmailrc:

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

Script:

#################################################
#!/bin/bash

if [ -f /home/httpd/autoreplies/$LOGNAME.txt ];
    then
    (formail -r -A"X-Loop: $LOGNAME(_at_)domain(_dot_)com";
     cat /home/httpd/autoreplies/$LOGNAME.txt) |
/usr/lib/sendmail -t
  fi
#################################################

First Email Message:

#################################################
From emailtest2  Thu Nov  2 11:43:14 2000
Return-Path: <emailtest2>
Received: (from emailtest2(_at_)localhost)
        by domain.com (8.9.3/8.9.3) id LAA27230;
        Thu, 2 Nov 2000 11:43:14 -0600
Date: Thu, 2 Nov 2000 11:43:14 -0600
From: emailtest2(_at_)domain(_dot_)com
Message-Id: <200011021743(_dot_)LAA27230(_at_)domain(_dot_)com>
X-Loop: emailtest(_at_)domain(_dot_)com
To: emailtest(_at_)domain(_dot_)com
Subject: Re: test
References: <200011021743(_dot_)LAA27215(_at_)domain(_dot_)com>
<200011021743(_dot_)LAA27221(_at_)domain(_dot_)com>
In-Reply-To: <200011021743(_dot_)LAA27221(_at_)domain(_dot_)com>
X-Loop: emailtest2(_at_)domain(_dot_)com

"This is a test"

####################################################

Second Email Message:

####################################################
From emailtest2  Thu Nov  2 11:43:14 2000
Return-Path: <emailtest2>
Received: (from emailtest2(_at_)localhost)
        by domain.com (8.9.3/8.9.3) id LAA27246;
        Thu, 2 Nov 2000 11:43:14 -0600
Date: Thu, 2 Nov 2000 11:43:14 -0600
From: emailtest2(_at_)domain(_dot_)com
Message-Id: <200011021743(_dot_)LAA27246(_at_)domain(_dot_)com>
X-Loop: emailtest(_at_)domain(_dot_)com
X-Loop: emailtest2(_at_)domain(_dot_)com
X-Loop: emailtest(_at_)domain(_dot_)com
To: emailtest(_at_)domain(_dot_)com
Subject: Re: test
References: <200011021743(_dot_)LAA27215(_at_)domain(_dot_)com>
<200011021743(_dot_)LAA27221(_at_)domain(_dot_)com>
<200011021743(_dot_)LAA27230(_at_)domain(_dot_)com>
<200011021743(_dot_)LAA27238(_at_)domain(_dot_)com>
In-Reply-To: <200011021743(_dot_)LAA27238(_at_)domain(_dot_)com>
X-Loop: emailtest2(_at_)domain(_dot_)com

"This is a test"
######################################################

It looks like the message is duplicating the X-Loop
header.


Any help would be greatly appreciated.


Thanks,


Todd Jamison

=====
toddjamison(_at_)yahoo(_dot_)com


__________________________________________________
Do You Yahoo!?
From homework help to love advice, Yahoo! Experts has your answer.
http://experts.yahoo.com/
_______________________________________________
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>