From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61162 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Attachments and security menu (was: Entering passphrase twice when sending PGP signed message) Date: Thu, 13 Oct 2005 21:48:07 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129233557 13882 80.91.229.2 (13 Oct 2005 19:59:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2005 19:59:17 +0000 (UTC) Original-X-From: ding-owner+m9695=ding+2daccount=gmane.org@lists.math.uh.edu Thu Oct 13 21:59:14 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EQ9AC-00042R-HS for ding-account@gmane.org; Thu, 13 Oct 2005 21:54:52 +0200 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 1EQ9AB-0008Ek-00 for ding-account@gmane.org; Thu, 13 Oct 2005 14:54:51 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EQ9A4-0008Eb-00 for ding@lists.math.uh.edu; Thu, 13 Oct 2005 14:54:44 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EQ99y-0006Ga-8e for ding@lists.math.uh.edu; Thu, 13 Oct 2005 14:54:44 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EQ99x-0001Rn-00 for ; Thu, 13 Oct 2005 21:54:37 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EQ96s-0002OP-FG for ding@gnus.org; Thu, 13 Oct 2005 21:51:26 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Oct 2005 21:51:26 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Oct 2005 21:51:26 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 58 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od [ Following up to an old thread: http://thread.gmane.org/m365jukh3s.fsf%40defun.localdomain ] On Sat, Oct 18 2003, Jesper Harder wrote: > Lars Magne Ingebrigtsen writes: > >> Jesper Harder writes: >> >>> +---------------------------------+ >>> | Sign (C-c RET s) | >>> | Encrypt (C-c RET c) | >>> | Sign Part (C-c RET S) | >>> | Encrypt Part (C-c RET C) | >>> | Encrypt/Sign Off (C-c RET C-n) | >>> | Change Security Method +-----------------------+ >>> +----------------------------| [x] PGP/MIME | >>> | [ ] Traditional PGP | >>> | [ ] S/MIME | >>> +-----------------------+ >> >> Beautiful. Did you check it in? > > No. I thought it would be better to wait for No Gnus to make user > visible changes like that. I have installed a new menu based on Jesper's suggestion: * mml-sec.el (mml-secure-method): New internal variable. (mml-secure-sign, mml-secure-encrypt, mml-secure-message-sign) (mml-secure-message-sign-encrypt, mml-secure-message-encrypt): New functions using mml-secure-method. * mml.el (mml-mode-map): Add key bindings for those functions. (mml-menu): Simplify security menu entries. (mml-attach-file, mml-attach-buffer, mml-attach-external): Goto end of message if point is the headers of the message. * message.el (message-in-body-p): New function. As inserting parts inside message headers makes no sense, I've changed those functions to go to the end of the message before inserting. Inserting attachments at the end seems preferable to the top of the message, because some broken MUAs are not able to deal with inline parts following attachments. I was quite unsure about the key bindings and some implementation details. Maybe we should also provide an interactive function and key bindings to change the current method (mml-secure-method). Comments? Suggestions? I don't use encryption/signing often; please tell me if this change breaks something or if it is inconvenient. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/