From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23040: Resolved Date: Thu, 26 Jan 2017 23:55:25 +0100 Message-ID: <87y3xx4ejm.fsf@gnus.org> References: <87lh5hp1oi.fsf@thinkpad.rath.org> <8737q7kquz.fsf@thinkpad.rath.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1485471984 19867 195.159.176.226 (26 Jan 2017 23:06:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jan 2017 23:06:24 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 23040@debbugs.gnu.org To: Nikolaus Rath Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 27 00:06:18 2017 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 1cWt7P-0004Sw-K7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Jan 2017 00:06:15 +0100 Original-Received: from localhost ([::1]:41836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWt7U-0007up-VP for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jan 2017 18:06:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWt7G-0007tD-Tk for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 18:06:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWt7C-0008Ux-Sv for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 18:06:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48340) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cWt7C-0008Ur-Pm for bug-gnu-emacs@gnu.org; Thu, 26 Jan 2017 18:06:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cWt7C-0002vL-Iu; Thu, 26 Jan 2017 18:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Thu, 26 Jan 2017 23:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23040 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 23040-submit@debbugs.gnu.org id=B23040.148547191811136 (code B ref 23040); Thu, 26 Jan 2017 23:06:02 +0000 Original-Received: (at 23040) by debbugs.gnu.org; 26 Jan 2017 23:05:18 +0000 Original-Received: from localhost ([127.0.0.1]:46526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWt6U-0002tX-Ai for submit@debbugs.gnu.org; Thu, 26 Jan 2017 18:05:18 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:60114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cWt6Q-0002tO-Fu for 23040@debbugs.gnu.org; Thu, 26 Jan 2017 18:05:16 -0500 Original-Received: from 2.150.50.220.tmi.telenormobil.no ([2.150.50.220] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cWt6N-00015t-Oh; Fri, 27 Jan 2017 00:05:13 +0100 In-Reply-To: <8737q7kquz.fsf@thinkpad.rath.org> (Nikolaus Rath's message of "Wed, 27 Apr 2016 08:34:28 -0700") 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:128626 Archived-At: Nikolaus Rath writes: > The problem here is that recently some spam has started to come with > extremely long "References" headers, and that the regular expression > used in one of my scoring rules is sub-optimal when applied to such long > strings. > > In particular, the leading dot in "<.+@[a-z0-9]+\\.rath\\.org>" first > matches the entire reference header, and then emacs presumably has to > backtrack character by character (or something like that). > > Fixing the rule by restricting the match to one message id fixes the > problem: "<[^<>@]+@[a-z0-9]+\\.rath\\.org>" Could you submit a patch for this problem? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no