procmail
[Top] [All Lists]

ping-recipe

1999-08-06 10:43:39
I tried: 

#===========================================
# Auto-Reply to messages with Subject: ping
#-------------------------------------------
:0
* $ ! ^X-Loop: $MUSR(_at_)isolution\(_dot_)nl
* ^TO_(postmaster|info|ping)@isolution\.nl
* ^Subject: ping$
{
  :0c
  | ( formail -rt -k -"AX-Loop: $MUSR(_at_)isolution(_dot_)nl" ; \
      echo "(Ping-recipe as improved by Era Eriksson :)" ; \
      echo "$HOST" ; \
      uptime ) | $SENDMAIL $SENDMAILFLAGS -t

  :0:
  $BUDIR$MUSR.$YYYYMMDD.ping
}

but had to change back the ^TO_( to ^TO( 
(and I remember having had that problem before) 
because it didn't catch "To: <postmaster(_at_)isolution(_dot_)nl>". 
(probably because of the < and > ) 

Is this designed behaviour of TO_ ?


Regards, "Dr." Ruud

Chaos rules


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