Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: [SOLVED,NEW] (was: mml-insert-part)
Date: Sun, 26 Jan 2014 19:47:37 +0100	[thread overview]
Message-ID: <87wqhm4m2e.fsf_-_@mat.ucm.es> (raw)
In-Reply-To: <87r47u63lc.fsf_-_@mat.ucm.es>

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]


Ok, I wrote up a small hack, maybe this is already implemented but I
find it useful. Comments are welcome.

(defun mml-attach-pgpkey-mime ()
  "Short hack to attach the own public  `gpg' key."
  (interactive)
  (save-excursion
	(let* ((current (current-buffer))
		  (pgp-pubkey-temp-file (make-temp-file "pgp-public-key")))
	  (find-file pgp-pubkey-temp-file) 
	  (kill-region (point-min) (point-max)) ;just in case!
	  (pgg-insert-key)
	  (write-file pgp-pubkey-temp-file)
	  (switch-to-buffer current)
	  (mml-attach-file pgp-pubkey-temp-file "application/pgp-signature" "pgp-key" "attachment"))))

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5556 bytes --]

      reply	other threads:[~2014-01-26 18:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-26 14:54 gpg, attach my public key (smime) Uwe Brauer
2014-01-26 15:10 ` Uwe Brauer
2014-01-26 17:43   ` mml-insert-part (was: gpg, attach my public key (smime)) Uwe Brauer
2014-01-26 18:47     ` Uwe Brauer [this message]

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=87wqhm4m2e.fsf_-_@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=ding@gnus.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).