procmail
[Top] [All Lists]

temporary files in procmail

1996-03-21 14:01:05

-----BEGIN PGP SIGNED MESSAGE-----

I need to have some temporary files in my procmailrc filter file.  I need
to decrypt a particular message, look at the resulting message, and if it
has certain characteristics, put it into a folder and forget about it.  If
it doesn't have these characteristics, I want to leave it in its encrypted
state and put it back.

This is how I'm doing it currently:

PROCMAIL_TMP=decrypt_other.$$.tmp

:0c:
$PROCMAIL_TMP

:0f
|decrypt

:0:
*^from someone
foobar

:0f:$PROCMAIL_TMP.lock
|cat $PROCMAIL_TMP; /bin/rm $PROCMAIL_TMP


Is there a better way?

- -- 
Internet: dummy(_at_)c2(_dot_)org                   In real life: Robert Brown,
     >> Support your local Planned Parenthood. <<      in sunny Berkeley, CA
              >> Kill your television! <<              waiting for The Big One
                                                       (510) 464-4604


-----BEGIN PGP SIGNATURE-----
Version: 2.6

iQB1AwUBMVHCYzZMMbnCKCB9AQGFcAL8CmKYoAFYFaD6l/H4J5zHrCjI3102nELx
ix5OjG8zH70PFBqaAENVHH3vmwaJGYxUqD6DqkPgxloJ7XfheDe16YfE1X4vVR0G
ipw0Wcm8T/FlJsmpIWFbN36TsF6pf2nN
=uvkN
-----END PGP SIGNATURE-----

My PGP public key (automatically included) follows:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQBtAy+uZ4AAAAEDAPUN+s6td7KJKdhpIefcdTsR6d9Na2hlG774DYDq5MLdUxXb
rpY22CO7n8r9PPpZ8m8Huf8Wlg61tHoOCqrpjFa6a1amKJLzfHyFuTcn2a8Hh779
unLxGXA2TDG5wiggfQAFEbQMZHVtbXlAYzIub3JntA1kdW1teUBlbWYubmV0
=IlpO
-----END PGP PUBLIC KEY BLOCK-----

<Prev in Thread] Current Thread [Next in Thread>
  • temporary files in procmail, Robert <=