From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.bugs Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Date: Fri, 12 Apr 2013 16:39:26 +0900 Organization: Emacsen advocacy group Message-ID: References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> <8538uwopiu.fsf@iznogoud.viz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1365752414 4240 80.91.229.3 (12 Apr 2013 07:40:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Apr 2013 07:40:14 +0000 (UTC) Cc: Michael Heerdegen , Wolfgang Jenkner To: 14166@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 12 09:40:18 2013 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 1UQYan-0000jV-Fs for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 09:40:17 +0200 Original-Received: from localhost ([::1]:40355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQYan-0000f1-53 for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Apr 2013 03:40:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQYai-0000eo-Ft for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 03:40:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UQYag-0001a5-MV for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 03:40:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UQYag-0001a0-JU for bug-gnu-emacs@gnu.org; Fri, 12 Apr 2013 03:40:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UQYeQ-0007Oq-MU; Fri, 12 Apr 2013 03:44:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87mwt7wzy6.fsf@web.de> Resent-From: Katsumi Yamaoka Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Fri, 12 Apr 2013 07:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14166 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136575261028148 (code B ref 14166); Fri, 12 Apr 2013 07:44:01 +0000 Original-Received: (at 14166) by debbugs.gnu.org; 12 Apr 2013 07:43:30 +0000 Original-Received: from localhost ([127.0.0.1]:46860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQYds-0007Jq-Uu for submit@debbugs.gnu.org; Fri, 12 Apr 2013 03:43:29 -0400 Original-Received: from mail-hampton.hostforweb.net ([216.246.13.138]:51953 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQYdo-0007JQ-UR for 14166@debbugs.gnu.org; Fri, 12 Apr 2013 03:43:26 -0400 Original-Received: from localhost.localdomain ([127.0.0.1]:39935 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80) (envelope-from ) id 1UQYa1-001hNo-2L; Fri, 12 Apr 2013 02:39:29 -0500 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.130006 (=?UTF-8?Q?=E7=9C=9F?= Gnus v0.6) Emacs/24.3.50 (i686-pc-cygwin) Cancel-Lock: sha1:pRFHDarcNP8b0CcEtyibHl/sCaI= Content-Disposition: inline X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hampton.hostforweb.net X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Get-Message-Sender-Via: hampton.hostforweb.net: acl_c_authenticated_local_user: root X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:73355 Archived-At: 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: > =E3=83=BBRename `gnus-msg-mail' to `gnus-msg-mail-1'. Unnecessary. > =E3=83=BBCreate `gnus-msg-mail' that calls `gnus-msg-mail-1' with `let'- > binding of `gnus-newsgroup-name' to "gnus-user-agent". Change this to: =E3=83=BBMake `gnus-msg-mail' `let'-bind `gnus-newsgroup-name' to "". > =E3=83=BBUse `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'. > =E3=83=BBA 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: =E3=83=BBThe 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,