From 959217e51dbd07d0de6dcbddfbfcb4f2efdc0c1e Mon Sep 17 00:00:00 2001 From: Marin Date: Tue, 28 Sep 2021 16:16:13 +0200 Subject: [PATCH] astroid: fix maildir paths (#2350) By maildir spec, emails should be under mailbox/folder/[cur,tmp,new] This commit changes the default maildir path to more closely match the example config: https://github.com/astroidmail/astroid/wiki/Configuration-Reference#accountsaccountnamesave_sent_to --- modules/programs/astroid.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/astroid.nix b/modules/programs/astroid.nix index 8af18f16c..ca88b1bef 100644 --- a/modules/programs/astroid.nix +++ b/modules/programs/astroid.nix @@ -22,9 +22,9 @@ let sendmail = astroid.sendMailCommand; additional_sent_tags = ""; default = boolOpt primary; - save_drafts_to = "${maildir.absPath}/${folders.drafts}"; + save_drafts_to = "${maildir.absPath}/${folders.drafts}/cur/"; save_sent = "true"; - save_sent_to = "${maildir.absPath}/${folders.sent}"; + save_sent_to = "${maildir.absPath}/${folders.sent}/cur/"; select_query = ""; } // optionalAttrs (signature.showSignature != "none") { signature_attach = boolOpt (signature.showSignature == "attach");