From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Apr 2013 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 14166 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 14166@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: michael_heerdegen@web.de Received: via spool by submit@debbugs.gnu.org id=B.136551728818631 (code B ref -1); Tue, 09 Apr 2013 14:22:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Apr 2013 14:21:28 +0000 Received: from localhost ([127.0.0.1]:42021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPZQM-0004qP-IJ for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:21:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45227) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPZQK-0004qH-EP for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:21:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPZMm-00032Z-M3 for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:17:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPZMm-00032V-JB for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:17:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPZMl-00039T-8s for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2013 10:17:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPZMj-0002yw-7G for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2013 10:17:43 -0400 Received: from mout.web.de ([212.227.15.4]:58081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPZMi-0002xS-Ty for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2013 10:17:41 -0400 Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0LvS9z-1UZMaf1LN5-010ejU for ; Tue, 09 Apr 2013 16:17:38 +0200 From: Michael Heerdegen Date: Tue, 09 Apr 2013 16:17:37 +0200 Message-ID: <87mwt7wzy6.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:lm+VOUElIxRhztSNXV0DikrpnQlexAsRAyfjV8wUHrG ysJZFetoeDd4qwFVrmpxA4GrIok+9pePYOuNi1fzlaovk9D7eD NyZ93Fm+6yhL0ePexIyto5uCdllRugiRpCzPb1Guku6srzolGt LUGChGkCRCHFQVAvH9qoe4cyOO81Iui/55D1fG3CN6bWB8s0GN DuLiwWzqbK57xSwh5iln1WNr0Gzmr5CfjnISbEBVkk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hello, the problem is the following (with my setup): - I have an active gnus; currently, I'm having a summary buffer showing the emacs-dev newsgroup. I need it for reference for the composition of a bug report. - I do M-x report-emacs-bug The result is that the mail composition buffer will have a TO field of "emacs-devel@gnu.org" instead of "bug-gnu-emacs@gnu.org". `report-emacs-bug' uses the posting-style of the group I'm currently reading. Surprising, and not very useful. Background: I use mail-user-agent == 'gnus-user-agent. Not sure if there are other related settings. And I have this element in `gnus-posting-styles': ("\\(?:\\(?:g\\(?:\\(?:mane\\|nu\\)\\.emacs\\.devel\\)\\)\\)\\'" (TO "emacs-devel@gnu.org") (BCC #1="michael_heerdegen@web.de") . #2=((FCC nil))) mainly because I read emacs-devel as a group, but want to reply always to the mailing list (I know about S L, but I want also to be able to use the standard reply commands. Please tell me if that's a bad idea). I debugged a bit. Here is what's going on: M-x report-emacs-bug --> compose-mail --> (get mail-user-agent 'composefunc) == 'gnus-msg-mail --> (gnus-setup-message 'message (message-mail to subject other-headers continue nil yank-action send-actions return-action)) The macro `gnus-setup-message' binds `#:group' to the value of `gnus-newsgroup-name', which is "nntp+Gmane:gmane.emacs.devel" in my case. Then it does this: (add-hook 'message-mode-hook (if (memq ,config '(reply-yank reply)) (lambda () (gnus-configure-posting-styles ,group)) (lambda () ;; There may be an old " *gnus article copy*" buffer. (let (gnus-article-copy) (gnus-configure-posting-styles ,group))))) At the end, running `message-mode-hook' changes the TO field according to the posting style via `gnus-configure-posting-styles'. Thanks, Michael. In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-04 on dex, modified by Debian (emacs-snapshot package, version 2:20130403-1) Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.0 (wheezy) Configured using: `configure --build x86_64-linux-gnu --host x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/ --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed -znocombreloc'' From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent 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: Wed, 10 Apr 2013 05:56: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: To: Michael Heerdegen Cc: 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136557335719443 (code B ref 14166); Wed, 10 Apr 2013 05:56:01 +0000 Received: (at 14166) by debbugs.gnu.org; 10 Apr 2013 05:55:57 +0000 Received: from localhost ([127.0.0.1]:42890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPo0i-00053X-Sq for submit@debbugs.gnu.org; Wed, 10 Apr 2013 01:55:57 -0400 Received: from mail-hampton.hostforweb.net ([216.246.13.138]:49413 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPo0f-00053P-Vu for 14166@debbugs.gnu.org; Wed, 10 Apr 2013 01:55:54 -0400 Received: from localhost.localdomain ([127.0.0.1]:52300 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80) (envelope-from ) id 1UPnx3-0019jR-9U; Wed, 10 Apr 2013 00:52:09 -0500 Date: Wed, 10 Apr 2013 14:52:06 +0900 Message-ID: From: Katsumi Yamaoka References: <87mwt7wzy6.fsf@web.de> Organization: Emacsen advocacy group 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:o3NP3ld2WsL5+KsJtnJFRK5+SPo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Michael Heerdegen wrote: > the problem is the following (with my setup): > - I have an active gnus; currently, I'm having a summary buffer showing > the emacs-dev newsgroup. I need it for reference for the composition > of a bug report. > - I do M-x report-emacs-bug > The result is that the mail composition buffer will have a TO field of > "emacs-devel@gnu.org" instead of "bug-gnu-emacs@gnu.org". > `report-emacs-bug' uses the posting-style of the group I'm currently > reading. Surprising, and not very useful. > Background: I use mail-user-agent == 'gnus-user-agent. Not sure if > there are other related settings. > And I have this element in `gnus-posting-styles': > ("\\(?:\\(?:g\\(?:\\(?:mane\\|nu\\)\\.emacs\\.devel\\)\\)\\)\\'" > (TO "emacs-devel@gnu.org") > (BCC #1="michael_heerdegen@web.de") > . #2=((FCC nil))) > mainly because I read emacs-devel as a group, but want to reply always > to the mailing list (I know about S L, but I want also to be able to use > the standard reply commands. Please tell me if that's a bad idea). [...] There seem to be several solutions, however ideas I have are not so good. For example: 1. To make `report-emacs-bug' bind `gnus-posting-styles' to nil unconditionally while performing `compose-mail'. It has to load gnus-msg.el, that provides `gnus-posting-styles', before binding it to nil if Gnus is not running yet even if `mail-user-agent' is not `gnus-user-agent'. Otherwise, `gnus-posting-styles' will be made unbound. Note that a function `gnus-user-agent' uses, that is `gnus-msg-mail', is autoloaded, and it involves many other Gnus modules loading. 2. Similar to 1. But load gnus-msg.el and bind `gnus-posting-styles' to nil if and only if `mail-user-agent' equals `gnus-user-agent'. I think the source code for it will get ugly. 3. To make `gnus-msg-mail' bind `gnus-posting-styles' to nil if and only if `this-command' is `report-emacs-bug'. It won't work if `report-emacs-bug' is called non-interactively. My second best is 2. What do others think? From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 10 Apr 2013 13:44:12 +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: To: Katsumi Yamaoka Cc: 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136560140114040 (code B ref 14166); Wed, 10 Apr 2013 13:44:12 +0000 Received: (at 14166) by debbugs.gnu.org; 10 Apr 2013 13:43:21 +0000 Received: from localhost ([127.0.0.1]:43334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPvJ0-0003ds-FX for submit@debbugs.gnu.org; Wed, 10 Apr 2013 09:43:20 -0400 Received: from mout.web.de ([212.227.15.3]:58610) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPvIu-0003cQ-Ca for 14166@debbugs.gnu.org; Wed, 10 Apr 2013 09:43:15 -0400 Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0MF3nL-1UNy5K3hAx-00Fn5j; Wed, 10 Apr 2013 15:39:06 +0200 From: Michael Heerdegen References: <87mwt7wzy6.fsf@web.de> Date: Wed, 10 Apr 2013 15:39:05 +0200 In-Reply-To: (Katsumi Yamaoka's message of "Wed, 10 Apr 2013 14:52:06 +0900") Message-ID: <87mwt64i9y.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:ScNTEq4ZtEwT6206+HcmhHtmvu055tqWoOmrIMR/7QD LawAJhGzQCbGIZGwlcpbpUF+o2OqVOVIaUsAL/hst359P13WuS Muuy48SclRVklhEC37zLZNOg1uHB3/WIOCdITfWZDDVFr+xk/q TcwlxdeCAebz8wDIsrA5Te1dCCc+3P8+cZhi/JszgXuei0cI61 XPWaL6JWwj01/rYRGvJz4CF2SCxHofuH2qF+pyggTQ= X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) Katsumi Yamaoka writes: > There seem to be several solutions, however ideas I have are not > so good. For example: > > 1. To make `report-emacs-bug' bind `gnus-posting-styles' to nil > unconditionally while performing `compose-mail'. It has to load > gnus-msg.el, that provides `gnus-posting-styles', before binding > it to nil if Gnus is not running yet even if `mail-user-agent' > is not `gnus-user-agent'. Otherwise, `gnus-posting-styles' will > be made unbound. Note that a function `gnus-user-agent' uses, > that is `gnus-msg-mail', is autoloaded, and it involves many other > Gnus modules loading. > > 2. Similar to 1. But load gnus-msg.el and bind `gnus-posting-styles' > to nil if and only if `mail-user-agent' equals `gnus-user-agent'. > I think the source code for it will get ugly. > > 3. To make `gnus-msg-mail' bind `gnus-posting-styles' to nil if and > only if `this-command' is `report-emacs-bug'. It won't work if > `report-emacs-bug' is called non-interactively. > > My second best is 2. What do others think? Just want to mention `gnus-inhibit-posting-styles'. Maybe binding it is more comfortable? Dunno, just an idea. Regards, Michael. From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent 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: Thu, 11 Apr 2013 00:46:02 +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: To: Michael Heerdegen Cc: 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136564113325110 (code B ref 14166); Thu, 11 Apr 2013 00:46:02 +0000 Received: (at 14166) by debbugs.gnu.org; 11 Apr 2013 00:45:33 +0000 Received: from localhost ([127.0.0.1]:44395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ5dt-0006Wt-28 for submit@debbugs.gnu.org; Wed, 10 Apr 2013 20:45:33 -0400 Received: from mail-hampton.hostforweb.net ([216.246.13.138]:37546 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQ5dp-0006We-3G for 14166@debbugs.gnu.org; Wed, 10 Apr 2013 20:45:30 -0400 Received: from localhost.localdomain ([127.0.0.1]:49209 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80) (envelope-from ) id 1UQ5a9-001iUz-5h; Wed, 10 Apr 2013 19:41:41 -0500 Date: Thu, 11 Apr 2013 09:41:38 +0900 Message-ID: From: Katsumi Yamaoka References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> Organization: Emacsen advocacy group 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:9tcKm1jrATmxR3pppyFS8HWJMOo= MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) --=-=-= Michael Heerdegen wrote: > Katsumi Yamaoka writes: >> There seem to be several solutions, however ideas I have are not >> so good. For example: >> >> 1. To make `report-emacs-bug' bind `gnus-posting-styles' to nil >> unconditionally while performing `compose-mail'. It has to load >> gnus-msg.el, that provides `gnus-posting-styles', before binding >> it to nil if Gnus is not running yet even if `mail-user-agent' >> is not `gnus-user-agent'. Otherwise, `gnus-posting-styles' will >> be made unbound. Note that a function `gnus-user-agent' uses, >> that is `gnus-msg-mail', is autoloaded, and it involves many other >> Gnus modules loading. >> >> 2. Similar to 1. But load gnus-msg.el and bind `gnus-posting-styles' >> to nil if and only if `mail-user-agent' equals `gnus-user-agent'. >> I think the source code for it will get ugly. >> >> 3. To make `gnus-msg-mail' bind `gnus-posting-styles' to nil if and >> only if `this-command' is `report-emacs-bug'. It won't work if >> `report-emacs-bug' is called non-interactively. >> >> My second best is 2. What do others think? > Just want to mention `gnus-inhibit-posting-styles'. Maybe binding it isThat > more comfortable? Dunno, just an idea. That will cause a problem similar to the one I mentioned in 1. If Gnus is neither running nor loaded when performing `report-emacs-bug', gnus-msg.el will be autoloaded under the condition where `gnus-inhibit-posting-styles' is let-bound (to non-nil), and `gnus-inhibit-posting-styles' will get void afterward. Besides this, I came to realize that a user may want to use `gnus-posting-styles' so as to add something like `Bcc: me', as you do. So, either way is not so good. Oh, I hit on a good idea! That's somewhat kludgy but works. A quick hack is below. It binds the newsgroup name to "report-emacs-bug" temporarily while performing `report-emacs-bug'. So, if you want to add `Bcc: me' to a bug report, you can use this element in `gnus-posting-styles': ("report-emacs-bug" (Bcc "michael_heerdegen@web.de")) WDYT? --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- emacsbug.el~ 2013-02-11 22:45:54.714731000 +0000 +++ emacsbug.el 2013-04-11 00:37:32.109258200 +0000 @@ -162,7 +162,12 @@ (setq message-end-point (with-current-buffer (get-buffer-create "*Messages*") (point-max-marker))) - (compose-mail report-emacs-bug-address topic) + (if (eq mail-user-agent 'gnus-user-agent) + (progn + (require 'gnus) ;; It defines `gnus-newsgroup-name'. + (let ((gnus-newsgroup-name "report-emacs-bug")) + (compose-mail report-emacs-bug-address topic))) + (compose-mail report-emacs-bug-address topic)) ;; The rest of this does not execute if the user was asked to ;; confirm and said no. (when (eq major-mode 'message-mode) --=-=-=-- From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 11 Apr 2013 13:56:07 +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: To: Katsumi Yamaoka Cc: Michael Heerdegen , 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136568853725722 (code B ref 14166); Thu, 11 Apr 2013 13:56:07 +0000 Received: (at 14166) by debbugs.gnu.org; 11 Apr 2013 13:55:37 +0000 Received: from localhost ([127.0.0.1]:45324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQHyN-0006fk-D6 for submit@debbugs.gnu.org; Thu, 11 Apr 2013 09:55:34 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:61347) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQHyE-0006dj-ND for 14166@debbugs.gnu.org; Thu, 11 Apr 2013 09:55:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxIEd/2dsb2JhbABEuzWDWRdzgh8BBVYjEAs0EhQYDSSIJMEtjR+DawOkeoFegxOBUw X-IPAS-Result: Av8EABK/CFFFxIEd/2dsb2JhbABEuzWDWRdzgh8BBVYjEAs0EhQYDSSIJMEtjR+DawOkeoFegxOBUw X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="7162764" Received: from 69-196-129-29.dsl.teksavvy.com (HELO pastel.home) ([69.196.129.29]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Apr 2013 09:51:20 -0400 Received: by pastel.home (Postfix, from userid 20848) id 7267567984; Thu, 11 Apr 2013 09:51:10 -0400 (EDT) From: Stefan Monnier Message-ID: References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> Date: Thu, 11 Apr 2013 09:51:10 -0400 In-Reply-To: (Katsumi Yamaoka's message of "Thu, 11 Apr 2013 09:41:38 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > + (if (eq mail-user-agent 'gnus-user-agent) > + (progn > + (require 'gnus) ;; It defines `gnus-newsgroup-name'. > + (let ((gnus-newsgroup-name "report-emacs-bug")) > + (compose-mail report-emacs-bug-address topic))) > + (compose-mail report-emacs-bug-address topic)) Why would we need such a hack? `compose-mail' already receives very clearly the destination address. 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. Stefan From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent In-Reply-To: <87mwt7wzy6.fsf@web.de> Resent-From: Wolfgang Jenkner Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 11 Apr 2013 18:08:02 +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: To: Michael Heerdegen Cc: 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136570363114574 (code B ref 14166); Thu, 11 Apr 2013 18:08:02 +0000 Received: (at 14166) by debbugs.gnu.org; 11 Apr 2013 18:07:11 +0000 Received: from localhost ([127.0.0.1]:45977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQLtu-0003n0-Ir for submit@debbugs.gnu.org; Thu, 11 Apr 2013 14:07:11 -0400 Received: from mx17.lb01.inode.at ([62.99.145.19]:54227 helo=mx.inode.at) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQLtr-0003mY-1z for 14166@debbugs.gnu.org; Thu, 11 Apr 2013 14:07:08 -0400 Received: from [91.119.239.153] (port=13417 helo=iznogoud.viz) by smartmx-17.inode.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UQLq7-0005vh-PF; Thu, 11 Apr 2013 20:03:15 +0200 Received: from wolfgang by iznogoud.viz with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UQLq6-0000KG-TF; Thu, 11 Apr 2013 20:03:14 +0200 From: Wolfgang Jenkner References: <87mwt7wzy6.fsf@web.de> Date: Thu, 11 Apr 2013 20:03:14 +0200 Message-ID: <857gk9ndwd.fsf@iznogoud.viz> User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) On Tue, Apr 09 2013, Michael Heerdegen wrote: > And I have this element in `gnus-posting-styles': > > ("\\(?:\\(?:g\\(?:\\(?:mane\\|nu\\)\\.emacs\\.devel\\)\\)\\)\\'" > (TO "emacs-devel@gnu.org") > (BCC #1="michael_heerdegen@web.de") > . #2=((FCC nil))) > > mainly because I read emacs-devel as a group, but want to reply always > to the mailing list (I know about S L, but I want also to be able to use > the standard reply commands. Please tell me if that's a bad idea). I read emacs-devel via gmane and use group parameters to reply to the mailing list instead, see (info "(gnus)Group Parameters"). For example, my group parameters for gmane.emacs.devel are ((subscribed . t) (to-list . "emacs-devel@gnu.org")) Also, gnus-mailing-list-insinuate can be used for the initial set-up. Wolfgang From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Resent-From: Michael Heerdegen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 11 Apr 2013 19:00:02 +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: To: Wolfgang Jenkner Cc: 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136570677931751 (code B ref 14166); Thu, 11 Apr 2013 19:00:02 +0000 Received: (at 14166) by debbugs.gnu.org; 11 Apr 2013 18:59:39 +0000 Received: from localhost ([127.0.0.1]:46046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQMig-0008G3-Kf for submit@debbugs.gnu.org; Thu, 11 Apr 2013 14:59:38 -0400 Received: from mout.web.de ([212.227.17.12]:58441) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQMib-0008Fr-Hj for 14166@debbugs.gnu.org; Thu, 11 Apr 2013 14:59:34 -0400 Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb002) with ESMTPSA (Nemesis) id 0LmLK6-1Uz9FH18tO-00aH6q; Thu, 11 Apr 2013 20:55:41 +0200 From: Michael Heerdegen References: <87mwt7wzy6.fsf@web.de> <857gk9ndwd.fsf@iznogoud.viz> Date: Thu, 11 Apr 2013 20:55:40 +0200 In-Reply-To: <857gk9ndwd.fsf@iznogoud.viz> (Wolfgang Jenkner's message of "Thu, 11 Apr 2013 20:03:14 +0200") Message-ID: <8738uwvqvn.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:0jSMvaQBC05j/hJ/+TWPTe8vz0tMdLhbJ1N1OxS/KdW 8p4TYmCZAAioNS0BtQrc1hZta63uti2h7aaQEtJzQtwwULgvKd qNqxPKu4Ue7g8wNggk+Yharbmbuu44W9TcZ+cK9LqOBRRl2H9I Xl5RNALfzv+R4NBVX0PlKkSe1rB591BpdUIz13RUp4q0s0Dww4 TcQbgcmeEHiAKdzqFpBBtHCXxItgwJzEMKUDBRX2og= X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) Wolfgang Jenkner writes: > I read emacs-devel via gmane and use group parameters to reply to the > mailing list instead, see (info "(gnus)Group Parameters"). For example, > my group parameters for gmane.emacs.devel are > > ((subscribed . t) > (to-list . "emacs-devel@gnu.org")) Although I still think this problem should be fixed - this is a good hint, many thanks! I tried this: --8<---------------cut here---------------start------------->8--- (dolist (entry my-gnus-newsgroups-to-mailing-lists-mapping) (add-to-list 'gnus-parameters `(,(car entry) (subscribed . t) (to-list . ,(cdr entry))))) --8<---------------cut here---------------end--------------->8--- where `my-gnus-newsgroups-to-mailing-lists-mapping' is an alist ((group-regexp . mailing-list-name) ...) I already had defined (I'm indeed subscribed to all of those). And it seems to work very well, without provoking this bug. Regards, Michael. From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Resent-From: Wolfgang Jenkner Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 11 Apr 2013 19:11: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: To: Stefan Monnier Cc: Michael Heerdegen , Katsumi Yamaoka , 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.13657074492728 (code B ref 14166); Thu, 11 Apr 2013 19:11:01 +0000 Received: (at 14166) by debbugs.gnu.org; 11 Apr 2013 19:10:49 +0000 Received: from localhost ([127.0.0.1]:46063 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQMtT-0000hq-Ut for submit@debbugs.gnu.org; Thu, 11 Apr 2013 15:10:48 -0400 Received: from mx10.lb01.inode.at ([62.99.145.10]:13875 helo=mx.inode.at) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQMtQ-0000hY-Qs for 14166@debbugs.gnu.org; Thu, 11 Apr 2013 15:10:45 -0400 Received: from [91.119.239.153] (port=15317 helo=iznogoud.viz) by smartmx-10.inode.at with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UQMph-0006OY-AX; Thu, 11 Apr 2013 21:06:53 +0200 Received: from wolfgang by iznogoud.viz with local (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1UQMpd-0000M7-Q7; Thu, 11 Apr 2013 21:06:49 +0200 From: Wolfgang Jenkner References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> Date: Thu, 11 Apr 2013 21:06:49 +0200 In-Reply-To: (Stefan Monnier's message of "Thu, 11 Apr 2013 09:51:10 -0400") Message-ID: <8538uwopiu.fsf@iznogoud.viz> User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.4 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) 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 ;-) Wolfgang From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent 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 01:58: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: To: Wolfgang Jenkner , Stefan Monnier Cc: Michael Heerdegen , 14166@debbugs.gnu.org Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136573186112579 (code B ref 14166); Fri, 12 Apr 2013 01:58:01 +0000 Received: (at 14166) by debbugs.gnu.org; 12 Apr 2013 01:57:41 +0000 Received: from localhost ([127.0.0.1]:46560 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQTFE-0003Go-Q6 for submit@debbugs.gnu.org; Thu, 11 Apr 2013 21:57:41 -0400 Received: from mail-hampton.hostforweb.net ([216.246.13.138]:55446 helo=hampton.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQTFC-0003GV-Gb for 14166@debbugs.gnu.org; Thu, 11 Apr 2013 21:57:39 -0400 Received: from localhost.localdomain ([127.0.0.1]:43883 helo=localhost) by hampton.hostforweb.net with smtp (Exim 4.80) (envelope-from ) id 1UQTBQ-003kYS-0O; Thu, 11 Apr 2013 20:53:44 -0500 Date: Fri, 12 Apr 2013 10:53:40 +0900 Message-ID: From: Katsumi Yamaoka References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> <8538uwopiu.fsf@iznogoud.viz> Organization: Emacsen advocacy group 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:duzExr4PZhKRLRvqAsUlqRSpyx0= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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: yamaoka X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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. =E3=83=BBRename `gnus-msg-mail' to `gnus-msg-mail-1'. =E3=83=BBCreate `gnus-msg-mail' that calls `gnus-msg-mail-1' with `let'- binding of `gnus-newsgroup-name' to "gnus-user-agent". =E3=83=BBUse `gnus-msg-mail' for composefunc exclusively. Make Gnus internals 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". Those changes will be done within Gnus. Any other suggestion is welcome. My only anxiety is such a pseudo group name. Regards, P.S. I'm not a posting style user. From unknown Tue Jun 17 01:43:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent 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: To: 14166@debbugs.gnu.org Cc: Michael Heerdegen , Wolfgang Jenkner , Stefan Monnier Received: via spool by 14166-submit@debbugs.gnu.org id=B14166.136575261028148 (code B ref 14166); Fri, 12 Apr 2013 07:44:01 +0000 Received: (at 14166) by debbugs.gnu.org; 12 Apr 2013 07:43:30 +0000 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 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 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 Date: Fri, 12 Apr 2013 16:39:26 +0900 Message-ID: From: Katsumi Yamaoka References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> <8538uwopiu.fsf@iznogoud.viz> Organization: Emacsen advocacy group 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= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) 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, From unknown Tue Jun 17 01:43:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: michael_heerdegen@web.de Subject: bug#14166: closed (Re: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent) Message-ID: References: <87mwt7wzy6.fsf@web.de> X-Gnu-PR-Message: they-closed 14166 X-Gnu-PR-Package: emacs,gnus Reply-To: 14166@debbugs.gnu.org Date: Fri, 12 Apr 2013 15:23:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1365780182-14086-1" This is a multi-part message in MIME format... ------------=_1365780182-14086-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #14166: 24.3.50; report-emacs-bug and mail-user-agent =3D=3D 'gnus-user-age= nt which was filed against the emacs,gnus package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 14166@debbugs.gnu.org. --=20 14166: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D14166 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1365780182-14086-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 14166-done) by debbugs.gnu.org; 12 Apr 2013 15:22:31 +0000 Received: from localhost ([127.0.0.1]:47517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQfo6-0003dl-K5 for submit@debbugs.gnu.org; Fri, 12 Apr 2013 11:22:30 -0400 Received: from mail-halifax.hostforweb.net ([205.234.137.17]:44873 helo=halifax.hostforweb.net) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UQfo3-0003db-2G for 14166-done@debbugs.gnu.org; Fri, 12 Apr 2013 11:22:28 -0400 Received: from softbank219034144017.bbtec.net ([219.34.144.17]:48147 helo=) by halifax.hostforweb.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1UQfk2-0001Pi-M1; Fri, 12 Apr 2013 10:18:19 -0500 From: Katsumi Yamaoka To: 14166-done@debbugs.gnu.org Subject: Re: bug#14166: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent References: <87mwt7wzy6.fsf@web.de> <87mwt64i9y.fsf@web.de> <8538uwopiu.fsf@iznogoud.viz> 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&( Date: Sat, 13 Apr 2013 00:18:13 +0900 Message-ID: User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:qmMUF/VLBWOfqgTicxNu1g0rI3I= MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - halifax.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: halifax.hostforweb.net: authenticated_id: yamaokac/only user confirmed/virtual account not confirmed X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 14166-done Cc: Michael Heerdegen , Wolfgang Jenkner , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Katsumi Yamaoka wrote: > So, what I'm going to do now is simply to modify `gnus-msg-mail'. Done. ------------=_1365780182-14086-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Apr 2013 14:21:28 +0000 Received: from localhost ([127.0.0.1]:42021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPZQM-0004qP-IJ for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:21:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45227) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UPZQK-0004qH-EP for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:21:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPZMm-00032Z-M3 for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:17:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-104.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55555) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPZMm-00032V-JB for submit@debbugs.gnu.org; Tue, 09 Apr 2013 10:17:44 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPZMl-00039T-8s for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2013 10:17:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPZMj-0002yw-7G for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2013 10:17:43 -0400 Received: from mout.web.de ([212.227.15.4]:58081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPZMi-0002xS-Ty for bug-gnu-emacs@gnu.org; Tue, 09 Apr 2013 10:17:41 -0400 Received: from drachen.dragon ([92.74.136.91]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0LvS9z-1UZMaf1LN5-010ejU for ; Tue, 09 Apr 2013 16:17:38 +0200 From: Michael Heerdegen To: bug-gnu-emacs@gnu.org Subject: 24.3.50; report-emacs-bug and mail-user-agent == 'gnus-user-agent Date: Tue, 09 Apr 2013 16:17:37 +0200 Message-ID: <87mwt7wzy6.fsf@web.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V02:K0:lm+VOUElIxRhztSNXV0DikrpnQlexAsRAyfjV8wUHrG ysJZFetoeDd4qwFVrmpxA4GrIok+9pePYOuNi1fzlaovk9D7eD NyZ93Fm+6yhL0ePexIyto5uCdllRugiRpCzPb1Guku6srzolGt LUGChGkCRCHFQVAvH9qoe4cyOO81Iui/55D1fG3CN6bWB8s0GN DuLiwWzqbK57xSwh5iln1WNr0Gzmr5CfjnISbEBVkk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: michael_heerdegen@web.de List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Hello, the problem is the following (with my setup): - I have an active gnus; currently, I'm having a summary buffer showing the emacs-dev newsgroup. I need it for reference for the composition of a bug report. - I do M-x report-emacs-bug The result is that the mail composition buffer will have a TO field of "emacs-devel@gnu.org" instead of "bug-gnu-emacs@gnu.org". `report-emacs-bug' uses the posting-style of the group I'm currently reading. Surprising, and not very useful. Background: I use mail-user-agent == 'gnus-user-agent. Not sure if there are other related settings. And I have this element in `gnus-posting-styles': ("\\(?:\\(?:g\\(?:\\(?:mane\\|nu\\)\\.emacs\\.devel\\)\\)\\)\\'" (TO "emacs-devel@gnu.org") (BCC #1="michael_heerdegen@web.de") . #2=((FCC nil))) mainly because I read emacs-devel as a group, but want to reply always to the mailing list (I know about S L, but I want also to be able to use the standard reply commands. Please tell me if that's a bad idea). I debugged a bit. Here is what's going on: M-x report-emacs-bug --> compose-mail --> (get mail-user-agent 'composefunc) == 'gnus-msg-mail --> (gnus-setup-message 'message (message-mail to subject other-headers continue nil yank-action send-actions return-action)) The macro `gnus-setup-message' binds `#:group' to the value of `gnus-newsgroup-name', which is "nntp+Gmane:gmane.emacs.devel" in my case. Then it does this: (add-hook 'message-mode-hook (if (memq ,config '(reply-yank reply)) (lambda () (gnus-configure-posting-styles ,group)) (lambda () ;; There may be an old " *gnus article copy*" buffer. (let (gnus-article-copy) (gnus-configure-posting-styles ,group))))) At the end, running `message-mode-hook' changes the TO field according to the posting style via `gnus-configure-posting-styles'. Thanks, Michael. In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.4.2) of 2013-04-04 on dex, modified by Debian (emacs-snapshot package, version 2:20130403-1) Windowing system distributor `The X.Org Foundation', version 11.0.11204000 System Description: Debian GNU/Linux 7.0 (wheezy) Configured using: `configure --build x86_64-linux-gnu --host x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp --without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/ --with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes CFLAGS='-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' CPPFLAGS='-D_FORTIFY_SOURCE=2' LDFLAGS='-g -Wl,--as-needed -znocombreloc'' ------------=_1365780182-14086-1--