From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86100 Path: news.gmane.org!not-for-mail From: Paul van der Walt Newsgroups: gmane.emacs.gnus.general Subject: Reply-prefix ("Re:") default regex Date: Sat, 15 Aug 2015 13:43:51 +0200 Message-ID: <87oai84w08.fsf@denknerd.org> References: <87si7l4ndw.fsf@denknerd.org> NNTP-Posting-Host: plane.gmane.org Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1439639103 20157 80.91.229.3 (15 Aug 2015 11:45:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2015 11:45:03 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34334@lists.math.uh.edu Sat Aug 15 13:44:53 2015 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZQZtL-0004TJ-QP for ding-account@gmane.org; Sat, 15 Aug 2015 13:44:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.85) (envelope-from ) id 1ZQZsc-0005Yt-Dh; Sat, 15 Aug 2015 06:44:06 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZQZsa-0005Yh-VA for ding@lists.math.uh.edu; Sat, 15 Aug 2015 06:44:05 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZQZsa-0006ty-1S for ding@lists.math.uh.edu; Sat, 15 Aug 2015 06:44:04 -0500 Original-Received: from mx01.mykolab.com ([95.128.36.1] helo=mx-out01.mykolab.com) by quimby.gnus.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ZQZsY-0007RQ-9o for ding@gnus.org; Sat, 15 Aug 2015 13:44:02 +0200 X-Virus-Scanned: amavisd-new at kolabnow.com X-Spam-Flag: NO X-Spam-Score: -2.183 X-Spam-Level: X-Spam-Status: No, score=-2.183 tagged_above=-10 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, MIME_HEADER_CTYPE_ONLY=0.717] autolearn=no Original-Received: from mx04.mykolab.com (mx04.mykolab.com [10.20.7.102]) by mx-out01.mykolab.com (Postfix) with ESMTPS id 0D7C9600D2 for ; Sat, 15 Aug 2015 13:43:54 +0200 (CEST) X-Spam-Score: -2.2 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86100 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Hello Gnus, This is my first post to this list, so please forgive me if i break all the written and unwritten rules. [and my first posting hasn't showed up after 16h, so this is potentially a double-post] I recently ran into an issue where a French speaker i was communicating with had "Re : ..." as their reply subject prefix (note the leading space before the colon). This quickly ended up with us bouncing emails around with such lovely subject lines as "Re: Re : Re: Re : Re: ...", et cetera, ad infinitum. This phenomenon, of surrounding certain punctuation marks with extra spaces, turns out to be A Thing™ in French writing [0]. I discovered that by making a very small modification to the term `message-subject-re-regexp`, the problem was solved for me, locally (it's in my configuration files ATM). But since this might be something that's useful to others, i threw a patch together, attached. Of course, i could understand if such cultural (non-anglophone?) cruft were undesirable in the Gnus code base, but perhaps others might benefit from this. If not, i am sorry for wasting your collective time. If the fix is desirable yet wrong in some other way, rest assured that you all have my deepest apologies, i don't mean to step on anyone's toes. Thank you and have a good day, p. 0. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-message.el-message-subject-re-regexp-More-liberal-re.patch >From 62c0f7262acae856dcd43cb4fb7868c5dc1ec857 Mon Sep 17 00:00:00 2001 From: Paul van der Walt Date: Fri, 14 Aug 2015 22:27:07 +0200 Subject: [PATCH] message.el (message-subject-re-regexp): More liberal regex. * message.el (message-subject-re-regexp): Match French style ("Re :") reply subject prefixes. --- lisp/ChangeLog | 5 +++++ lisp/message.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 324f473..05d68f0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2015-08-14 Paul van der Walt + + * message.el (message-subject-re-regexp): Match French style ("Re :") + reply subject prefixes. + 2015-08-06 Paul Eggert * message.el (message-send-form-letter): Change (message (format ...)) diff --git a/lisp/message.el b/lisp/message.el index 26655f3..54be212 100644 --- a/lisp/message.el +++ b/lisp/message.el @@ -300,7 +300,7 @@ any confusion." regexp)) (defcustom message-subject-re-regexp - "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)*:[ \t]*\\)*[ \t]*" + "^[ \t]*\\([Rr][Ee]\\(\\[[0-9]*\\]\\)* ?:[ \t]*\\)*[ \t]*" "*Regexp matching \"Re: \" in the subject line." :group 'message-various :link '(custom-manual "(message)Message Headers") -- 2.5.0 --=-=-=--