GNU bug report logs - #14166
24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent

Previous Next

Packages: gnus, emacs;

Reported by: michael_heerdegen <at> web.de

Date: Tue, 9 Apr 2013 14:22:02 UTC

Severity: normal

Found in version 24.3.50

Done: Katsumi Yamaoka <yamaoka <at> jpl.org>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 14166 <at> debbugs.gnu.org (full text, mbox):

From: Katsumi Yamaoka <yamaoka <at> jpl.org>
To: 14166 <at> debbugs.gnu.org
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>,
	Wolfgang Jenkner <wjenkner <at> inode.at>,
	Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#14166: 24.3.50;
	report-emacs-bug and mail-user-agent == 'gnus-user-agent
Date: Fri, 12 Apr 2013 16:39:26 +0900
Katsumi Yamaoka wrote:
> Wolfgang Jenkner wrote:
>> On Thu, Apr 11 2013, Stefan Monnier wrote:
>>> more to the point: we start with a call to Gnus's `composefunc' with an
>>> explicit "to" address (with value report-emacs-bug-address).  And we end
>>> with a message that uses a different "to" address.  So the problem seems
>>> to be on Gnus's side only.

>> The Gnus callee behaves as documented, so you'd normally expect the
>> caller to put up with it.  Personally, though, I don't think there's
>> a bug here at all, just an example of legitimate foot-shooting ;-)

> Thanks for your help.  I'd like to fix this problem in this manner:

> Background:
>   The composefunc of `gnus-user-agent' is `gnus-msg-mail', that is
> called by not only `compose-mail' but also some Gnus internals.
>   A posting style corresponding to a currently opened group is
> applied when running `gnus-msg-mail'.  No problem if it is used
> within Gnus.  However, the posting style may get meaningless or
> harmful if it is called outside of Gnus.  This suggests that every
> user will be able to be a foot-shooter.

After having consulted the Gnus code, I changed my mind as follows:

> ・Rename `gnus-msg-mail' to `gnus-msg-mail-1'.

Unnecessary.

> ・Create `gnus-msg-mail' that calls `gnus-msg-mail-1' with `let'-
>   binding of `gnus-newsgroup-name' to "gnus-user-agent".

Change this to:
・Make `gnus-msg-mail' `let'-bind `gnus-newsgroup-name' to "".

> ・Use `gnus-msg-mail' for composefunc exclusively.  Make Gnus
>   internals use `gnus-msg-mail-1' instead of `gnus-msg-mail'.
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Currently there's no Gnus internal that had better use
`gnus-msg-mail-1' instead of `gnus-msg-mail'.

> ・A user who want to use a posting style even when `compose-mail'
>   is used may add it for the group named "gnus-user-agent".

Replace this paragraph with:

・The default posting style, that begins with ".*" and the like,
  will be applied to a mail that `compose-mail' originates.

So, what I'm going to do now is simply to modify `gnus-msg-mail'.
Maybe an Info for this is unnecessary.

Regards,




This bug report was last modified 12 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.