mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 02:09:04 +02:00
chore: add expunging of mails
This commit is contained in:
parent
07397c1c2d
commit
4ab45f2921
1 changed files with 8 additions and 5 deletions
|
@ -46,6 +46,7 @@ with lib;
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
create = "maildir";
|
create = "maildir";
|
||||||
|
expunge = "both";
|
||||||
extraConfig.channel = {
|
extraConfig.channel = {
|
||||||
"CopyArrivalDate" = "yes";
|
"CopyArrivalDate" = "yes";
|
||||||
};
|
};
|
||||||
|
@ -67,6 +68,7 @@ with lib;
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
create = "maildir";
|
create = "maildir";
|
||||||
|
expunge = "both";
|
||||||
extraConfig.channel = {
|
extraConfig.channel = {
|
||||||
"CopyArrivalDate" = "yes";
|
"CopyArrivalDate" = "yes";
|
||||||
};
|
};
|
||||||
|
@ -89,6 +91,7 @@ with lib;
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
create = "maildir";
|
create = "maildir";
|
||||||
|
expunge = "both";
|
||||||
extraConfig.channel = {
|
extraConfig.channel = {
|
||||||
"CopyArrivalDate" = "yes";
|
"CopyArrivalDate" = "yes";
|
||||||
};
|
};
|
||||||
|
@ -111,6 +114,7 @@ with lib;
|
||||||
mbsync = {
|
mbsync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
create = "maildir";
|
create = "maildir";
|
||||||
|
expunge = "both";
|
||||||
extraConfig.channel = {
|
extraConfig.channel = {
|
||||||
"CopyArrivalDate" = "yes";
|
"CopyArrivalDate" = "yes";
|
||||||
};
|
};
|
||||||
|
@ -138,6 +142,9 @@ with lib;
|
||||||
programs.notmuch = {
|
programs.notmuch = {
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
new.tags = [ "new" ];
|
new.tags = [ "new" ];
|
||||||
|
hooks.preNew = lib.mkDefault ''
|
||||||
|
${pkgs.notmuch-mailmover}/bin/notmuch-mailmover --config ${./mailmover.lua}
|
||||||
|
'';
|
||||||
hooks.postNew = lib.mkDefault ''
|
hooks.postNew = lib.mkDefault ''
|
||||||
${pkgs.afew}/bin/afew --tag --new
|
${pkgs.afew}/bin/afew --tag --new
|
||||||
'';
|
'';
|
||||||
|
@ -149,13 +156,9 @@ with lib;
|
||||||
[FolderNameFilter]
|
[FolderNameFilter]
|
||||||
maildir_separator = /
|
maildir_separator = /
|
||||||
folder_lowercases = true
|
folder_lowercases = true
|
||||||
folder_blacklist = Sent
|
|
||||||
[ArchiveSentMailsFilter]
|
|
||||||
sent_tag = sent
|
|
||||||
[Filter.1]
|
[Filter.1]
|
||||||
query = tag:archive
|
query = tag:new
|
||||||
tags = -new
|
tags = -new
|
||||||
[InboxFilter]
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue