From: Noam Postavsky <npostavs@gmail.com>
To: 32609@debbugs.gnu.org
Cc: "Dr. Johannes Brügmann" <dr.johannes.bruegmann@gmail.com>
Subject: bug#32609: 26.1; mail-strip-quoted-names:205
Date: Sun, 02 Sep 2018 13:59:39 -0400 [thread overview]
Message-ID: <87h8j7rd9w.fsf@gmail.com> (raw)
In-Reply-To: <86y3ckkjgx.fsf@web.de>
[-- Attachment #1: Type: text/plain, Size: 85 bytes --]
[forwarding to list, since sending to newsgroup doesn't get archived in
bug thread]
[-- Attachment #2: Type: message/rfc822, Size: 2711 bytes --]
From: "Dr. Johannes Brügmann" <dr.johannes.bruegmann@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: Re: bug#32609: 26.1; mail-strip-quoted-names:205
Date: Sun, 02 Sep 2018 14:56:35 +0200
Message-ID: <86sh2s6osc.fsf@gmail.com>
Noam Postavsky <npostavs@gmail.com> writes:
> tags 32609 + moreinfo
> quit
>
> Johannes Bruegmann <johannes.bruegmann@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@bar.com")
>
> If I evaluate (mail-dont-reply-to "foo@bar.com") it doesn't hang. I
> guess "foo@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.
The mail address i wanted to reply to didn't contain any special
characters. Neither did the call to mail-dont-reply-to. I understand
that special characters could cause such a behaviour.
As part of following your question, I've put the original file back into
its place, and then i recompiled using byte-compile-file and restarted
emacs. Now the symtom is no longer reproducible. Neither with the
originating email, nor with any others that i tested.
>> 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.
I didn't look very carefully at the function description of
string-match. I was wondering why someone would not use the return
value of string-match. Now i understand that string-match holds an
internal state and match-end can be used to get beyond the first match.
>> 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.
You are right here. But still i didn't dream the symptom :) nor the
backtrace.
next prev parent reply other threads:[~2018-09-02 17:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-01 21:15 bug#32609: 26.1; mail-strip-quoted-names:205 Johannes Bruegmann
2018-09-02 11:50 ` Noam Postavsky
[not found] ` <mailman.298.1535892140.1284.bug-gnu-emacs@gnu.org>
2018-09-02 12:56 ` Dr. Johannes Brügmann
2018-09-02 17:59 ` Noam Postavsky [this message]
2018-09-02 18:07 ` Noam Postavsky
2019-09-23 15:38 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h8j7rd9w.fsf@gmail.com \
--to=npostavs@gmail.com \
--cc=32609@debbugs.gnu.org \
--cc=dr.johannes.bruegmann@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).