From df7778d191c99b4abf5eb6670d3686e1b7a5b1b8 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Mon, 20 Apr 2020 10:18:50 +1200 Subject: [PATCH] fix word-boundary message matching for attribution hook --- .mutt/hooks | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mutt/hooks b/.mutt/hooks index e930d9b..0a7f8ee 100644 --- a/.mutt/hooks +++ b/.mutt/hooks @@ -22,7 +22,8 @@ send2-hook '~C @members\.ebay\.com' 'set envelope_from' # NOTE: using M-F-T from procmail for now message-hook . 'set attribution="$my_attribution_en"' -message-hook '~b "\b(Danke|Grü(ß|ss)e|Gru(ß|ss)|Lieber?|geehrter?|Herr|Frau|Moin|Servus|Lg|Deine?|Ihre?)\b"' 'set attribution="$my_attribution_de"' +message-hook '~b "\\<(Danke|Grü(ß|ss)e|Gru(ß|ss)|Lieber?|geehrter?|Herr|Frau|Moin|Servus|Lg|Deine?|Ihre?)\\>"' 'set attribution="$my_attribution_de"' +message-hook '~b "Lieber?"' 'set attribution="$my_attribution_de"' # do not get spam status via imap, as it would download the entire message folder-hook . 'set index_format="%4C %Z %-10@date@ %-15.15F %4c%?M?/[%M]? %?H?[%H] ?%s"' -- 2.39.2