From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/86104 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: Reply-prefix ("Re:") default regex Date: Sat, 15 Aug 2015 21:21:45 +0200 Organization: Probably a good idea Message-ID: <86d1yo1ho6.fsf@dod.no> References: <87si7l4ndw.fsf@denknerd.org> <87oai84w08.fsf@denknerd.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1439666785 26932 80.91.229.3 (15 Aug 2015 19:26:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Aug 2015 19:26:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M34338@lists.math.uh.edu Sat Aug 15 21:26:13 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 1ZQh5m-0005Ip-30 for ding-account@gmane.org; Sat, 15 Aug 2015 21:26:10 +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 1ZQh1j-0007sP-5F; Sat, 15 Aug 2015 14:21:59 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZQh1h-0007rv-84 for ding@lists.math.uh.edu; Sat, 15 Aug 2015 14:21:57 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZQh1e-0001rM-GU for ding@lists.math.uh.edu; Sat, 15 Aug 2015 14:21:57 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1ZQh1c-0001rx-Hr for ding@gnus.org; Sat, 15 Aug 2015 21:21:52 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZQh1a-0001Lm-LL for ding@gnus.org; Sat, 15 Aug 2015 21:21:50 +0200 Original-Received: from cm-84.208.248.210.getinternet.no ([84.208.248.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Aug 2015 21:21:50 +0200 Original-Received: from sb by cm-84.208.248.210.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Aug 2015 21:21:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.208.248.210.getinternet.no Mail-Copies-To: never User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (windows-nt) Cancel-Lock: sha1:KFhRl0wo7DbYAZBODhtyHCUWtqA= X-Spam-Score: -2.9 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:86104 Archived-At: >>>>> Paul van der Walt : > 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. On a side note I have solved this outside of Gnus in procmail with this in my .procmailrc: # # Fix Subject RE/SV/AW line for MSExchange/MSMail/MSOutlook # Also fix Subject field for Norwegian android mailer ("Vedr"). # No X-Mailer field to rely on, unfortunately! # Remove MSE quotes of type "'Real Name'" # :0 fhw | /usr/bin/perl -ne "s/\?[Ww]indows-1252\?/?iso-8859-1?/g; s/^(Subject:)\s+(S[Vv]:\s*|AW:\s*|Ad:\s*|Vedr:\s*|R[eE](\(\d+\))?:\s*)+/\1 Re: /g;s/^(Subject:)\s+(=\?((iso|ISO)-8859-1|us-ascii)\?Q\?)((S[Vv]|AW|Ad|R[eE](\(\d+\))?)(:|=3[Aa])_*)+/\1 \2Re:_/g; s/\042\'([^\']*)\'\042/\042\1\042/g ; print" As this regular expression shows there seems to be a great deal of creativity when it comes to messing up subject headers. Everything matched here has been encountered in the wild.