unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#29659: 25.2; better rmail-summary-by-topic
@ 2017-12-11 12:28 Francesco Potortì
  2017-12-11 15:35 ` Eli Zaretskii
  2018-01-24 12:00 ` bug#29659: Fwd: " Francesco Potortì
  0 siblings, 2 replies; 10+ messages in thread
From: Francesco Potortì @ 2017-12-11 12:28 UTC (permalink / raw)
  To: 29659

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 #'rmail-simplified-subject--strip-all)


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





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-01-26 14:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-11 12:28 bug#29659: 25.2; better rmail-summary-by-topic Francesco Potortì
2017-12-11 15:35 ` Eli Zaretskii
2017-12-11 15:50   ` Francesco Potortì
2017-12-11 17:37     ` Eli Zaretskii
2017-12-11 17:47       ` Francesco Potortì
2017-12-11 18:08         ` Eli Zaretskii
2017-12-12 17:49           ` Francesco Potortì
2017-12-22 13:50             ` Eli Zaretskii
2018-01-24 12:00 ` bug#29659: Fwd: " Francesco Potortì
2018-01-26 14:12   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).