l mail: refactor
This commit is contained in:
parent
6ee55cef8f
commit
9c8c17c7c8
@ -21,11 +21,11 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
mailboxes = {
|
mailboxes = {
|
||||||
wireguard = [ "wireguard@lists.zx2c4" ];
|
wireguard = [ "to:wireguard@lists.zx2c4" ];
|
||||||
c-base = [ "c-base.org" ];
|
c-base = [ "to:c-base.org" ];
|
||||||
security = [ "seclists.org" "security" "bugtraq" ];
|
security = [ "to:seclists.org" "to:security" "to:bugtraq" ];
|
||||||
nix-devel = [ "nix-devel@googlegroups.com" ];
|
nix-devel = [ "to:nix-devel@googlegroups.com" ];
|
||||||
shack = [ "shackspace.de" ];
|
shack = [ "to:shackspace.de" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
muttrc = pkgs.writeText "muttrc" ''
|
muttrc = pkgs.writeText "muttrc" ''
|
||||||
@ -80,16 +80,16 @@ let
|
|||||||
# V
|
# V
|
||||||
''} %r |"
|
''} %r |"
|
||||||
|
|
||||||
virtual-mailboxes \
|
virtual-mailboxes "INBOX" "notmuch://?query=tag:inbox ${concatMapStringsSep " " (f: "and NOT ${f}") (flatten (attrValues mailboxes))}"
|
||||||
"Unread" "notmuch://?query=tag:unread"\
|
virtual-mailboxes "Unread" "notmuch://?query=tag:unread"
|
||||||
"INBOX" "notmuch://?query=tag:inbox ${concatMapStringsSep " " (f: "and NOT to:${f}") (flatten (attrValues mailboxes))}"\
|
${concatMapStringsSep "\n" (i: ''${" "}virtual-mailboxes "${i.name}" "notmuch://?query=${concatMapStringsSep " or " (f: "${f}") i.value}"'') (mapAttrsToList nameValuePair mailboxes)}
|
||||||
${concatMapStringsSep "\n" (i: ''${" "}"${i.name}" "notmuch://?query=${concatMapStringsSep " or " (f: "to:${f}") i.value}"\'') (mapAttrsToList nameValuePair mailboxes)}
|
virtual-mailboxes "BOX" "notmuch://?query=${concatMapStringsSep " and " (f: "NOT ${f}") (flatten (attrValues mailboxes))}"
|
||||||
"BOX" "notmuch://?query=${concatMapStringsSep " and " (f: "NOT to:${f}") (flatten (attrValues mailboxes))}"\
|
virtual-mailboxes "TODO" "notmuch://?query=tag:TODO"
|
||||||
"TODO" "notmuch://?query=tag:TODO"\
|
virtual-mailboxes "Starred" "notmuch://?query=tag:*"
|
||||||
"Starred" "notmuch://?query=tag:*"\
|
virtual-mailboxes "Archive" "notmuch://?query=tag:archive"
|
||||||
"Archive" "notmuch://?query=tag:archive"\
|
virtual-mailboxes "Sent" "notmuch://?query=tag:sent"
|
||||||
"Sent" "notmuch://?query=tag:sent"\
|
virtual-mailboxes "Junk" "notmuch://?query=tag:junk"
|
||||||
"Junk" "notmuch://?query=tag:junk"
|
virtual-mailboxes "All" "notmuch://?query=*"
|
||||||
|
|
||||||
tag-transforms "junk" "k" \
|
tag-transforms "junk" "k" \
|
||||||
"unread" "u" \
|
"unread" "u" \
|
||||||
|
Loading…
Reference in New Issue
Block a user