From 777be437e3351b60c710a810d4e06250a42d296b Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 19 Apr 2022 19:47:11 +0200 Subject: [PATCH] htmldump debugging --- .config/mutt/hooks | 3 +-- .config/mutt/htmldump | 8 ++++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.config/mutt/hooks b/.config/mutt/hooks index f175004..29b0706 100644 --- a/.config/mutt/hooks +++ b/.config/mutt/hooks @@ -20,8 +20,7 @@ send2-hook '~C @vger\.kernel\.org' 'unset send_multipart_alternative" # NOTE: using M-F-T from procmail for now message-hook . 'set attribution="$my_attribution_en"' -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"' +#message-hook '~b "\\<(Danke|Grü(ß|ss)e|Gru(ß|ss)|Lieber?|geehrter?|Herr|Frau|Moin|Servus|Lg|Deine?|Ihre?)\\>"' '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"' diff --git a/.config/mutt/htmldump b/.config/mutt/htmldump index c15ecd1..53b3a2e 100755 --- a/.config/mutt/htmldump +++ b/.config/mutt/htmldump @@ -20,6 +20,14 @@ elif [ $WRAP -gt 0 ]; then fi +awesome-client <<-_eof + local naughty = require("naughty") + naughty.notify({ preset = naughty.config.presets.low, + title = "htmldump called", + text = [[$@]], + }) + _eof + if command -v html2markdown >/dev/null; then exec html2markdown --asterisk-emphasis --body-width=$WIDTH --unicode-snob \ -- 2.39.5