added afew for mail tagging

This commit is contained in:
Don Harper 2026-06-17 19:12:00 -05:00
parent a473ee7fd4
commit a462ab691d
2 changed files with 42 additions and 20 deletions

View file

@ -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}"

View file

@ -24,7 +24,23 @@
}; };
}; };
programs.notmuch = { programs = {
afew = {
enable = true;
extraConfig =
''
[FolderNameFilter]
# folder_explicit_list = aurora development kisd mailing-lists news pen Sent-Mail uh
# folder_blacklist = Inbox All-Mail Drafts Trash
folder_blacklist = All-Mail Trash
[SpamFilter]
[KillThreadsFilter]
[ListMailsFilter]
[ArchiveSentMailsFilter]
[InboxFilter]
'';
};
notmuch = {
enable = true; enable = true;
new = { new = {
tags = ["new" "unread"]; tags = ["new" "unread"];
@ -49,8 +65,12 @@
}; };
}; };
}; };
};
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;