From 51b2bbeff8d141d70a432198a25b4675d3026776 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Sun, 1 Nov 2026 08:15:00 +0100 Subject: [PATCH] Fix mutt's urlscan and HTML view macros Use for urlscan (pipe-entry doesn't exist in the pager) and bind it in the index too. Open HTML attachments in Zen instead of Vivaldi, from ~/.cache/mutt/html, which the firejail profiles share. Prune cached messages deleted on the server. --- .config/mutt/macros | 4 ++-- .config/mutt/muttrc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.config/mutt/macros b/.config/mutt/macros index 4bf883d..bfb41a7 100644 --- a/.config/mutt/macros +++ b/.config/mutt/macros @@ -1,3 +1,3 @@ -macro pager \cb 'urlscan' 'Follow links with urlview' +macro index,pager \cb "urlscan" "Follow links with urlscan" macro index,pager a "abook --add-email-quiet" "Add this sender to Abook" -macro attach V "iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.htmlvivaldi-stable ~/.cache/mutt/mail.html" +macro attach V "iconv -c --to-code=UTF8 > ~/.cache/mutt/html/mail.htmlzen-browser ~/.cache/mutt/html/mail.html >/dev/null 2>&1" "Open attachment in Zen" diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc index ff840c2..804aa23 100644 --- a/.config/mutt/muttrc +++ b/.config/mutt/muttrc @@ -29,6 +29,7 @@ bind editor complete-query # Other settings set header_cache = "~/.cache/mutt" set message_cachedir = "~/.cache/mutt" +set message_cache_clean = yes set timeout = 30 set editor = "vim"