From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/76444 Path: news.gmane.org!not-for-mail From: Stefan Merten Newsgroups: gmane.emacs.gnus.general Subject: Fwd: Problem with global `message-options` Date: Mon, 07 Feb 2011 13:21:09 +0100 Message-ID: <5211.1297081269@theowa.merten-home.homelinux.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1297092978 19264 80.91.229.12 (7 Feb 2011 15:36:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2011 15:36:18 +0000 (UTC) Cc: Lars Ingebrigtsen , Shenghuo Zhu To: ding@gnus.org Original-X-From: ding-owner+M24792@lists.math.uh.edu Mon Feb 07 16:36:12 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmT8L-0004LC-Mb for ding-account@gmane.org; Mon, 07 Feb 2011 16:36:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1PmT8A-0005Bp-4o; Mon, 07 Feb 2011 09:35:58 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1PmQ63-0004DL-LP for ding@lists.math.uh.edu; Mon, 07 Feb 2011 06:21:35 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PmQ5y-0000SG-OI for ding@lists.math.uh.edu; Mon, 07 Feb 2011 06:21:34 -0600 Original-Received: from moutng.kundenserver.de ([212.227.17.9]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1PmQ5x-0006Wv-DH; Mon, 07 Feb 2011 13:21:29 +0100 Original-Received: from theowa.merten-home.homelinux.org (krsn-4d0b892e.pool.mediaWays.net [77.11.137.46]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MARW2-1PsRRo1WVm-00C3bL; Mon, 07 Feb 2011 13:21:22 +0100 Original-Received: by theowa.merten-home.homelinux.org (Postfix, from userid 1000) id CC34D400C5; Mon, 7 Feb 2011 13:21:09 +0100 (CET) Original-Received: from theowa.merten-home.homelinux.org (localhost [127.0.0.1]) by theowa.merten-home.homelinux.org (Postfix) with ESMTP id C9DD37A0EF; Mon, 7 Feb 2011 13:21:09 +0100 (CET) X-Mailer: MH-E 8.2; nmh 1.3; GNU Emacs 23.1.1 X-Provags-ID: V02:K0:/ZQpP+Xw3W/LmVCgB+ERhCW0TdPEPzAL4l0n71/v9Dy EPZRHHaY1XZya7S7vOUjotpH9RzpuzBEJzrv+6zoAxN3uGvfc2 +5ld2cselhM59xbHU4R1evJoJgoSI0/3BaRr7iMDnDhGNIcIMc u4XgugocbbaGGuQt8rsPjRtt/QdVvCNixycbVnkgbuK2WRLemt zH88rBQkcMQksuB8w2VUw== X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:76444 Archived-At: --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi! Lars Ingebrigtsen asked me to reroute the following question to this mail address. =2D------ Forwarded Message Date: Sun, 06 Feb 2011 21:06:50 +0100 From: Stefan Merten Subject: Problem with global `message-options` To: Lars Magne Ingebrigtsen , Shenghuo Zhu Message-Id: <15028.1297022810@rosalu.merten-home.homelinux.org> Hi Lars, Shenghuo! I discovered your email adresses in the header of `message.el` or `mml2015.el`, respectively, in the Emacs distribution (V23.1.1). That's why I'm writing you. I found the following problem. When I GPG-encrypt multiple mails with the Emacs machinery for different recipients the key used for the first encryption is used for all mails - regardless of their respective recipients. As you can imagine this is very annoying because all but the first recipients get mails they can't decrypt :-( . I tracked the problem down to the function `mml2015-epg-encrypt`. There is a (let ... (recipients (message-options-get 'mml2015-epg-recipients)) which via `message-options-get` fetches recipients from `message-options`. Since `message-options` is global and seemingly the `mml2015-epg-recipients` field is never cleared I get the results from a previous encryption. This is probably the reason why only the first key is used as described above. I solved the problem for me by making `message-options` buffer local - which seems the right thing to do anyway. Gr=FC=DFe Stefan =2D------ End of Forwarded Message --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQCVAwUBTU/jtQnTZgC3zSk5AQI3wgP8CPfW+Vtco6MpNq1pMI46/ua+1BXG4EBC 6JlsMcvGMw4HBy9wKSSgxVRCoq7McgbzMs5nS8prFsV6rrM1rdgnMpV99As8oAm6 pYSzuMA0Hf33SeMm34AIwi7DjKYS/185BBkdEIvCMAI2ExJfUr3mpXvezaufyv8L qAvzLqP54eI= =Mi3l -----END PGP SIGNATURE----- --=-=-=--