Gnus development mailing list
 help / color / mirror / Atom feed
* gpg, attach my public key (smime)
@ 2014-01-26 14:54 Uwe Brauer
  2014-01-26 15:10 ` Uwe Brauer
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2014-01-26 14:54 UTC (permalink / raw)
  To: ding

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

Hello

Usually I use smime, in which case my public key is included in my
signature. A feature which I find convenient.

I looked around but cannot find anything like a function which would
attach my public gpg key. 

Does anybody know about such a function?

Thanks 

Uwe Brauer 

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gpg, attach my public key (smime)
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2014-01-26 15:10 UTC (permalink / raw)
  To: ding

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

>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:


   > I looked around but cannot find anything like a function which would
   > attach my public gpg key. 

   > Does anybody know about such a function?
pgg-insert-key

Does almost what I want, but inserts a ASCII armoured key, 

But I am looking for the same functionality using  using pgpmime.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* mml-insert-part (was: gpg, attach my public key (smime))
  2014-01-26 15:10 ` Uwe Brauer
@ 2014-01-26 17:43   ` Uwe Brauer
  2014-01-26 18:47     ` [SOLVED,NEW] (was: mml-insert-part) Uwe Brauer
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2014-01-26 17:43 UTC (permalink / raw)
  To: ding

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

>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:

>> "Uwe" == Uwe Brauer <oub@mat.ucm.es> writes:
   >> I looked around but cannot find anything like a function which would
   >> attach my public gpg key. 

   >> Does anybody know about such a function?
   > pgg-insert-key

   > Does almost what I want, but inserts a ASCII armoured key, 

   > But I am looking for the same functionality using  using pgpmime.

 mml-insert-part allows me to select application/pgp-keys but then no
 key is inserted. What do I miss?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [SOLVED,NEW] (was: mml-insert-part)
  2014-01-26 17:43   ` mml-insert-part (was: gpg, attach my public key (smime)) Uwe Brauer
@ 2014-01-26 18:47     ` Uwe Brauer
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Brauer @ 2014-01-26 18:47 UTC (permalink / raw)
  To: ding

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-01-26 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` [SOLVED,NEW] (was: mml-insert-part) Uwe Brauer

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).