added afew for mail tagging
This commit is contained in:
parent
a473ee7fd4
commit
a462ab691d
2 changed files with 42 additions and 20 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
afew --tag --all >> /dev/null 2>&1
|
||||||
|
exit
|
||||||
addtag() {
|
addtag() {
|
||||||
tags="${1}"
|
tags="${1}"
|
||||||
field="${2}"
|
field="${2}"
|
||||||
|
|
|
||||||
|
|
@ -24,33 +24,53 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.notmuch = {
|
programs = {
|
||||||
enable = true;
|
afew = {
|
||||||
new = {
|
enable = true;
|
||||||
tags = ["new" "unread"];
|
extraConfig =
|
||||||
ignore = [
|
''
|
||||||
".mbsyncstate"
|
[FolderNameFilter]
|
||||||
".uidvalidity"
|
# folder_explicit_list = aurora development kisd mailing-lists news pen Sent-Mail uh
|
||||||
".mbsyncstate.journal"
|
# folder_blacklist = Inbox All-Mail Drafts Trash
|
||||||
".mbsyncstate.new"
|
folder_blacklist = All-Mail Trash
|
||||||
".mbsyncstate.lock"
|
[SpamFilter]
|
||||||
];
|
[KillThreadsFilter]
|
||||||
|
[ListMailsFilter]
|
||||||
|
[ArchiveSentMailsFilter]
|
||||||
|
[InboxFilter]
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
maildir = {
|
notmuch = {
|
||||||
synchronizeFlags = true;
|
enable = true;
|
||||||
};
|
new = {
|
||||||
extraConfig = {
|
tags = ["new" "unread"];
|
||||||
index = {
|
ignore = [
|
||||||
"header.List" = "List-Id";
|
".mbsyncstate"
|
||||||
|
".uidvalidity"
|
||||||
|
".mbsyncstate.journal"
|
||||||
|
".mbsyncstate.new"
|
||||||
|
".mbsyncstate.lock"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
database = {
|
maildir = {
|
||||||
path = "/home/don/Mail";
|
synchronizeFlags = true;
|
||||||
hook_dir = "/home/don/.config/notmuch/hooks";
|
};
|
||||||
|
extraConfig = {
|
||||||
|
index = {
|
||||||
|
"header.List" = "List-Id";
|
||||||
|
};
|
||||||
|
database = {
|
||||||
|
path = "/home/don/Mail";
|
||||||
|
hook_dir = "/home/don/.config/notmuch/hooks";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."notmuch/hooks/post-new".source = ./files/notmuch/post-new;
|
xdg.configFile."notmuch/hooks/post-new".source = ./files/notmuch/post-new;
|
||||||
|
# xdg.configFile."notmuch/hooks/post-new".text = ''
|
||||||
|
# ${pkgs.afew}/bin/afew --tag --all
|
||||||
|
# '';
|
||||||
xdg.configFile."neomutt/neomuttrc".source = ./files/neomutt/neomuttrc;
|
xdg.configFile."neomutt/neomuttrc".source = ./files/neomutt/neomuttrc;
|
||||||
xdg.configFile."neomutt/mailcap".source = ./files/neomutt/mailcap;
|
xdg.configFile."neomutt/mailcap".source = ./files/neomutt/mailcap;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue