l mail: template with nix
This commit is contained in:
parent
2613e485da
commit
7368b6a9da
@ -1,3 +1,4 @@
|
|||||||
|
with import <stockholm/lib>;
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -19,6 +20,14 @@ let
|
|||||||
text/html; ${pkgs.elinks}/bin/elinks -dump ; copiousoutput;
|
text/html; ${pkgs.elinks}/bin/elinks -dump ; copiousoutput;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
inboxes = [
|
||||||
|
{ l = "wireguard"; q = [ "wireguard@lists.zx2c4" ]; }
|
||||||
|
{ l = "c-base"; q = [ "c-base.org" ]; }
|
||||||
|
{ l = "security"; q = [ "seclists.org" "security" "bugtraq" ]; }
|
||||||
|
{ l = "nix-devel"; q = [ "nix-devel@googlegroups.com" ]; }
|
||||||
|
{ l = "shack"; q = [ "shackspace.de" ]; }
|
||||||
|
];
|
||||||
|
|
||||||
muttrc = pkgs.writeText "muttrc" ''
|
muttrc = pkgs.writeText "muttrc" ''
|
||||||
# gpg
|
# gpg
|
||||||
source ${pkgs.neomutt}/share/doc/mutt/samples/gpg.rc
|
source ${pkgs.neomutt}/share/doc/mutt/samples/gpg.rc
|
||||||
@ -72,22 +81,15 @@ let
|
|||||||
''} %r |"
|
''} %r |"
|
||||||
|
|
||||||
virtual-mailboxes \
|
virtual-mailboxes \
|
||||||
"Unread" "notmuch://?query=tag:unread"\
|
"Unread" "notmuch://?query=tag:unread"\
|
||||||
"INBOX" "notmuch://?query=tag:inbox \
|
"INBOX" "notmuch://?query=tag:inbox ${concatMapStringsSep " " (f: "and NOT to:${f}") (concatMap (l: l.q) inboxes)}"\
|
||||||
and NOT to:nix-devel\
|
${concatMapStringsSep "\n" (i: ''${" "}"${i.l}" "notmuch://?query=${concatMapStringsSep " or " (f: "to:${f}") i.q}"\'') inboxes}
|
||||||
and NOT to:shackspace\
|
"BOX" "notmuch://?query=${concatMapStringsSep " and " (f: "NOT to:${f}") (concatMap (l: l.q) inboxes)}"\
|
||||||
and NOT to:security\
|
"TODO" "notmuch://?query=tag:TODO"\
|
||||||
and NOT to:c-base" \
|
"Starred" "notmuch://?query=tag:*"\
|
||||||
"shack" "notmuch://?query=to:shackspace"\
|
"Archive" "notmuch://?query=tag:archive"\
|
||||||
"c-base" "notmuch://?query=to:c-base"\
|
"Sent" "notmuch://?query=tag:sent"\
|
||||||
"security" "notmuch://?query=to:securityfocus or from:security-alert@hpe.com"\
|
"Junk" "notmuch://?query=tag:junk"
|
||||||
"nix" "notmuch://?query=to:nix-devel"\
|
|
||||||
"radio" "notmuch://?query=to:radio or tag:radio"\
|
|
||||||
"TODO" "notmuch://?query=tag:TODO"\
|
|
||||||
"Starred" "notmuch://?query=tag:*"\
|
|
||||||
"Archive" "notmuch://?query=tag:archive"\
|
|
||||||
"Sent" "notmuch://?query=tag:sent"\
|
|
||||||
"Junk" "notmuch://?query=tag:junk"
|
|
||||||
|
|
||||||
tag-transforms "junk" "k" \
|
tag-transforms "junk" "k" \
|
||||||
"unread" "u" \
|
"unread" "u" \
|
||||||
|
Loading…
Reference in New Issue
Block a user