Subject: postprocessing composed messages [how?]

From: "Joseph J. Strout" <strout@cajal>
Date: Fri, 10 Feb 1995 09:32:25 -0800 (PST)

I'd like to intercept an outgoing file just before Pine throws it out the 
door to do a little postprocessing -- namely, I want to digitally sign it, and 
also encrypt it if the recipient address is one that I have a public key for.
I can do all this in a script if I can just catch that file before it goes.

Alternatively, I could use the "alternate-editor-cmd" to wrap Pico in an 
encrypting script (I'm using such a setup experimentally right now).  But this 
means a few extra keystrokes, and only works for signing (because the script 
has no way of knowing who the recipient might be).  Any ideas?  Thanks...

,------------------------------------------------------------------.
|    Joseph J. Strout		Department of Neuroscience, UCSD   |
|    [email-masked]		http://sdcc3.ucsd.edu/~jstrout/    |
`------------------------------------------------------------------'

---

From: Don Sugarman <[email-masked]>
Date: Tue, 14 Feb 1995 08:30:39 -0500 (EST)

> I can do all this in a script if I can just catch that file before it goes.
I believe what you are looking for can be accomplished by modifying the 
sendmail.cf file.  I have *no* idea how to do it, but I am 
pretty sure that is where you need to intercept it.

I would start by defining an array of designated addressees in a 
reference file, which is read when the sendmail daemon is started.  
Messages to those recipients would be preprocessed by your script and 
sent on their way as normal.

Maybe someone out there will know if this would work and, more 
importantly, how to do it.

Don Sugarman
[email-masked]