On Tue, 3 Jun 1997 12:21:56 +0100,
"Ian Southam" <Ian(_dot_)Southam(_at_)rayware(_dot_)co(_dot_)uk> wrote:
try this, it works for us:).
Apparently the recipe was rewrapped by your editor. So it probably doesn't.
This will send out whatever is stored in the file auto.info when somebody
mails the user info(_at_)our(_dot_)domain
This should probably be
(Procmail is case-insensitive by default.)
* !^X-Rinfo: info(_at_)rayware(_dot_)co(_dot_)uk
You should perhaps use X-Loop instead -- this is a special case in
e.g. formail's eyes. X-Rinfo will most likely be stripped by anything
that sends an autoreply to your autoreply; X-Loop stands a small
Good checks, but just take a look at all the autoresponses you get.
I just did a check on a folder of some 100 auto-responses and three of
them were not doing either of these. (OK, so they're badly configured
and need to be punished, but this is still yet another reason to give
X-Loop a chance.)
| formail -rA "X-Rinfo: info(_at_)rayware(_dot_)co(_dot_)uk" -I "Subject:
Your request for
ation" -I "From: Information_Server <info(_at_)rayware(_dot_)co(_dot_)uk>"
| cat - /var/spool/mail/auto.info 2>&1 | $SENDMAIL -oi -t -f sysbot
(Wrapping obviously broken.)
(See how you are yourself setting it up to +not+ insert a Re: and +do+
in effect direct replies back to itself? Perhaps you should add a
Reply-to: nobody or something?)
Why exactly are you resetting MAILDIR?
Is it wise to keep the response message in /var/spool/mail? (I mean,
it won't break anything, but will you remember where it is three weeks
* ! ^X-loop: info(_at_)rayware(_dot_)co(_dot_)uk
* ! ^Subject: Re:
* ! ^FROM_DAEMON
| ( formail -rt -A"X-Loop: info(_at_)rayware(_dot_)co(_dot_)uk" \
-I"From: Information Server <info(_at_)rayware(_dot_)co(_dot_)uk>" \
-I"Reply-to: nobody(_at_)rayware(_dot_)co(_dot_)uk" ;
cat /var/spool/mail/auto.info ) 2>&1 | $SENDMAIL -oi -t -f sysbot
This is off the top of my head and I might have missed some subtleties
in the original.
Still, hope this helps,
/* era */
Defin-i-t-e-ly. Sep-a-r-a-te. Gram-m-a-r. <http://www.iki.fi/~era/>
* Enjoy receiving spam? Register at <http://www.iki.fi/~era/spam.html>