summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/mail.nix
diff options
context:
space:
mode:
authorJeschli <jeschli@gmail.com>2020-04-14 20:36:21 +0200
committerJeschli <jeschli@gmail.com>2020-04-14 20:36:21 +0200
commite5342b25c149f05db86983f3785ee395c156b435 (patch)
treee45270c08010c48c27a22643bd9a3a343b880eae /makefu/2configs/home-manager/mail.nix
parent290b6a542527a0a48c11fc2b00aee2b4d7f7df06 (diff)
parent843a537bd7fbedd8eb5fd61a1172dd8229440606 (diff)
Merge branch 'master' of https://cgit.lassul.us/stockholm
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']";
};