From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#32609: 26.1; mail-strip-quoted-names:205 Date: Sun, 02 Sep 2018 13:59:39 -0400 Message-ID: <87h8j7rd9w.fsf@gmail.com> References: <86y3ckkjgx.fsf@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1535911091 4470 195.159.176.226 (2 Sep 2018 17:58:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Sep 2018 17:58:11 +0000 (UTC) Cc: "Dr. Johannes =?UTF-8?Q?Br=C3=BCgmann?=" To: 32609@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 02 19:58:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwWdR-00012g-R9 for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 19:58:06 +0200 Original-Received: from localhost ([::1]:41965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwWfY-0003Yf-4F for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Sep 2018 14:00:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fwWfN-0003XV-Ig for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 14:00:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fwWfK-0005r2-Bf for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 14:00:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fwWfK-0005qu-3O for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 14:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fwWfJ-0002gE-Vx for bug-gnu-emacs@gnu.org; Sun, 02 Sep 2018 14:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <86y3ckkjgx.fsf@web.de> Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Sep 2018 18:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32609 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 32609-submit@debbugs.gnu.org id=B32609.153591118910260 (code B ref 32609); Sun, 02 Sep 2018 18:00:01 +0000 Original-Received: (at 32609) by debbugs.gnu.org; 2 Sep 2018 17:59:49 +0000 Original-Received: from localhost ([127.0.0.1]:43280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwWf6-0002fP-CB for submit@debbugs.gnu.org; Sun, 02 Sep 2018 13:59:49 -0400 Original-Received: from mail-io0-f180.google.com ([209.85.223.180]:46023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fwWf4-0002fB-MU for 32609@debbugs.gnu.org; Sun, 02 Sep 2018 13:59:47 -0400 Original-Received: by mail-io0-f180.google.com with SMTP id e12-v6so14215865iok.12 for <32609@debbugs.gnu.org>; Sun, 02 Sep 2018 10:59:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version; bh=c7jo0XBZZrpfDknd2M0nROoswpJsSJ5IWB5limx5kr0=; b=hkqOTM73m8gPTFUS3pQ3zb0om/nNwVk2k7AdtkeiVY6ButxNH6VsWOuuvMCpPrC350 +f3OpzH3MFePuPv7Ux72SlbSWMg49sZjhDVEmZsCHs0ABLn+SgUZm0SphQtBBt1T9BJx mQhasyjPuAF2EP7wnQXCQmE7MXCFpySv3AyKPC0eIZ0K8Lrjf0wbUuDRhhilk9P68Bhi ljvrV7rc7vYZSXbgOFODk+rjepJ8g9CnjbtpTtLuonCHfjt2a2BhDewOcnd49mxwoj+i 7dTA/gOqHU/bKXc8KJP9rQUkNbvJWLxArtRxxb4FB9qqrqwzrDsjNFAz6SCxhL1wuOU+ mTlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version; bh=c7jo0XBZZrpfDknd2M0nROoswpJsSJ5IWB5limx5kr0=; b=nV+unYBfZgNjA8i3dTvNznulSRdjqy5qtuwU/6gRSq1MXiMHqEej3Dmgb/XVx41OiJ Q8EtHhnLGuX4P3+1y5FB160NUtUzGEB5ZHEJvOZ4GyvRsQ9yh42gXy9+FVDY/2QiUTTt CUEQZ4Id2leJKOmYFspgjKxe66EE4Ogg6DllEYJ6uq9L1TWNw81MhXimySS7fo99FdLh uEUkpR9boEHVsyv6VOZvoPgdBtuO3l8216oF4SEMaba2xgYsniFtkxrKTJmHDZgCqdT+ 9+rGGZjhXoP00jvOdrDnXTtufOfGX4xTzNEEm2s/e9BkTcsflRQ0RZGE4vWwPN+x9Xh1 YRcA== X-Gm-Message-State: APzg51A9zWieUVb1EaXFWg7z8Z7HUo+F0hQ5iKBlMheT8Dvt1yahPb43 KbXjigLsTc1uzAMy8qRaFWY= X-Google-Smtp-Source: ANB0VdZ9gtWsVQzV93YBtVR1pMsFA7RpUx7EV70IO5F/XqXbcufumsNOwSzq0HjIOVtJ8MWKx6tHHg== X-Received: by 2002:a6b:9e91:: with SMTP id h139-v6mr17387261ioe.185.1535911181315; Sun, 02 Sep 2018 10:59:41 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e5-v6sm4420371itf.0.2018.09.02.10.59.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Sep 2018 10:59:40 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149973 Archived-At: --=-=-= Content-Type: text/plain [forwarding to list, since sending to newsgroup doesn't get archived in bug thread] --=-=-= Content-Type: message/rfc822 Content-Disposition: inline From: =?utf-8?Q?Dr=2E_Johannes_Br=C3=BCgmann?= 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> References: <86y3ckkjgx.fsf@web.de> To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain Noam Postavsky writes: > tags 32609 + moreinfo > quit > > Johannes Bruegmann 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. --=-=-=--