<<< Date Index >>>     <<< Thread Index >>>

Re: handling of pgp encrypted only messages



On Wed, Feb 02, 2005 at 06:07:04PM +0100, Michael Tatge wrote:
> with 1.5.6 and 1.5.7 - didn't test any other versions - I get
> "PGP signature could NOT be verified." when opening an encrypted only
> message.
> This is the case for both inline and pgp/mime encrypted messages.
> While that's true cause there is no signature I find that a bit
> misleading. It looks like an error where there is no error -  mutt
> displays the encrypted part just fine.
> I would kindly request that behavior to be changed.

I made a patch although I'm not sure that
(cur->security & (SIGN | PGPSIGN)) is always set when signed,
and always unset when only encrypted.
Try this out at your own risk. No warranty.

--- commands.c  27 Jan 2005 20:38:02 -0000      3.28
+++ commands.c  4 Feb 2005 01:27:35 -0000
@@ -196,8 +196,10 @@
        mutt_message (_("PGP signature successfully verified."));
       else if (cur->security & PARTSIGN)
        mutt_message (_("Warning: Part of this message has not been signed."));
-      else
-       mutt_message (_("PGP signature could NOT be verified."));
+      else if (cur->security & SIGN || cur->security & PGPSIGN)
+       mutt_error (_("PGP signature could NOT be verified."));
+      else
+       mutt_message (_("Warning: This message has not been signed."));
     }
 
     /* Invoke the builtin pager */

-- 
tamo
# I'm not a member of mutt-users list.