GNU bug report logs - #52871
29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's

Previous Next

Package: emacs;

Reported by: Emanuel Berg <moasenwood <at> zoho.eu>

Date: Wed, 29 Dec 2021 13:25:01 UTC

Severity: normal

Tags: moreinfo

Found in version 29.0.50

Fixed in version 29.1

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 52871 in the body.
You can then email your comments to 52871 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#52871; Package emacs. (Wed, 29 Dec 2021 13:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Emanuel Berg <moasenwood <at> zoho.eu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 29 Dec 2021 13:25:02 GMT) Full text and rfc822 format available.

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

From: Emanuel Berg <moasenwood <at> zoho.eu>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Wed, 29 Dec 2021 14:24:18 +0100
I had this - try it, only with the "^From" line uncommented.

(setq message-hidden-headers '("^Face"
                               ;; "^From"
                               "^Mail-Copies-To"
                               "^References"
                               "^X-Draft-From"
                               "^X-Face") )

If you then send a mail, you get

  mail-extract-address-components: Invalid address: nil

I always thought that, `message-hidden-headers', a mere
interface setting so it took me several days to find this
bug ...


In GNU Emacs 29.0.50 (build 4, x86_64-pc-linux-gnu, cairo version 1.16.0)
 of 2021-12-27 built on ebc
Repository revision: fbe026cb3e2f8148dd1841e0f9974915ca32c84d
Repository branch: master
System Description: Debian GNU/Linux 11 (bullseye)

Configured using:
 'configure --with-x-toolkit=no'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS
HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2
M17N_FLT MODULES NOTIFY INOTIFY OLDXMENU PDUMPER PNG RSVG
SECCOMP SOUND THREADS TIFF X11 XDBE XIM XPM ZLIB

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

Major mode: Group

Minor modes in effect:
  erc-list-mode: t
  erc-menu-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-netsplit-mode: t
  cursor-sensor-mode: t
  erc-match-mode: t
  erc-button-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-autojoin-mode: t
  erc-networks-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  gnus-undo-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: linux
  auto-compression-mode: t
  buffer-read-only: t
  transient-mark-mode: t

Load-path shadows:
~/.emacs.d/emacs-init/misc hides /usr/local/share/emacs/29.0.50/lisp/misc
~/.emacs.d/lisp/abbrev hides /usr/local/share/emacs/29.0.50/lisp/abbrev
/usr/local/share/emacs/29.0.50/lisp/emacs-lisp/eieio-compat hides /usr/local/share/emacs/29.0.50/lisp/obsolete/eieio-compat

Features:
(shadow emacsbug mule-util erc-list erc-menu erc-track
erc-netsplit shortdoc cl-extra cl-print help-fns radix-tree
canlock nnfolder mailalias mail-extr gnus-draft tabify
gnus-dup gnus-ml disp-table cursor-sensor pop3 nndraft nnmh
nnml gnutls network-stream nsm gnus-agent nnvirtual nntp
gnus-cache term/linux cus-edit cus-start cus-load
w3m-unisearch w3m-incal w3m-session w3m-search checkdoc
lisp-mnt lisp-incal ielm nroff-mode compile-incal cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs summary message-incal moggle
mail-to-many gnus-server smtpmail sendmail article
w3m-download w3m-bookmark-more w3m-tabs erc-connect
bibtex-next-volume bibtex-incal bibtex-field bibtex-book
bibtex-autokey-insert yank xsel wrap-search spell ispell
sort-incal sort revert-buffer lpr inf-lisp tramp-cache
tramp-sh w3m-bookmark t-mouse man-incal tex-mode mode-line
kill keys iterate-files issn-verify isbn-verify help-incal
debug backtrace help-mode apropos fill-incal w3m-form
sh-script executable org ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-footnote org-src ob-comint org-pcomplete
org-list org-faces org-entities org-version ob-emacs-lisp
ob-core ob-eval org-table oc-basic bibtex ol org-keys oc
org-compat advice org-macs org-loaddefs find-func cal-menu
calendar cal-loaddefs markdown-mode rx noutline outline
easy-mmode man gnus-cite erc-match erc-button css-mode smie
sgml-mode facemenu imenu eww xdg url-queue mm-url color
compile epwgen em-hist em-pred esh-mode quit gnus-incal group
group-summary gnus-srvr erc-incal warnings erc-spell erc-ring
erc-pcomplete erc-kill erc-join erc-networks erc-iterate
erc-scroll erc-fill erc-stamp erc-goodies erc erc-backend pp
erc-loaddefs gnus-score score-mode gnus-msg gnus-art mm-uu
mml2015 mm-view mml-smime smime dig gnus-sum shr pixel-fill
kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus
xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo
gnus-spec gnus-int gnus-range gnus-win message yank-media rmc
puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus
nnheader gnus-util text-property-search mail-utils mm-util
mail-prsvr eshell esh-cmd esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-util edit tabs dired-incal
w3m-url w3m doc-view jka-compr image-mode exif timezone
w3m-hist w3m-fb bookmark-w3m w3m-ems wid-edit w3m-favicon
w3m-image tab-line w3m-proc w3m-util thingatpt time-incal
time-insert file tramp tramp-loaddefs trampver
tramp-integration files-x tramp-compat shell pcomplete comint
ansi-color ring parse-time iso8601 time-date ls-lisp
format-spec sudo-user-path find-command file-write-to
window-incal get-search-string search-regexp-in-files count
caps-back buffer-menu switch-to-buffer switch-to-buffer-regexp
super scroll dired dired-loaddefs close buc align-from-left
align-incal string abc info w3m-load package browse-url url
url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map url-vars seq gv subr-x byte-opt
bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl
tooltip eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch
easymenu timer select scroll-bar mouse jit-lock font-lock
syntax 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 emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded
nadvice button loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting cairo x multi-tty
make-network-process emacs)

Memory information:
((conses 16 381623 34459)
 (symbols 48 33233 13)
 (strings 32 124347 12735)
 (string-bytes 1 4011174)
 (vectors 16 56542)
 (vector-slots 8 625964 63758)
 (floats 8 524 418)
 (intervals 56 1838 748)
 (buffers 992 30))

-- 
underground experts united
https://dataswamp.org/~incal




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Wed, 29 Dec 2021 15:25:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Wed, 29 Dec 2021 16:24:13 +0100
Emanuel Berg <moasenwood <at> zoho.eu> writes:

> I had this - try it, only with the "^From" line uncommented.
>
> (setq message-hidden-headers '("^Face"
>                                ;; "^From"
>                                "^Mail-Copies-To"
>                                "^References"
>                                "^X-Draft-From"
>                                "^X-Face") )
>
> If you then send a mail, you get
>
>   mail-extract-address-components: Invalid address: nil

I'm unable to reproduce this problem.

Can you give a step-by-step recipe, starting with "emacs -Q", for how to
reproduce the problem?

-- 
(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. (Wed, 29 Dec 2021 15:25:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Wed, 29 Dec 2021 17:37:01 GMT) Full text and rfc822 format available.

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

From: Emanuel Berg <moasenwood <at> zoho.eu>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#52871: 29.0.50;
 weird bug with Gnus, can't have "^From" in `message-hidden-header's
