On Sun, 5 May 1996, Stan Ryckman wrote:
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 :-)
Thanks, I've been wondering about using tee. Seems like it might be
a bit faster. I'll try it.
Mark
--
Mark Shadley -- http://www.catcher.com/users/shadcat/
Send blank email to shadcat(_at_)catcher(_dot_)com with subject "get-pgp-key"
for automagic public key retrieval.