GNU bug report logs - #38967
27.0.60; Incorrect 'from' header when gnus-summary-mail-forward called from nnir group

Previous Next

Package: emacs;

Reported by: Pankaj Jangid <p4j <at> j4d.net>

Date: Mon, 6 Jan 2020 09:32:02 UTC

Severity: normal

Tags: notabug

Found in version 27.0.60

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38967 in the body.
You can then email your comments to 38967 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38967; Package emacs. (Mon, 06 Jan 2020 09:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pankaj Jangid <p4j <at> j4d.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 06 Jan 2020 09:32:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <p4j <at> j4d.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.60; Incorrect 'from' header when gnus-summary-mail-forward
 called from nnir group 
Date: Mon, 6 Jan 2020 09:31:43 +0000
Steps:
1. Do nnir search on an IMAP group to create a temp nnir group
   C-u G G <RET> search-term <RET> subject <RET>
2. Process mark a few articles using '#' key
3. gnus-summary-attach-article (S A) selects from address that is specified in
   the configuration variable user-mail-address 

The desired behaviour is to pick the address specified for the group
on which the NNIR search is invoked. I have tried
gnus-summary-mail-forward (C-c C-f). And the behaviour is
correct there. From address is picked from the current group.


In GNU Emacs 27.0.60 (build 8, x86_64-apple-darwin19.2.0, NS appkit-1894.20 Version 10.15.2 (Build 19C57))
 of 2020-01-06 built on Pankajs-MacBook-Pro.local
Repository revision: 088bfcc2d80eed44864147f3491eff69e4eb5cd8
Repository branch: emacs-27
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.2

Recent messages:
Requesting article 128759 from group nnimap+otp:INBOX
Requesting article 129125 from group nnimap+otp:INBOX
Requesting article 129130 from group nnimap+otp:INBOX
Requesting article 129479 from group nnimap+otp:INBOX
Type "q" in help window to restore its previous buffer.
Mark saved where search started [2 times]
Quit
Type C-x 1 to delete the help window.
Type C-x 1 to delete the help window, C-M-v to scroll help.
funcall-interactively: Text is read-only

Configured using:
 'configure LDFLAGS=-L/usr/local/opt/ruby/lib
 CPPFLAGS=-I/usr/local/opt/ruby/include
 PKG_CONFIG_PATH=:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig
 'HARFBUZZ_CFLAGS=-I/usr/local/Cellar/harfbuzz/2.6.4/include/harfbuzz
 -I/usr/local/Cellar/glib/2.62.2/include/glib-2.0
 -I/usr/local/Cellar/glib/2.62.2/lib/glib-2.0/include
 -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.43/include
 -I/usr/local/Cellar/graphite2/1.3.13/include'
 'HARFBUZZ_LIBS=-L/usr/local/Cellar/harfbuzz/2.6.4/lib -lharfbuzz''

Configured features:
RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS
NS MODULES THREADS JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_IN.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Outline

Minor modes in effect:
  bug-reference-mode: t
  flyspell-mode: t
  electric-pair-mode: t
  direnv-mode: t
  show-paren-mode: t
  which-key-mode: t
  display-time-mode: t
  global-hl-line-mode: t
  projectile-mode: t
  icomplete-mode: t
  recentf-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow emacsbug eieio-opt speedbar sb-image ezimage dframe two-column
iso-transl deuglify gnus-cus gnus-demon gnus-diary nndiary gnus-draft
gnus-dup gnus-fun gnus-html url-queue url-cache mm-url gnus-kill
gnus-logic gnus-mh mh-comp mh-scan mh-gnus mh-e mh-compat mh-buffers
mh-loaddefs gnus-registry registry eieio-base gnus-salt gnus-vm misearch
multi-isearch bug-reference gnus-uu yenc bbdb-message sendmail flyspell
ispell nnir flow-fill shr-color help-fns radix-tree cl-print debug
backtrace vc-git diff-mode sort smiley gnus-cite mm-archive mail-extr qp
gnus-async gnus-bcklg gnus-ml disp-table gnus-topic nndraft nnmh utf-7
nnfolder bbdb-gnus epa-file gnutls network-stream nsm gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu
mml2015 mm-view mml-smime smime dig nntp gnus-cache gnus-sum url
url-proxy url-privacy url-expand url-methods url-history mailcap shr
url-cookie url-domsuf url-util svg xml dom gnus-group gnus-undo
gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 gmm-utils mailheader gnus-win
gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums
text-property-search mail-utils mm-util mail-prsvr cl-extra
company-oddmuse company-keywords company-etags etags fileloop generator
xref project company-gtags company-dabbrev-code company-dabbrev
company-files company-capf company-cmake company-xcode company-clang
company-semantic company-eclim company-template company-bbdb company
pcase display-line-numbers yasnippet help-mode elec-pair hideshow direnv
dash sanityinc-tomorrow-bright-theme color-theme-sanityinc-tomorrow
color paren which-key init server init-prog flymake-proc flymake
warnings init-edit init-keys init-looks time hl-line init-env
exec-path-from-shell init-melpa init-tools projectile grep compile
ibuf-ext ibuffer ibuffer-loaddefs ob-C cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ob-python
org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote
org-src ob-comint org-pcomplete pcomplete comint ansi-color ring
org-list org-faces org-entities time-date noutline outline easy-mmode
org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys
org-compat advice org-macs org-loaddefs find-func cal-menu calendar
cal-loaddefs bbdb-mua bbdb-com crm mailabbrev bbdb bbdb-site timezone
icomplete edmacro kmacro erc-auth erc-join erc-goodies erc erc-backend
erc-compat format-spec thingatpt pp erc-loaddefs recentf tree-widget
wid-edit rx info package easymenu browse-url url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json subr-x map url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib early-init tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
font-core term/tty-colors frame minibuffer cl-generic cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads dbusbind kqueue
cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 534822 54718)
 (symbols 48 35457 1)
 (strings 32 113773 6507)
 (string-bytes 1 4575723)
 (vectors 16 52221)
 (vector-slots 8 867761 57894)
 (floats 8 542 243)
 (intervals 56 1963 1139)
 (buffers 1000 96))

