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

[PATCH] pgp: header handling broken in mutt_edit_headers



hi,

  as of current cvs, setting "PGP: E" (or similar) when header-editing a
  message does not work. the OP is set (ENCRYPT, SIGN, whatever) but
  APPLICATION_PGP is missing.

  the attached patch fixes it.

  thanks,

-- 
Adeodato Simó
    EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
    Listening to: Juan Perro - Con tus huesos en el suelo
 
I don't want to achieve immortality through my work. I want to achieve
immortality throguh not dying.
                -- Woody Allen
--- a/headers.c 2003-03-04 08:49:45.000000000 +0100
+++ b/headers.c 2004-07-21 19:25:30.000000000 +0200
@@ -181,6 +181,8 @@
              &&ascii_strncasecmp ("pgp:", cur->data, 4) == 0)
     {
       msg->security = mutt_parse_crypt_hdr (cur->data + 4, 0);
+      if (msg->security)
+       msg->security |= APPLICATION_PGP;
       keep = 0;
     }