On Fri, Jul 02, 2004 at 02:04:00PM -0500, Michael Bluejay wrote:
I'm brand-new to procmail and my very first recipe doesn't work. I'm
trying to set up a simple autoresponder, matched on the Name of the
sender. The right messages get matched correctly but no autoresponse
is sent. Here's my code:
SENDMAIL=/usr/sbin/sendmail
:0:
* ^From.*Mike Schuppe
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: test678(_at_)michaelbluejay(_dot_)com
| (formail -t -r -A"X-Loop: test678(_at_)michaelbluejay(_dot_)com " ; \
cat "Your message was tagged as nuisance and deleted. If you have a
legitimate message, please visit my website and send your mail through
the form there." )\
| $SENDMAIL -t
Okay, first, odd to have space in the middle of a recipe, but it's not
illegal with modern builds of procmail, so -- okay, but as a matter of
style, you might want to close up that blank line.
Also good that you figured out to use an X-Loop guard. The
problem here is that you are catting something that isn't a file.
You mean to say "echo" where you say "cat".
You also might (probably) want to include $SENDMAILFLAGS on the sendmail
call: $SENDMAIL $SENDMAILFLAGS -t
:0
$HOME/Maildir/
If that's $DEFAULT, you might just want to use that word instead.
--
dman
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail