From b7fe2198605e5babd7ef3bf1b666017b9d5070b2 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Sun, 15 May 2022 20:04:42 +0200 Subject: [PATCH] Add mailcap entry for libreoffice, add urlscan for index and attach too --- roles/neomutt/files/mailcap | 1 + roles/neomutt/templates/neomuttrc.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/neomutt/files/mailcap b/roles/neomutt/files/mailcap index 8fa101d..1ff593d 100644 --- a/roles/neomutt/files/mailcap +++ b/roles/neomutt/files/mailcap @@ -7,3 +7,4 @@ audio/*; mpv %s; application/pdf; ~/.local/bin/openfile %s; application/pgp-encrypted; gpg -d '%s'; copiousoutput; application/pgp-keys; gpg --import '%s'; copiousoutput; +application/*; libreoffice '%s'; copiousoutput; diff --git a/roles/neomutt/templates/neomuttrc.j2 b/roles/neomutt/templates/neomuttrc.j2 index c986943..416801c 100644 --- a/roles/neomutt/templates/neomuttrc.j2 +++ b/roles/neomutt/templates/neomuttrc.j2 @@ -77,7 +77,7 @@ bind editor complete-query #macro index,pager Ma ";=Archive" "move mail to archive" #macro index,pager Ca ";=Archive" "copy mail to archive" -macro pager \Cb 'urlscan' "follow links with urlscan" +macro index,attach,pager \Cb 'urlscan' "follow links with urlscan" #macro index,pager a "set my_pipe_decode=\$pipe_decode pipe_decodeabook --add-emailset pipe_decode=\$my_pipe_decode; unset my_pipe_decode" "add the sender address to abook" #macro index \Cr "T~UN." "mark all messages as read" #macro index O "mw -Y" "run mw -Y to sync all mail"