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