Fix mutt's urlscan and HTML view macros

Use <pipe-message> 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.
This commit is contained in:
Daniele Fucini
2026-11-01 08:15:00 +01:00
parent b76ae5c3f6
commit 51b2bbeff8
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
macro pager \cb <pipe-entry>'urlscan'<enter> 'Follow links with urlview' macro index,pager \cb "<pipe-message>urlscan<enter>" "Follow links with urlscan"
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook" macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add this sender to Abook"
macro attach V "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/mail.html<enter><shell-escape>vivaldi-stable ~/.cache/mutt/mail.html<enter>" macro attach V "<pipe-entry>iconv -c --to-code=UTF8 > ~/.cache/mutt/html/mail.html<enter><shell-escape>zen-browser ~/.cache/mutt/html/mail.html >/dev/null 2>&1<enter>" "Open attachment in Zen"
+1
View File
@@ -29,6 +29,7 @@ bind editor <Tab> complete-query
# Other settings # Other settings
set header_cache = "~/.cache/mutt" set header_cache = "~/.cache/mutt"
set message_cachedir = "~/.cache/mutt" set message_cachedir = "~/.cache/mutt"
set message_cache_clean = yes
set timeout = 30 set timeout = 30
set editor = "vim" set editor = "vim"