procmail
[Top] [All Lists]

Re: vacation messaging with procmailrc

2000-10-30 14:53:28
Jonathan Desrochers <jvd(_at_)clickcom(_dot_)com> writes:
I have run into a weird situation and I am hoping someone out there can
help.  I am running the following .procmailrc in a users home directory:
...
:0 Whc: vacation$LOCKEXT
...
| formail -rD 8192 vacation.cache

:0 ehc
| (formail -rI"Precedence: junk" \
          -A"X-Loop: $LOGNAME(_at_)$HOST" \
       ; \
       cat $HOME/reply \
 ) | $SENDMAIL $SENDMAILFLAGS -t

and when I send a test message to the account, the following log is
generated (I have replaced the username with "USER":
...
procmail: Locking "vacation.lock"
procmail: Executing "formail,-rD,8192,vacation.cache"
procmail: Assigning "LASTFOLDER=formail -rD 8192 vacation.cache"
procmail: Unlocking "vacation.lock"
procmail: Bypassed locking "/var/mail/USER.lock"
procmail: Assigning "LASTFOLDER=/var/mail/USER"
...
after this is generated, the senders email address is added to the
vacation.cache file (I started with the file empty), however no reply is
sent to the sender.

Hmm, you're sure the file was empty before?  I ask because the formail
-D command returned success, which it should only do when it finds the
address in the cache file.  Either a) the address was already in the
vacation.cache file, or b) your formail command is broken.


Philip Guenther

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