Gnus development mailing list
 help / color / mirror / Atom feed
* Fwd: Problem with global `message-options`
@ 2011-02-07 12:21 Stefan Merten
  2011-02-08  9:57 ` Julien Danjou
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Merten @ 2011-02-07 12:21 UTC (permalink / raw)
  To: ding; +Cc: Lars Ingebrigtsen, Shenghuo Zhu

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

Hi!

Lars Ingebrigtsen asked me to reroute the following question to this
mail address.

------- Forwarded Message

Date:  Sun, 06 Feb 2011 21:06:50 +0100
From:  Stefan Merten <smerten@oekonux.de>
Subject:  Problem with global `message-options`
To:  Lars Magne Ingebrigtsen <larsi@gnus.org>,
    Shenghuo Zhu <zsh@cs.rochester.edu>
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üße

						Stefan

------- End of Forwarded Message


[-- Attachment #2: Type: application/pgp-signature, Size: 307 bytes --]

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

* Re: Fwd: Problem with global `message-options`
  2011-02-07 12:21 Fwd: Problem with global `message-options` Stefan Merten
@ 2011-02-08  9:57 ` Julien Danjou
  0 siblings, 0 replies; 2+ messages in thread
From: Julien Danjou @ 2011-02-08  9:57 UTC (permalink / raw)
  To: Stefan Merten; +Cc: ding, Lars Ingebrigtsen, Shenghuo Zhu

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

On Mon, Feb 07 2011, Stefan Merten wrote:

> I solved the problem for me by making `message-options` buffer local -
> which seems the right thing to do anyway.

It seems to me too. I've fixed that this way.

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

end of thread, other threads:[~2011-02-08  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-07 12:21 Fwd: Problem with global `message-options` Stefan Merten
2011-02-08  9:57 ` Julien Danjou

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