summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager/mail.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-04-17 19:21:16 +0200
committertv <tv@krebsco.de>2020-04-17 19:21:16 +0200
commite1bfdd8d839929538d36e421908a96407b3aa0ab (patch)
tree557bf9a711f06997e846a5ef14a4105248f1da8c /makefu/2configs/home-manager/mail.nix
parent6ace0f7b6941c1c9476d84944cdba8bedf98d95d (diff)
parent07f18d851a974ee594c92e3332f167ef3b1d259f (diff)
Merge remote-tracking branch 'prism/master'
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']";
};