From 03b7e423cc03b3cbb3d8a743f2ede6263911e6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Yule=20B=C3=A4dorf?= Date: Wed, 27 Mar 2024 10:25:39 +0100 Subject: [PATCH] email/neomutt: improve keybindings, fix HTML emails --- users/b12f/email.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/users/b12f/email.nix b/users/b12f/email.nix index ca3d00f..d472eef 100644 --- a/users/b12f/email.nix +++ b/users/b12f/email.nix @@ -160,18 +160,18 @@ in { { map = ["index" "pager"]; key = "\\Cb"; - action = '' urlscan" "call urlscan to extract URLs out of a message''; + action = '' ${pkgs.urlscan}/bin/urlscan" "call urlscan to extract URLs out of a message''; } { map = ["attach" "compose"]; key = "\\Cb"; - action = '' urlscan" "call urlscan to extract URLs out of a message''; + action = '' ${pkgs.urlscan}/bin/urlscan" "call urlscan to extract URLs out of a message''; } # Translate markdown to html { map = ["compose"]; - key = "\\e5"; - action = ''F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=utf-8\n''; + key = "\\Cm"; + action = ''F ${pkgs.pandoc}/bin/pandoc -s -f markdown -t html \ny^T^Utext/html; charset=utf-8\n" "Convert to HTML''; } # Save to ~/Downloads by default { @@ -179,6 +179,11 @@ in { key = "S"; action = ''~/Downloads/" "Save to Downloads''; } + { + map = ["index"]; + key = "\\Ca"; + action = ''~NN." "Mark all as read''; + } ] ++ lib.lists.imap1 (i: address: { map = ["index" "pager"]; key = ""; @@ -195,6 +200,7 @@ in { ''; settings = { + mark_old = "no"; sendmail_wait = "0"; crypt_verify_sig = "yes"; imap_check_subscribed = "yes";