Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Gour <gour@mail.inet.hr>
To: info-gnus-english@gnu.org
Subject: signing & encrypting fails
Date: Mon, 23 Jun 2008 11:32:27 +0200	[thread overview]
Message-ID: <87skv4cx90.fsf@nitai.hr> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1244 bytes --]

Hi!

If i try to sign & encrypt email the message is signed only and contains

<#secure method=pgpmime mode=encrypt> 

instead of being encrypted.

However, just signing or encrypting works.

Here is my setup:

;; GnuPG setup

;; Here we make button for the multipart 
(setq gnus-buttonized-mime-types 
 '("multipart/encrypted" "multipart/signed"))

;; verify/decrypt only if mml knows about the protocl used
    (setq mm-verify-option 'known)
    (setq mm-decrypt-option 'known)

;; use newer epg
(setq mml2015-use 'epg)
(setq mml2015-encrypt-to-self t)


(setq user-id-to-key-id-alist
      '(("gour@mail.inet.hr" "C6E7162D")
          ...        
))


(add-hook 'message-send-hook
          (lambda ()
            (let ((entry (assoc (cadr (mail-extract-address-components
                                       (message-field-value "from")))
                                user-id-to-key-id-alist)))
              (if entry
                  (setq mml2015-signers (cdr entry))))))
        
;; end of Gnupg setup


Running GNU Emacs 23.0.60.4 with Gnus 5.13.

Any hint?


-- 

Gour  | Zagreb, Croatia  | GPG key: C6E7162D
----------------------------------------------------------------

[-- Attachment #1.2: Type: application/pgp-signature, Size: 196 bytes --]

[-- Attachment #2: Type: text/plain, Size: 161 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english

             reply	other threads:[~2008-06-23  9:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-23  9:32 Gour [this message]
2008-06-24  2:29 ` Daiki Ueno
2008-06-24  5:33   ` Gour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87skv4cx90.fsf@nitai.hr \
    --to=gour@mail.inet.hr \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).