diff options
author | jp39 <jp39@gmx.com> | 2022-11-10 19:39:19 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-11-13 17:13:53 +0100 |
commit | 40cc540357d92aee07fba2819801e168d3bf0f33 (patch) | |
tree | c85e42e5298a56308bcbd9d242c01460492aa378 /doc | |
parent | 76002741072a61d1adcf97f708a3db9d544b27de (diff) | |
download | aerc-40cc540357d92aee07fba2819801e168d3bf0f33.tar.gz |
reply: allow to override localized Re regexp in configuration
My corporate email server annoyingly adds an "[External] " prefix when
delivering emails from outside my organization. I'd like to be able to
automatically strip it from the subject line when replying to external
emails.
With this patch, I can achieve it by setting this line in my account
configuration:
subject-re-pattern = ^(\[External\] : )?((?i)((AW|RE|SV|VS|ODP|R): ?)+)
Signed-off-by: jp39 <jp39@gmx.com>
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/aerc-config.5.scd | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 13ce7630..d943c18e 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -838,6 +838,16 @@ Note that many of these configuration options are written for you, such as expressions. If you want to trust any host (e.g. for debugging), use the wildcard \*. +*subject-re-pattern* + When replying to a message, this is the regular expression that will + be used to match the prefix of the original message's subject that has + to be removed, to create the subject line of the new message. + Typically, this will be used to avoid a repetition of the "Re: " + prefix in the subject header. The default will match known + translations for the common "Re: ". + + Default: (?i)^((AW|RE|SV|VS|ODP|R): ?)+ + # BINDS.CONF This file is used for configuring keybindings used in the aerc interactive |