procmail
[Top] [All Lists]

Re: Autoreply

1996-03-16 09:31:08
Tim Pickett wrote:
Try this:

:0 hc
* ^TOinfo
* ! ^FROM_DAEMON
{
  :0 fh
  | formail -r

  :0 h
  | cat - $HOME/info.txt | $SENDMAIL -t
}

Note the use of h in the two inner recipes.  Also note the - in the cat
command.


noted.  Thanks for your quick response.  Now apparently the system I'm 
using does not recognize the "formail" command.  Here's what I'm getting 
in my logfile when a message with header "To:info(_at_)vxr(_dot_)com" is 
received:

/bin/sh: formail:  not found
  Folder: cat - $HOME/info.txt |$SENDMAIL -t  
procmail: Lock failure on "/usr/spool/mail/dnielsen.lock"
From nielsend(_at_)vast(_dot_)cs(_dot_)byu(_dot_)edu  Sat Mar 16 10:16:03 1996
 Subject: TEST
  Folder: /usr/spool/mail/dnielsen


Is there anyway around this?  I'm not familiar enough with procmail to 
understand what exactly is being communicated by all of this.... :)

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