procmail
[Top] [All Lists]

Re: mail filter recipe with a vacation

2002-12-31 11:36:09
I see what I did wrong.  The notes on this setup are to put this in the
.procmailrc file.  I have this in the .procmail directory in a recipe
rc.file file.  duh.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Enjoy your Happy New Year!

On Fri, 20 Dec 2002, Michele Francis wrote:

I am using the recipe.  Do I need to define $SENDMAIL somewhere?  Do I
need to have SHELL=/bin/sh ?  My own shell is tcsh. I am checking on
formail.  Any help is appreciated.  Thanks.

Here is log of what happens:
procmail: Skipped "-A"X-Loop: mayemailaddress(_at_)nau(_dot_)edu" ; \ "
procmail: Skipped ""M F is away from the office until she
returns. ";\ "
procmail: Skipped ""If you need immediate assistance, sorry";\ "
procmail: Skipped ""Please contact whomever.  Thanks!";\ "
procmail: Skipped ") | $SENDMAIL -oi -t "
From pm(_at_)mailbox(_dot_)nau(_dot_)edu  Fri Dec 20 15:47:30 2002
 Subject: testing if vacation will work
  Folder: /mail/myacct
---end log---

---begin recipe----
:0 Whc: vacation.lock
# Perform a quick check to see if the mail was addressed to us
* $^To:.*\<$\LOGNAME\>
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Mail loops are evil
* !^X-Loop: your_email(_at_)your_domain(_dot_)com
| formail -rD 8192 vacation.cache

# if the name was not in the cache
:0 ehc
| (formail -rI"Precedence: junk" \
-A"X-Loop: your_email(_at_)your_domain(_dot_)com " ; \
echo "I received your mail,"; \
echo "but I won't be back until Monday."; \
echo "-- "; ) | $SENDMAIL -oi -t
----end recipe----



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



_______________________________________________
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>