[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#29659: closed (25.2; better rmail-summary-by-topic

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#29659: closed (25.2; better rmail-summary-by-topic)
Date: Fri, 26 Jan 2018 14:14:01 +0000

Your message dated Fri, 26 Jan 2018 16:12:42 +0200
with message-id <address@hidden>
and subject line Re: Fwd: Re: bug#29659: 25.2; better rmail-summary-by-topic
has caused the debbugs.gnu.org bug report #29659,
regarding 25.2; better rmail-summary-by-topic
to be marked as done.

(If you believe you have received this mail in error, please contact

29659: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29659
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 25.2; better rmail-summary-by-topic Date: Mon, 11 Dec 2017 13:28:12 +0100
rmail-summary-by-topic functionality can be easily improved by this
piece of advice:

(defun rmail-simplified-subject--strip-all (subject)
  "Strip all prefixes like Re:, Fwd: and similar ones"
  (let ((search-spaces-regexp "[ \t\n]"))
    (string-match " *\\(\\(\\w\\{1,3\\}:\\|\\[.+]\\) +\\)*" subject)
    (replace-match "" t t subject))
(advice-add 'rmail-simplified-subject :filter-return 

Maybe this can be simply incorporated into rmail-simplified-subject: it
is able to remove prefixes like

Re: [Topic] Fwd: Re: Fwd:

and in practice I find it very useful

--- End Message ---
--- Begin Message --- Subject: Re: Fwd: Re: bug#29659: 25.2; better rmail-summary-by-topic Date: Fri, 26 Jan 2018 16:12:42 +0200
> Date: Wed, 24 Jan 2018 13:00:59 +0100
> From: Francesco Potortì <address@hidden>
> Cc: address@hidden
> (resending after reopening the bug)
> There is an obvious error in the following code, which for some reason
> did work for me but works no more after an Emacs restart.
> The regexp variable should start with a double backslash:
>       (regexp "\\`[ \t\n]*\\(\\(\\w\\{1,3\\}:\\|\\[[^]]+]\\)[ \t\n]+\\)*"))
> rather than
>       (regexp "\`[ \t\n]*\\(\\(\\w\\{1,3\\}:\\|\\[[^]]+]\\)[ \t\n]+\\)*"))

Thanks, fixed.

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]