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
|
||||
|
||||
afew --tag --all >> /dev/null 2>&1
|
||||
exit
|
||||
addtag() {
|
||||
tags="${1}"
|
||||
field="${2}"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
new = {
|
||||
tags = ["new" "unread"];
|
||||
|
|
@ -49,8 +65,12 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
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/mailcap".source = ./files/neomutt/mailcap;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue