On Wed, Jan 12, 2000 at 06:37:27AM -0500, David T-G wrote:
> 
> Thanks for your inline-encryption scripts.  They both look handy.

Cool. BTW, after further testing, I added "umask 077" to the top of each
script. :-) I also fixed a bug in the Sign macro -- mutt didn't see the "y"
after coming back from the filter. I also had to modify the "wait_key" to
Sign-and-send as one function. Here are the new macro defs:

macro compose X "pf:set editor=\"mutt-vim -feast\"\nE:set \
        editor=\"mutt-vim\"\ny" "Encrypt Message w/o MIME"

macro compose S "pf:unset wait_key\nFpgp -fast\n:set wait_key\niy" \
        "Sign Message w/o MIME"

The only problem I've encountered using these macros is: you can't use 
'set record="=sent"'. Since there's no application/pgp header, when you 
read your sent messages, they're not decrypted automatically. To fix this, 
I use a little kludge in procmail. After procmail adds the content-type, 
I save messages Fcc'd to myself (use "set hdr Fcc:" in .muttrc) . i.e.:

:0    
* !^Content-Type: message/
* !^Content-Type: multipart/
* !^Content-Type: application/pgp
{     
    :0 fBw  
    * ^-----BEGIN PGP MESSAGE-----
    * ^-----END PGP MESSAGE-----
    | formail \
        -i "Content-Type: application/pgp; format=text; x-action=encrypt"

    :0 fBw
    * ^-----BEGIN PGP SIGNED MESSAGE-----
    * ^-----BEGIN PGP SIGNATURE----- 
    * ^-----END PGP SIGNATURE-----
    | formail \
        -i "Content-Type: application/pgp; format=text; x-action=sign"
}    
     
:0   
* ^From: .*[EMAIL PROTECTED]
* ^Reply-To: .*[EMAIL PROTECTED]
* ^Sender: .*[EMAIL PROTECTED]
* !^Received: from .*
$MAILDIR/sent

> Have you seen Sec's patch to let you specify %s in a macro, created
> specifically for this sort of requirement?  You create a macro much like
> you have but simply say "... -r %s ..." to specify the recipient, and
> mutt fills it in.

Hmmmm... I could do away with the mutt-vim script then...
 
> Check out his patch site (you can certainly find him from the mut main
> page at

Thanks!

js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator
up2 technologies inc.
[EMAIL PROTECTED], www.up2me.com

PGP signature

Reply via email to