procmail
[Top] [All Lists]

Re: save message on autoreply

1996-05-05 06:52:42
I had that in it, but it wasn't working... Just tried it again, I was
testing it from root login, I hadn't looked close enough at the
description of ^FROM_DAEMON.

  MAILDIR=$HOME/Mail

  :0c: # save a copy to $MAILDIR/Shadcat
  * !^Subject:.*Re:
  * ^Subject:.*get-pgp-key
  Shadcat
   :0A # and if it meets those same conditions, send out the files
   | (formail -r ; cat $HOME/.pgpheader $HOME/.pgpkey) | $SENDMAIL -oi -t

Thank you, this works great.

Mark

I find the following conceptually simpler.  (I usually use the "tee"
when debugging things, and then it's easy to yank it out of the pipe.)

   MAILDIR=$HOME/Mail
 
   :0:
   * !^Subject:.*Re:
   * ^Subject:.*get-pgp-key
   | (formail -r ; cat $HOME/.pgpheader $HOME/.pgpkey) | \
       tee -a Shadcat | $SENDMAIL -oi -t

OTOH, maybe you now want to stick with what you've got working :-)

Cheers,
Stan.

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