-- 
Pankaj Jangid






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38967; Package emacs. (Sun, 19 Jul 2020 14:45:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pankaj Jangid <p4j <at> j4d.net>
Cc: 38967 <at> debbugs.gnu.org
Subject: Re: bug#38967: 27.0.60; Incorrect 'from' header when
 gnus-summary-mail-forward called from nnir group
Date: Sun, 19 Jul 2020 16:43:56 +0200
Pankaj Jangid <p4j <at> j4d.net> writes:

> Steps:
> 1. Do nnir search on an IMAP group to create a temp nnir group
>    C-u G G <RET> search-term <RET> subject <RET>
> 2. Process mark a few articles using '#' key
> 3. gnus-summary-attach-article (S A) selects from address that is specified in
>    the configuration variable user-mail-address 
>
> The desired behaviour is to pick the address specified for the group
> on which the NNIR search is invoked. I have tried
> gnus-summary-mail-forward (C-c C-f). And the behaviour is
> correct there. From address is picked from the current group.

I don't use nnir myself, so I can't really test.  Can you determine what
it is that gnus-summary-mail-forward does that `S A' doesn't do?  I had
a look at the code of the former, and I couldn't really see where it
would peek through to the original group to find settings from that
group...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38967; Package emacs. (Sat, 30 Jan 2021 06:56:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pankaj Jangid <p4j <at> j4d.net>
Cc: 38967 <at> debbugs.gnu.org
Subject: Re: bug#38967: 27.0.60; Incorrect 'from' header when
 gnus-summary-mail-forward called from nnir group 
Date: Sat, 30 Jan 2021 07:55:37 +0100
Pankaj Jangid <p4j <at> j4d.net> writes:

> 1. Do nnir search on an IMAP group to create a temp nnir group
>    C-u G G <RET> search-term <RET> subject <RET>
> 2. Process mark a few articles using '#' key
> 3. gnus-summary-attach-article (S A) selects from address that is specified in
>    the configuration variable user-mail-address 

nnir is obsolete now, but do you see the same bug in nnselect in Emacs
28?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 30 Jan 2021 06:56:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38967; Package emacs. (Sun, 31 Jan 2021 05:56:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <p4j <at> j4d.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 38967 <at> debbugs.gnu.org
Subject: Re: bug#38967: 27.0.60; Incorrect 'from' header when
 gnus-summary-mail-forward called from nnir group
Date: Sun, 31 Jan 2021 11:24:53 +0530
> 1. Do nnir search on an IMAP group to create a temp nnir group
>    C-u G G <RET> search-term <RET> subject <RET>
> 2. Process mark a few articles using '#' key
> 3. gnus-summary-attach-article (S A) selects from address that is specified in
>    the configuration variable user-mail-address 

Yes. This is reproducible with nnselect.

But step (3) has misleading information. It is not picking from
user-mail-address. It is picking from gnus-posting-style,

(setq gnus-posting-styles
      '((".*"
         (name "Pankaj Jangid")
         (address "pankaj <at> xyz.invalid"))
	("nnimap\\+j4d:.*"
         (address "p4j <at> j4d.net"))))

When I create an nnselect group by doing C-u G G on nnimap+j4d:INBOX
group, it should actually pick the address defined for group
(j4d:.*). But it is picking the first one, defined for (.*).





Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 01 Mar 2021 15:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38967; Package emacs. (Sun, 08 May 2022 14:11:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pankaj Jangid <p4j <at> j4d.net>
Cc: 38967 <at> debbugs.gnu.org
Subject: Re: bug#38967: 27.0.60; Incorrect 'from' header when
 gnus-summary-mail-forward called from nnir group 
Date: Sun, 08 May 2022 16:10:16 +0200
Pankaj Jangid <p4j <at> j4d.net> writes:

> (setq gnus-posting-styles
>       '((".*"
>          (name "Pankaj Jangid")
>          (address "pankaj <at> xyz.invalid"))
> 	("nnimap\\+j4d:.*"
>          (address "p4j <at> j4d.net"))))
>
> When I create an nnselect group by doing C-u G G on nnimap+j4d:INBOX
> group, it should actually pick the address defined for group
> (j4d:.*). But it is picking the first one, defined for (.*).

No, `gnus-posting-styles' works on the actual group names, and doesn't
look into whether it's a "meta group" or not.  So if you want to use
posting styles with nnselect/nnvirtual, you have to adjust your posting
styles so that they work with the names of those groups.

So I think this works as designed, and I'm therefore closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 08 May 2022 14:11:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 38967 <at> debbugs.gnu.org and Pankaj Jangid <p4j <at> j4d.net> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 08 May 2022 14:11:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 06 Jun 2022 11:24:12 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 98 days ago.

Previous Next


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