From: Paul van der Walt <paul@denknerd.org>
To: ding@gnus.org
Subject: Reply-prefix ("Re:") default regex
Date: Sat, 15 Aug 2015 13:43:51 +0200 [thread overview]
Message-ID: <87oai84w08.fsf@denknerd.org> (raw)
In-Reply-To: <87si7l4ndw.fsf@denknerd.org>
[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]
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. <http://www.btb.termiumplus.gc.ca/tcdnstyl-chap?lang=eng&lettr=chapsect17&info0=17.07>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-message.el-message-subject-re-regexp-More-liberal-re.patch --]
[-- Type: text/x-diff, Size: 1314 bytes --]
From 62c0f7262acae856dcd43cb4fb7868c5dc1ec857 Mon Sep 17 00:00:00 2001
From: Paul van der Walt <paul@denknerd.org>
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 <paul@denknerd.org>
+
+ * message.el (message-subject-re-regexp): Match French style ("Re :")
+ reply subject prefixes.
+
2015-08-06 Paul Eggert <eggert@cs.ucla.edu>
* 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
next parent reply other threads:[~2015-08-15 11:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87si7l4ndw.fsf@denknerd.org>
2015-08-15 11:43 ` Paul van der Walt [this message]
2015-08-15 15:51 ` Peter Münster
2015-08-15 16:48 ` [PATCH] message.el (message-subject-re-regexp): More liberal regex Paul van der Walt
2016-02-07 2:52 ` Lars Ingebrigtsen
2015-08-16 3:52 ` Reply-prefix ("Re:") default regex Eric Abrahamsen
2015-08-15 19:21 ` Steinar Bang
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87oai84w08.fsf@denknerd.org \
--to=paul@denknerd.org \
--cc=ding@gnus.org \
/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.
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 NNTP newsgroup(s).