Date: Wed, 29 Dec 2021 18:36:02 +0100
Lars Ingebrigtsen wrote:

>> I had this - try it, only with the "^From" line uncommented.
>>
>> (setq message-hidden-headers '("^Face"
>>                                ;; "^From"
>>                                "^Mail-Copies-To"
>>                                "^References"
>>                                "^X-Draft-From"
>>                                "^X-Face") )
>>
>> If you then send a mail, you get
>>
>>   mail-extract-address-components: Invalid address: nil
>
> I'm unable to reproduce this problem.
>
> Can you give a step-by-step recipe, starting with "emacs
> -Q", for how to reproduce the problem?

With -Q to send a mail doesn't work for other reasons, do you
have a minimal Gnus setup for nnml and SMTP, perhaps? Or just
what variables need to be filled in?

-- 
underground experts united
https://dataswamp.org/~incal





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Wed, 29 Dec 2021 17:45:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Wed, 29 Dec 2021 18:43:54 +0100
Emanuel Berg via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> With -Q to send a mail doesn't work for other reasons, do you
> have a minimal Gnus setup for nnml and SMTP, perhaps? Or just
> what variables need to be filled in?

It'll prompt you for an SMTP server etc, so nothing should need to be
filled in.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Wed, 29 Dec 2021 18:13:02 GMT) Full text and rfc822 format available.

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

From: Emanuel Berg <moasenwood <at> zoho.eu>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#52871: 29.0.50;
 weird bug with Gnus, can't have "^From" in `message-hidden-header's
Date: Wed, 29 Dec 2021 19:12:03 +0100
Lars Ingebrigtsen wrote:

>> With -Q to send a mail doesn't work for other reasons, do
>> you have a minimal Gnus setup for nnml and SMTP, perhaps?
>> Or just what variables need to be filled in?
>
> It'll prompt you for an SMTP server etc, so nothing should
> need to be filled in.

But then it fails for another reason, "Sending failed: 553
Relaying disallowed ..."

-- 
underground experts united
https://dataswamp.org/~incal





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Sat, 15 Jan 2022 10:07:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Sat, 15 Jan 2022 11:05:24 +0100
Emanuel Berg <moasenwood <at> zoho.eu> writes:

