On Thu, Apr 07, 2005 at 09:31:06PM -0400, Sean Finney wrote:
> tags 303005 patch
> thanks
> 
> On Thu, Apr 07, 2005 at 11:17:00PM +0200, Denis Barbier wrote:
> > Sure, but I have no clue and do not know of any other similar program
> > providing this feature, so help and patches are very welcome.
> 
> okay, attached :)
> 
> it might be a nice addition to this to add the ability to sign with
> a specific key, or base the key off of the "From:" address, but this
> works for me and is fairly clean.

Sean,
Thanks for your patch, but...

> +     if($SIGN_ARG) {
> +             $gpgret = system("gpg --clearsign -s -a -o '$gpgnam' 
> '$tmpnam'");
> +             if($gpgret){
> +                     unlink $gpgnam;
> +                     unlink $tmpnam;
> +                     die("gpg exited with status $gpgret");
> +             }
> +             rename($gpgnam, $tmpnam);
> +     }

it signs mail body.
Your gpg-signed message is very different:
 * it contains the following header field:
     Content-Type: multipart/signed; micalg=pgp-sha1;
         protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp"
 * GPG signature encloses the whole mail, including attachments.
Of course this can be emulated, but then you have to sign mails for every
translation.  Or did I miss something?

Denis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to