GNU bug report logs - #52104
29.0.50; sometimes ispell-message does not check the Subject field

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Peter Münster <pm@HIDDEN>; Done: Lars Ingebrigtsen <larsi@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 29.1, send any further explanations to 52104 <at> debbugs.gnu.org and Peter Münster <pm@HIDDEN> Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 52104 <at> debbugs.gnu.org:


Received: (at 52104) by debbugs.gnu.org; 29 Nov 2021 16:10:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 29 11:10:02 2021
Received: from localhost ([127.0.0.1]:39090 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mrjE9-0005zC-It
	for submit <at> debbugs.gnu.org; Mon, 29 Nov 2021 11:10:02 -0500
Received: from quimby.gnus.org ([95.216.78.240]:59884)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mrjE7-0005yl-Qc
 for 52104 <at> debbugs.gnu.org; Mon, 29 Nov 2021 11:10:00 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID
 :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=SRfyay/Vj9BH4pwsPKw03/yLnNRxOWXjjshVxJMSwPc=; b=QzUSlyXykqgYAVN0v7B4UrIrQc
 sMwpoaxvvWpjOso66V9dzODmXAQqw/lNHWv+1GF32PmbSHuLn4QBWJ8TPob8OHboimiYYs6vnEXVk
 2epDub44KlBO2k/HOlws3MyY43Y8vub/J7TkWzveVCZfHDCp5qj8CBjX3YZzXyiRYqz4=;
Received: from [84.212.220.105] (helo=xo)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mrjDz-00063U-Ao; Mon, 29 Nov 2021 17:09:53 +0100
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Peter =?utf-8?Q?M=C3=BCnster?= <pm@HIDDEN>
Subject: Re: bug#52104: 29.0.50; sometimes ispell-message does not check the
 Subject field
References: <87mtlsqrnj.fsf@HIDDEN>
X-Now-Playing: Mia Doi Todd's _Music Life_: "Daughter of Hope"
Date: Mon, 29 Nov 2021 17:09:50 +0100
In-Reply-To: <87mtlsqrnj.fsf@HIDDEN> ("Peter =?utf-8?Q?M=C3=BCnster=22's?=
 message of "Thu, 25 Nov 2021 14:41:20 +0100")
Message-ID: <87o863t035.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 
 Content preview:  Peter Münster <pm@HIDDEN> writes: > ispell-message does
    not check Subject fields, when it finds a sequence > with "re ". And in French,
    there are a lot of words ending with "re"... > > Please find attached a patch,
    that fixes the prob [...] 
 
 Content analysis details:   (-2.9 points, 5.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                             [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 52104
Cc: 52104 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Peter M=C3=BCnster <pm@HIDDEN> writes:

> ispell-message does not check Subject fields, when it finds a sequence
> with "re ". And in French, there are a lot of words ending with "re"...
>
> Please find attached a patch, that fixes the problem.
>
> The "Re: " is hardcoded here, just as in message-reply.

...

-		  (if (and (not (looking-at ".*Re\\>"))
+		  (if (and (not (looking-at "Re: "))

I think this is too strict -- there may not be a : after the Re, and
there is often some locale-specific mistranslation of Re somewhere.  So
I think the right fix here is ".*\\<Re\\>", which I've done in Emacs 29.

--=20
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#52104; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Nov 2021 13:47:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 25 08:47:49 2021
Received: from localhost ([127.0.0.1]:56202 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mqF6L-0003Zt-4m
	for submit <at> debbugs.gnu.org; Thu, 25 Nov 2021 08:47:49 -0500
Received: from lists.gnu.org ([209.51.188.17]:54450)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pm@HIDDEN>) id 1mqF6I-0003Zd-WB
 for submit <at> debbugs.gnu.org; Thu, 25 Nov 2021 08:47:47 -0500
Received: from eggs.gnu.org ([209.51.188.92]:44628)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pm@HIDDEN>) id 1mqF6H-0007e6-JQ
 for bug-gnu-emacs@HIDDEN; Thu, 25 Nov 2021 08:47:46 -0500
Received: from server.a16n.net ([178.33.238.77]:49650)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <pm@HIDDEN>) id 1mqF6E-00064m-TG
 for bug-gnu-emacs@HIDDEN; Thu, 25 Nov 2021 08:47:45 -0500
Received: from ws.localdomain (arennes-651-1-236-158.w90-32.abo.wanadoo.fr
 [90.32.223.158])
 by server.a16n.net (Postfix) with ESMTPSA id 8543A43E04CA
 for <bug-gnu-emacs@HIDDEN>; Thu, 25 Nov 2021 14:41:21 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=a16n.net; s=a16n;
 t=1637847681; bh=+3nQnpWyP7wFAZfAG3Ng9X9y+i5BDAJwjt9ebKg03g4=;
 h=From:To:Subject:Date;
 b=Xb9DwDy1w15kNpaSu3toCzK6CQUmiaXBobTvtwHmR9BlcD4Ui7jQSQQjOwbWiVo77
 0MDYATUiZwENsNKUQ9XPAy6ecs3Z5DPVHigafUKlqxAr3i2uwFaxSh+zX0LpDHskcZ
 RNaQHPNSR9Db9l13Ndy9lCf4KyyvhZZ/hzt0dD10c5q36/lzuIwyjCe7WmHGvGOIy/
 4dJTR4/ov9aPw8qTP5RfgpBCPllPj/tTMF99rvn3zd239arumNPGDwwG1EU5BKYD82
 S6E9T3YAeFL79We5M6WTF2G9rn8BmjveBJ525Z0CmtXJjdGZVGAyvUHNWYZwNQC2tA
 cbbYsmpIxQwwA==
Received: by ws.localdomain (Postfix, from userid 1000)
 id E536C20548; Thu, 25 Nov 2021 14:41:20 +0100 (CET)
From: =?utf-8?Q?Peter_M=C3=BCnster?= <pm@HIDDEN>
To: Emacs Bugs <bug-gnu-emacs@HIDDEN>
Subject: 29.0.50; sometimes ispell-message does not check the Subject field
Date: Thu, 25 Nov 2021 14:41:20 +0100
Message-ID: <87mtlsqrnj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="==-=-=";
 micalg=pgp-sha1; protocol="application/pgp-signature"
Received-SPF: pass client-ip=178.33.238.77; envelope-from=pm@HIDDEN;
 helo=server.a16n.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

ispell-message does not check Subject fields, when it finds a sequence
with "re ". And in French, there are a lot of words ending with "re"...

Please find attached a patch, that fixes the problem.

The "Re: " is hardcoded here, just as in message-reply.

Kind regards,
=2D-=20
           Peter

--=-=-=
Content-Type: text/x-patch; charset=utf-8
Content-Disposition: inline; filename=my.patch
Content-Transfer-Encoding: quoted-printable

commit 686bd0550797d0ec6225267914cef5cb0e5a61f6
Author: Peter M=C3=BCnster <pm@HIDDEN>
Date:   Thu Nov 25 14:25:18 2021 +0100

    Fix spelling of subject line
=20=20=20=20
    * lisp/textmodes/ispell.el (ispell-message): Only subjects starting with
    "Re: " are real replies.

diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 4087f7e5f2..ce8a82cda7 100644
=2D-- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -3977,7 +3977,7 @@ ispell-message
 	    (if (re-search-forward "^Subject: *" end-of-headers t)
 		(progn
 		  (goto-char (match-end 0))
=2D		  (if (and (not (looking-at ".*Re\\>"))
+		  (if (and (not (looking-at "Re: "))
 			   (not (looking-at "\\[")))
 		      (progn
 			(setq case-fold-search old-case-fold-search)

--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iGoEARECACoWIQS/5hHRBUjla4uZVXU6jitvQ7HLaAUCYZ+SgAwccG1AYTE2bi5u
ZXQACgkQOo4rb0Oxy2iaIQCeIUJT11UkeZlCf0VXSOVL5bi+begAoOyd8fe7YkdI
31S+yFYA1fzyKk+d
=4CJp
-----END PGP SIGNATURE-----
--==-=-=--




Acknowledgement sent to Peter Münster <pm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#52104; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 29 Nov 2021 16:15:02 UTC

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