>>> With -Q to send a mail doesn't work for other reasons, do
>>> you have a minimal Gnus setup for nnml and SMTP, perhaps?
>>> Or just what variables need to be filled in?
>>
>> It'll prompt you for an SMTP server etc, so nothing should
>> need to be filled in.
>
> But then it fails for another reason, "Sending failed: 553
> Relaying disallowed ..."

Have you made any progress in debugging this issue?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Sat, 15 Jan 2022 21:36:02 GMT) Full text and rfc822 format available.

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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Sat, 15 Jan 2022 22:35:32 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Have you made any progress in debugging this issue?

I can reproduce the original recipe.

Lars, did you remove the comment delimiters in

#+begin_src emacs-lisp
(setq message-hidden-headers '("^Face"
                               ;; "^From"
                               "^Mail-Copies-To"
                               "^References"
                               "^X-Draft-From"
                               "^X-Face") )
#+end_src

when you tried to reproduce the issue?

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Thu, 20 Jan 2022 09:42:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Thu, 20 Jan 2022 10:41:32 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> I can reproduce the original recipe.
>
> Lars, did you remove the comment delimiters in
>
> #+begin_src emacs-lisp
> (setq message-hidden-headers '("^Face"
>                                ;; "^From"
>                                "^Mail-Copies-To"
>                                "^References"
>                                "^X-Draft-From"
>                                "^X-Face") )
> #+end_src
>
> when you tried to reproduce the issue?

If by that you mean use

(setq message-hidden-headers '("^Face"
                               "^From"
                               "^Mail-Copies-To"
                               "^References"
                               "^X-Draft-From"
                               "^X-Face") )

then yes.  Perhaps there's some other customisation option that also
affects how this works?

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Thu, 20 Jan 2022 16:37:01 GMT) Full text and rfc822 format available.

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

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Thu, 20 Jan 2022 17:36:50 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Perhaps there's some other customisation option that also affects how
> this works?

Not that I knew.  I can reproduce the issue using the defaults of M-x
gnus-mock-start.

Did you actually try to send a message?  With Gnus Mock it's impossible
here to reply to any of the INBOX messages using that value of
`message-hidden-headers' and send successfully.

Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Fri, 21 Jan 2022 09:16:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Fri, 21 Jan 2022 10:15:30 +0100
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Did you actually try to send a message?  With Gnus Mock it's impossible
> here to reply to any of the INBOX messages using that value of
> `message-hidden-headers' and send successfully.

I don't use Gnus-mock or anything.  Here's my recipe:

emacs -Q
M-: (setq message-hidden-headers '("^Face"
                               "^From"
                               "^Mail-Copies-To"
                               "^References"
                               "^X-Draft-From"
                               "^X-Face") ) RET
C-x m
<edit the headers so they're valid>
C-c C-c
smtp RET
quimby.gnus.org RET
n

No errors.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Fri, 21 Jan 2022 10:55:01 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Fri, 21 Jan 2022 11:54:21 +0100
>>>>> On Fri, 21 Jan 2022 10:15:30 +0100, Lars Ingebrigtsen <larsi <at> gnus.org> said:

    Lars> Michael Heerdegen <michael_heerdegen <at> web.de> writes:
    >> Did you actually try to send a message?  With Gnus Mock it's impossible
    >> here to reply to any of the INBOX messages using that value of
    >> `message-hidden-headers' and send successfully.

    Lars> I don't use Gnus-mock or anything.  Here's my recipe:

    Lars> emacs -Q
    Lars> M-: (setq message-hidden-headers '("^Face"
    Lars>                                "^From"
    Lars>                                "^Mail-Copies-To"
    Lars>                                "^References"
    Lars>                                "^X-Draft-From"
    Lars>                                "^X-Face") ) RET
    Lars> C-x m
    Lars> <edit the headers so they're valid>
    Lars> C-c C-c
    Lars> smtp RET
    Lars> quimby.gnus.org RET
    Lars> n

As Michael points out: I think this only happens when youʼre replying
to an existing message, not composing a new one.

Robert
-- 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#52871; Package emacs. (Fri, 21 Jan 2022 13:19:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: Michael Heerdegen <michael_heerdegen <at> web.de>, 52871 <at> debbugs.gnu.org
Subject: Re: bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in
 `message-hidden-header's
Date: Fri, 21 Jan 2022 14:18:32 +0100
Robert Pluim <rpluim <at> gmail.com> writes:

> As Michael points out: I think this only happens when youʼre replying
> to an existing message, not composing a new one.

Ah, missed that.  Now fixed in Emacs 29.

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




bug marked as fixed in version 29.1, send any further explanations to 52871 <at> debbugs.gnu.org and Emanuel Berg <moasenwood <at> zoho.eu> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 21 Jan 2022 13:19: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. (Sat, 19 Feb 2022 12:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 38 days ago.

Previous Next


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