[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29659: 25.2; better rmail-summary-by-topic
From: |
Eli Zaretskii |
Subject: |
bug#29659: 25.2; better rmail-summary-by-topic |
Date: |
Mon, 11 Dec 2017 17:35:00 +0200 |
> Date: Mon, 11 Dec 2017 13:28:12 +0100
> From: Francesco Potortì <pot@gnu.org>
>
> 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
Indeed, and so I wonder why did you need the advice? Which prefixes
does rmail-simplified-subject not handle correctly?
Thanks.
- bug#29659: 25.2; better rmail-summary-by-topic, Francesco Potortì, 2017/12/11
- bug#29659: 25.2; better rmail-summary-by-topic,
Eli Zaretskii <=
- bug#29659: 25.2; better rmail-summary-by-topic, Francesco Potortì, 2017/12/11
- bug#29659: 25.2; better rmail-summary-by-topic, Eli Zaretskii, 2017/12/11
- bug#29659: 25.2; better rmail-summary-by-topic, Francesco Potortì, 2017/12/11
- bug#29659: 25.2; better rmail-summary-by-topic, Eli Zaretskii, 2017/12/11
- bug#29659: 25.2; better rmail-summary-by-topic, Francesco Potortì, 2017/12/12
- bug#29659: 25.2; better rmail-summary-by-topic, Eli Zaretskii, 2017/12/22