From 40cc540357d92aee07fba2819801e168d3bf0f33 Mon Sep 17 00:00:00 2001 From: jp39 Date: Thu, 10 Nov 2022 19:39:19 +0100 Subject: 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 Acked-by: Moritz Poldrack --- doc/aerc-config.5.scd | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc') 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 -- cgit