summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-07-11 00:08:05 +0200
committerlassulus <lassulus@lassul.us>2017-07-12 19:08:18 +0200
commit9215b5b6880c833721caa7572b7480c7912d7fd6 (patch)
tree52d0a2fd037e3c81bb50c551afb12b6c1b609970 /lass/2configs
parent2ff81c4a0d81e8387925dfcc66685e7206c131cf (diff)
l mail: show recipent in mutt index
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/mail.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/lass/2configs/mail.nix b/lass/2configs/mail.nix
index 9a3c4e829..6555b1b45 100644
--- a/lass/2configs/mail.nix
+++ b/lass/2configs/mail.nix
@@ -54,7 +54,15 @@ let
set sort=threads
- set index_format="%4C %Z %?GI?%GI& ? %[%d/%b] %-16.15F %?M?(%3M)& ? %s %> %?g?%g?"
+ set index_format="${pkgs.writeDash "mutt-index" ''
+ # http://www.mutt.org/doc/manual/#formatstrings
+ recipent="$(echo $1 | sed 's/.*<\([^>]*\).*/\1/')"
+ # output to mutt
+ # V
+ echo "%4C %Z %?GI?%GI& ? %[%d/%b] %-20.20a %?M?(%3M)& ? %s %> $recipent %?g?%g?%"
+ # args to mutt-index dash script
+ # V
+ ''} %r |"
virtual-mailboxes \
"INBOX" "notmuch://?query=tag:inbox and NOT tag:killed"\