From: martin f. krafft Date: Sun, 19 Apr 2020 22:18:50 +0000 (+1200) Subject: fix word-boundary message matching for attribution hook X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/df7778d191c99b4abf5eb6670d3686e1b7a5b1b8?hp=3257d28296939925370ea680d0b9bf13a0b39616 fix word-boundary message matching for attribution hook --- 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"'