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
This commit is contained in:
Marin 2021-09-28 16:16:13 +02:00 committed by GitHub
parent cb09a968e9
commit 959217e51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,9 +22,9 @@ let
sendmail = astroid.sendMailCommand; sendmail = astroid.sendMailCommand;
additional_sent_tags = ""; additional_sent_tags = "";
default = boolOpt primary; default = boolOpt primary;
save_drafts_to = "${maildir.absPath}/${folders.drafts}"; save_drafts_to = "${maildir.absPath}/${folders.drafts}/cur/";
save_sent = "true"; save_sent = "true";
save_sent_to = "${maildir.absPath}/${folders.sent}"; save_sent_to = "${maildir.absPath}/${folders.sent}/cur/";
select_query = ""; select_query = "";
} // optionalAttrs (signature.showSignature != "none") { } // optionalAttrs (signature.showSignature != "none") {
signature_attach = boolOpt (signature.showSignature == "attach"); signature_attach = boolOpt (signature.showSignature == "attach");