From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Moritz Ulrich Newsgroups: gmane.emacs.bugs Subject: bug#20133: 24.4; message-mode signs mails multiple times for FCC Date: Wed, 18 Mar 2015 12:41:34 +0100 Message-ID: <87wq2elehd.fsf@moritz-x230.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426678945 7423 80.91.229.3 (18 Mar 2015 11:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Mar 2015 11:42:25 +0000 (UTC) To: 20133@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 18 12:42:14 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YYCMX-00012z-9W for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 12:42:13 +0100 Original-Received: from localhost ([::1]:32788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYCMW-0006Uj-GI for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Mar 2015 07:42:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYCMS-0006UU-9o for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:42:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYCMM-0007TR-HI for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:42:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYCMM-0007TH-Eg for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YYCML-0005vb-UT for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Moritz Ulrich Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Mar 2015 11:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20133 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.142667891422769 (code B ref -1); Wed, 18 Mar 2015 11:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Mar 2015 11:41:54 +0000 Original-Received: from localhost ([127.0.0.1]:51105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYCMD-0005vB-9J for submit@debbugs.gnu.org; Wed, 18 Mar 2015 07:41:53 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58926) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YYCM9-0005v2-Up for submit@debbugs.gnu.org; Wed, 18 Mar 2015 07:41:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYCM4-0007QZ-Pa for submit@debbugs.gnu.org; Wed, 18 Mar 2015 07:41:49 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:53861) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYCM4-0007QT-MN for submit@debbugs.gnu.org; Wed, 18 Mar 2015 07:41:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60624) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYCM3-0006LL-AG for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:41:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYCLy-0007Nl-0H for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:41:43 -0400 Original-Received: from mail-wi0-f174.google.com ([209.85.212.174]:33024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYCLx-0007NG-Nd for bug-gnu-emacs@gnu.org; Wed, 18 Mar 2015 07:41:37 -0400 Original-Received: by wixw10 with SMTP id w10so62370391wix.0 for ; Wed, 18 Mar 2015 04:41:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-type; bh=DYGqgAdGAbrktJvS/KahO9UjSv6IYW6bUKIgjgSZckA=; b=AkFS77bX9RTGm7aNSxnJjUKBM9VrDNY+v1piv5daUDBAnkN6Jlowu1ucYLWzrBaJdL vbU511sD8iWu7WX5hVVUEvSaWr5G23zheQD5LIUa/uWBXyyp21gDKMLpmbmK8hIOUJbE pbsqK8TeLOvC7ebUqHkWUQVIrbXIcY5wCuGI8boKdR0uKoW1FmBYqgqChZZknEnGzQFE o8X2QVJVnJTXQE6h/i0cQuMHcmYqj4ZsXdi/sMi8tTJci07FWNx21IWhSPgc7dLKkItN Ka1ByAyeyoizjWpSITcj7mtCbYPBbq8F+zPDa9aM1AiE7fkhSb1UNgkfAzWR5m1qz4Wj V9zA== X-Gm-Message-State: ALoCoQmatVMx115u3z47jUdIlGmEjz9k54xeSwmtJRjC4x7Oe7fSHXY093RJgFE/YslkO4hnZUDL X-Received: by 10.194.61.161 with SMTP id q1mr144544999wjr.132.1426678896676; Wed, 18 Mar 2015 04:41:36 -0700 (PDT) Original-Received: from moritz-x230 ([2001:470:7860:11e0:3e97:eff:fe79:810e]) by mx.google.com with ESMTPSA id fs8sm2818852wib.8.2015.03.18.04.41.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Mar 2015 04:41:35 -0700 (PDT) Original-Received: from localhost (moritz-x230 [local]); by moritz-x230 (OpenSMTPD) with ESMTPA id e60fc8fc; for ; Wed, 18 Mar 2015 11:41:34 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100612 Archived-At: When sending signed emails with `mml-secure-message-sign-pgpmime', GnuPG is called once for the outgoing mail, then again for every FCC: header field. This isn't problematic when using gpg-agent & caching of passphrases, very annoying when not. A failure when typing the passphrase a second time results in message failing to store a local copy of the mail, even when the mail was sent successfully. This can be confusing. The issue tracks down to message.el:5411 where `message-encode-message-body' is called in a loop for every FCC. I'm not sure why it's necessary to re-encode the message once for every FCC. Isn't it possible to just store the original outgoing mail? If not, I suggest adding a variable to prevent signing from happening when storing the mail locally. In GNU Emacs 24.4.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.25) of 2015-02-20 on localhost Windowing system distributor `The X.Org Foundation', version 11.0.11604000 Configured using: `configure --disable-dependency-tracking --prefix=/nix/store/ji06y4haijly0i0knmr986l2dajffv1p-emacs-24.4 --with-x-toolkit=gtk --with-xft' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Message Minor modes in effect: mml-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t auto-fill-function: message-do-auto-fill transient-mark-mode: t abbrev-mode: t Recent input: C-x m m o r i t z @ t r a r n - v e d r a . d e C-j C-/ C-n t e s t C-j F C C : S-SPC / h o m e / m o r i t z / t m p / C-n C-n C-e C-j C-j M-x m m l - s e e i s i - p g m C-/ M-x m m l - s e m e s m s i - m p p g p m C-c C-c t r M-x C-g M-x r e p o r t a - e m Recent messages: Undo! Making completion list... [3 times] You can run the command `mml-secure-message-sign-pgpmime' with C-c RET s p Mark set Sending... Mark set [2 times] Sending via mail... Setting `send-mail-function' temporarily since "emacs -q" would overwrite customizations Mark set mail-file-babyl-p: not a regular file: /tmp/ Quit Load-path shadows: /run/current-system/sw/share/emacs/site-lisp/site-start hides /nix/store/ji06y4haijly0i0knmr986l2dajffv1p-emacs-24.4/share/emacs/site-lisp/site-start Features: (shadow emacsbug mailalias cus-edit cus-start cus-load sendmail epg gnus gnus-ems nnheader wid-edit cl-loaddefs cl-lib mml2015 epg-config password-cache mail-extr sort help-mode gnus-util message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mailabbrev mail-utils gmm-utils mailheader time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 108724 11604) (symbols 48 20876 0) (miscs 40 111 160) (strings 32 17949 4123) (string-bytes 1 517079) (vectors 16 12380) (vector-slots 8 415807 7630) (floats 8 81 276) (intervals 56 381 20) (buffers 960 17) (heap 1024 29049 684))