home: mail: separate email channels

Provide a "full" channel that synchronized everything, and a lightweight
"main" channel that fetches just what I need quickly.
This commit is contained in:
Antoine Martin 2022-05-02 17:04:34 +02:00
parent d61c80cec4
commit 128b498f77

View file

@ -42,6 +42,26 @@ in {
enable = true;
create = "both";
expunge = "both";
groups = {
alarsyo-main.channels.alarsyo-main = {
patterns = ["INBOX" "Sent" "Drafts" "Junk" "Trash"];
extraConfig = {
Create = "Both";
Expunge = "Both";
Remove = "None";
SyncState = "*";
};
};
alarsyo-full.channels.alarsyo-full = {
patterns = ["*" "!INBOX" "!Sent" "!Drafts" "!Junk" "!Trash"];
extraConfig = {
Create = "Both";
Expunge = "Both";
Remove = "None";
SyncState = "*";
};
};
};
};
msmtp.enable = true;
mu.enable = true;