GNU bug report logs - #32609
26.1; mail-strip-quoted-names:205

Previous Next

Package: emacs;

Reported by: Johannes Bruegmann <johannes.bruegmann <at> web.de>

Date: Sun, 2 Sep 2018 00:45:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Found in version 26.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Noam Postavsky <npostavs <at> gmail.com>
To: Johannes Bruegmann <johannes.bruegmann <at> web.de>
Cc: 32609 <at> debbugs.gnu.org
Subject: Re: bug#32609: 26.1; mail-strip-quoted-names:205
Date: Sun, 02 Sep 2018 07:50:33 -0400
tags 32609 + moreinfo
quit

Johannes Bruegmann <johannes.bruegmann <at> web.de> writes:

> I   tried  to   reply  to   an  email   by  pressing   r,  R,   and  M-x
> gnus-article-reply-with-original.   None  of  them  worked.   Minibuffer
> displayed  "Mark  Set" but  nothing  happened.  I enabled  Debugging  on
> C-g. The *Backtrace*-buffer showed
>      string-match("\\`[ \t\n]*" "")
>      mail-strip-quoted-names("")
>      mail-dont-reply-to("foo <at> bar.com")

If I evaluate (mail-dont-reply-to "foo <at> bar.com") it doesn't hang.  I
guess "foo <at> bar.com" is a placeholder, but you've dropped the relevant
special characters that cause the problem.  Can you give a value that
reproduces the hang?  E.g., just change all letters in the real email to
x, but leave other characters untouched.

> To me it  looked like that the signature for  string-match and match-end
> changed   (or   have   been   overloaded?).  Anyway,   when   i   change

Not sure what you mean about signature change.

> mail-utils.el:205 into
>      ;; strip surrounding whitespace
>      (setq address (substring address
>                               (string-match "\\`[ \t\n]*" address)
>                               (string-match "[ \t\n]*\\'" address
>                               (match-end 0))))
>
> things work for me.

I don't think this change is correct, it doesn't remove the leading whitespace
like before.




This bug report was last modified 5 years and 327 days ago.

Previous Next


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