summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/mail.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-03-13 10:42:08 +0100
committermakefu <github@syntax-fehler.de>2020-03-13 10:42:08 +0100
commitf88e30e5ad906d946852891b6d668d8910c943b2 (patch)
treea7184eae2364d9c89d038f2739f11c9e910c99e7 /makefu/2configs/home-manager/mail.nix
parentc325d7d6cfd6a11b6d3e4e83d06801de3c97b48a (diff)
ma home-manager: update mail with mbsync
Diffstat (limited to 'makefu/2configs/home-manager/mail.nix')
-rw-r--r--makefu/2configs/home-manager/mail.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/makefu/2configs/home-manager/mail.nix b/makefu/2configs/home-manager/mail.nix
index 467e0d7a0..ba29e86a4 100644
--- a/makefu/2configs/home-manager/mail.nix
+++ b/makefu/2configs/home-manager/mail.nix
@@ -1,6 +1,8 @@
{
home-manager.users.makefu = {
+ programs.mbsync.enable = true;
accounts.email.maildirBasePath = "/home/makefu/Mail";
+ accounts.email.certificatesFile = "/etc/ssl/certs/ca-certificates.crt";
accounts.email.accounts.syntaxfehler = {
address = "felix.richter@syntax-fehler.de";
userName = "Felix.Richter@syntax-fehler.de";
@@ -10,18 +12,34 @@
enable = true;
};
};
+ mbsync = {
+ enable = true;
+ create = "both";
+ remove = "both";
+ expunge = "both";
+ patterns = [ "*" "!INBOX.Sent*"];
+ };
smtp = {
host = "syntax-fehler.de";
tls = {
enable = true;
};
};
+ folders = {
+ sent = "Sent";
+ trash = "Trash";
+ inbox = "INBOX";
+ drafts = "Drafts";
+ };
msmtp.enable = true;
notmuch.enable = true;
offlineimap = {
enable = true;
postSyncHookCommand = "notmuch new";
extraConfig.remote = {
+ auth_mechanisms = "LOGIN";
+ tls_level = "tls_secure";
+ ssl_version = "tls1_2";
holdconnectionopen = true;
idlefolders = "['INBOX']";
};