unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
@ 2021-12-29 13:24 Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-29 15:24 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-29 13:24 UTC (permalink / raw)
  To: 52871


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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2021-12-29 13:24 bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-29 15:24 ` Lars Ingebrigtsen
  2021-12-29 17:36   ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-29 15:24 UTC (permalink / raw)
  To: 52871

Emanuel Berg <moasenwood@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2021-12-29 15:24 ` Lars Ingebrigtsen
@ 2021-12-29 17:36   ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-29 17:43     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-29 17:36 UTC (permalink / raw)
  To: 52871

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






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2021-12-29 17:36   ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-29 17:43     ` Lars Ingebrigtsen
  2021-12-29 18:12       ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2021-12-29 17:43 UTC (permalink / raw)
  To: 52871

Emanuel Berg via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2021-12-29 17:43     ` Lars Ingebrigtsen
@ 2021-12-29 18:12       ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-01-15 10:05         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-29 18:12 UTC (permalink / raw)
  To: 52871

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






^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2021-12-29 18:12       ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-15 10:05         ` Lars Ingebrigtsen
  2022-01-15 21:35           ` Michael Heerdegen
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-15 10:05 UTC (permalink / raw)
  To: 52871

Emanuel Berg <moasenwood@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2022-01-15 10:05         ` Lars Ingebrigtsen
@ 2022-01-15 21:35           ` Michael Heerdegen
  2022-01-20  9:41             ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Heerdegen @ 2022-01-15 21:35 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 52871

Lars Ingebrigtsen <larsi@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.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2022-01-15 21:35           ` Michael Heerdegen
@ 2022-01-20  9:41             ` Lars Ingebrigtsen
  2022-01-20 16:36               ` Michael Heerdegen
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-20  9:41 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 52871

Michael Heerdegen <michael_heerdegen@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2022-01-20  9:41             ` Lars Ingebrigtsen
@ 2022-01-20 16:36               ` Michael Heerdegen
  2022-01-21  9:15                 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Heerdegen @ 2022-01-20 16:36 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 52871

Lars Ingebrigtsen <larsi@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.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2022-01-20 16:36               ` Michael Heerdegen
@ 2022-01-21  9:15                 ` Lars Ingebrigtsen
  2022-01-21 10:54                   ` Robert Pluim
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-21  9:15 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: 52871

Michael Heerdegen <michael_heerdegen@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2022-01-21  9:15                 ` Lars Ingebrigtsen
@ 2022-01-21 10:54                   ` Robert Pluim
  2022-01-21 13:18                     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Robert Pluim @ 2022-01-21 10:54 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Michael Heerdegen, 52871

>>>>> On Fri, 21 Jan 2022 10:15:30 +0100, Lars Ingebrigtsen <larsi@gnus.org> said:

    Lars> Michael Heerdegen <michael_heerdegen@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
-- 





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's
  2022-01-21 10:54                   ` Robert Pluim
@ 2022-01-21 13:18                     ` Lars Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Ingebrigtsen @ 2022-01-21 13:18 UTC (permalink / raw)
  To: Robert Pluim; +Cc: Michael Heerdegen, 52871

Robert Pluim <rpluim@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





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-01-21 13:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-29 13:24 bug#52871: 29.0.50; weird bug with Gnus, can't have "^From" in `message-hidden-header's Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-29 15:24 ` Lars Ingebrigtsen
2021-12-29 17:36   ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-29 17:43     ` Lars Ingebrigtsen
2021-12-29 18:12       ` Emanuel Berg via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-15 10:05         ` Lars Ingebrigtsen
2022-01-15 21:35           ` Michael Heerdegen
2022-01-20  9:41             ` Lars Ingebrigtsen
2022-01-20 16:36               ` Michael Heerdegen
2022-01-21  9:15                 ` Lars Ingebrigtsen
2022-01-21 10:54                   ` Robert Pluim
2022-01-21 13:18                     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).