add mail sync

This commit is contained in:
Cyryl Płotnicki 2021-07-03 13:15:42 +01:00
parent c907a3ff4e
commit 536a75247f

View file

@ -26,10 +26,20 @@
create = "maildir"; create = "maildir";
}; };
folders = { folders = {
drafts = "drafts"; drafts = "Drafts";
inbox = "inbox"; inbox = "INBOX";
sent = "sent"; sent = "Sent";
trash = "trash"; trash = "Trash";
};
};
services = {
imapnotify.enable = true;
mbsync = {
enable = true;
frequency = "hourly";
postExec = "${pkgs.notmuch}/bin/notmuch new";
}; };
}; };
@ -59,6 +69,8 @@
hydroxide hydroxide
]; ];
systemd.user.services."hydroxide" = { systemd.user.services."hydroxide" = {
Unit.Description = "Bridge to ProtonMail"; Unit.Description = "Bridge to ProtonMail";
Install.WantedBy = [ "default.target" ]; Install.WantedBy = [ "default.target" ];