summaryrefslogtreecommitdiffstats
path: root/lass/2configs/mail.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-07-13 00:37:54 +0200
committertv <tv@krebsco.de>2017-07-13 00:37:54 +0200
commitbc6c6a3164d31141f39333914c1b15ff261e7859 (patch)
tree8bff8dd19f1d9f9fcc2b78b7c8d3fb81a332aab4 /lass/2configs/mail.nix
parent4da01794605291bdb7bd9fa9dc7109764f4faf58 (diff)
parent7212de210bb7fc751ffade00d6b1b08f195ddf47 (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/2configs/mail.nix')
-rw-r--r--lass/2configs/mail.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/lass/2configs/mail.nix b/lass/2configs/mail.nix
index e39c09b84..9f5e3d523 100644
--- a/lass/2configs/mail.nix
+++ b/lass/2configs/mail.nix
@@ -43,14 +43,26 @@ let
set nm_record = yes
set nm_record_tags = "-inbox me archive"
set virtual_spoolfile=yes # enable virtual folders
- set sendmail="${msmtp}/bin/msmtp" # enables parsing of outgoing mail
+
+
+ set sendmail="${msmtp}/bin/msmtp" # enables parsing of outgoing mail
set from="lassulus@lassul.us"
+ alternates ^.*@lassul\.us$ ^.*@.*\.r$
set use_from=yes
set envelope_from=yes
+ set reverse_name
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/g')"
+ # 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"\