From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/59136 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: OpenPGP header Date: Sun, 14 Nov 2004 17:55:38 +0100 Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1100451387 13670 80.91.229.6 (14 Nov 2004 16:56:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 Nov 2004 16:56:27 +0000 (UTC) Original-X-From: ding-owner+M7676@lists.math.uh.edu Sun Nov 14 17:56:15 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13] ident=mail) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CTNfj-0002b9-00 for ; Sun, 14 Nov 2004 17:56:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1CTNfT-0002vv-00; Sun, 14 Nov 2004 10:55:59 -0600 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1CTNfL-0002vp-00 for ding@lists.math.uh.edu; Sun, 14 Nov 2004 10:55:51 -0600 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1CTNfJ-0004VH-K0 for ding@lists.math.uh.edu; Sun, 14 Nov 2004 10:55:49 -0600 Original-Received: from main.gmane.org (main.gmane.org [80.91.229.2]) by justine.libertine.org (Postfix) with ESMTP id C8B4A3A0035 for ; Sun, 14 Nov 2004 10:55:48 -0600 (CST) Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1CTNfH-0005OE-00 for ; Sun, 14 Nov 2004 17:55:47 +0100 Original-Received: from c494102a.s-bi.bostream.se ([217.215.27.65]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Nov 2004 17:55:47 +0100 Original-Received: from jas by c494102a.s-bi.bostream.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Nov 2004 17:55:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c494102a.s-bi.bostream.se OpenPGP: id=B565716F; url=http://josefsson.org/key.txt User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:HdZ85tA1BuIlaq4k9Phx1sWZDNQ= Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: main.gmane.org gmane.emacs.gnus.general:59136 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:59136 There is an effort to standardize the features from X-PGP:, X-PGP-ID: etc into OpenPGP:, see: http://josefsson.org/openpgp-header/ While general comments are appreciated, what I'd like to ask here is whether Gnus should try to generate this header automatically? Note the key word 'try'. Exactly how Gnus can determine whether the user has a working OpenPGP installation isn't obvious. Check whether ~/.gnupg/gpg.conf exists and use the key id from the 'default-key' token in that file? OTOH, even if that test succeed, it is not clear that the user wishes to add the header to all messages she sends. Perhaps it would be sufficient to make it easy to optionally ask Gnus to set the header. Right now I don't think it is simple enough, here's what I'm using currently: '(message-send-hook (quote ((lambda nil (save-excursion (save-restriction (message-narrow-to-headers) (goto-char (point-max)) (insert "OpenPGP: id=B565716F; url=http://josefsson.org/key.txt "))))))) Perhaps a variable message-insert-openpgp, that is nil by default, but may contain a list with information to populate in that header? An example value would be: (setq message-insert-openpgp '((id . "B565716F") (url . "http://josefsson.org/key.txt"))) What do you think?