procmail
[Top] [All Lists]

Re: Vacation usage

1998-07-14 09:06:13
graham(_at_)cs(_dot_)man(_dot_)ac(_dot_)uk writes:
I've tried using the vacation example from the procmailex man page and
am having trouble getting it to work. 

The first invocation of formail works fine and looks in the cache
file, but then my log shows

procmail: Error while writing to " ($FORMAIL -rA"Precedence: junk" \
                -A"X-Loop: graham(_at_)cs(_dot_)man(_dot_)ac(_dot_)uk" ; \
              echo "I received your mail,"; \
              echo "but I will be away until August 11th."; \
             ) | $SENDMAIL -oi -t"

There doesn't appear to be any other clue as to what's wrong. Anyone
any idea what's going on?

You didn't show the recipe, but I'll guess that the problem is that you
don't have the 'h' flag on it.  Procmail is trying to write the entire
message down the pipe to formail, but formail stops reading after the
header, causing procmail to get a failed write, which it presumes to be
an error.  Add the 'h' flag to have procmail just write the header should
solve the problem.


Philip Guenther

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