procmail
[Top] [All Lists]

Problem with Listservers

1996-05-02 06:57:45
    I am running into a slight problem with listservers.  I have a
recipe (below) which sends out a delivery receipt only under certain
conditions.  (In the recipe, variable MY_ADDR is defined further up 
the recipe hierarchy and is my fully qualified email address.)  This
recipe, naturally, comes after all recipes handling list mail.

    The problem is with the listservers themselves (well, at least two
of them, so far).  If I send a request to the server, it answers back
one way or the other.  However, my recipe treats the response as
ordinary mail and sends a receipt, which the listserver treats as
another incoming request, to which it answers with an invalid-request
message, to which my recipe responds, ... .  You get the idea.  We have
a "ringing mail" situation.  Just yesterday I added the listserv@ and
listproc@ conditions, but I still seem to be having the problem.

    Any suggestions gratefully received.

Paul                             <pobart(_at_)access(_dot_)digex(_dot_)net>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key 
Home Page:  URL: http://www.access.digex.net/~pobart     


######################################################
#  send delivery receipt (if not already asked for)  #
######################################################

SUBJECT=`formail -xSubject:`
DATE=`formail -xDate:`

:0hc
* !^Return-Receipt-To
* !^FROM_DAEMON
* !^FROM.*listserv@
* !^FROM.*listproc@
* !^FROM.*MAILER-DAEMON
* !^FROM.*POSTMASTER
* !^X-Loop: $MY_ADDR
* !^Precedence.*junk
| (formail -r -A"Precedence: junk"           \
   -A"X-Loop: $MY_ADDR";                     \
   echo "Your mail arrived dated: $DATE";    \
   echo "and concerning Subject: $SUBJECT";  \
   echo "It will be read as soon as possible: Paul Bartlett <$MY_ADDR>"  \
  ) | $SENDMAIL -oi -t



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