mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 13:01:09 +01:00
aerc: improve module (#3150)
* aerc: add space after definitions * aerc: only generate files, if options were set * aerc: improve file permission warning * aerc: remove redundant access to builtins * aerc: allow overwriting of derived values the order of merging the config subsets did not allow the user to specify outgoing, source and password command values, if they were previously derived from the SMTP, IMAP, Maildir etc config. The values from `account.<name>.extraAccounts` now have the highest precedence. Appropriate tests were added as well. * aerc: write primary account first
This commit is contained in:
parent
cbbceb4894
commit
8da1135365
4 changed files with 139 additions and 48 deletions
|
|
@ -8,6 +8,10 @@ source = maildir:///dev/null
|
|||
[Test2]
|
||||
pgp-key-id = 42
|
||||
|
||||
[primary]
|
||||
from = Foo Bar <addr@mail.invalid>
|
||||
source = imap://foobar@imap.host.invalid:1337
|
||||
|
||||
[a_imap-nopasscmd-tls-starttls-folders]
|
||||
copy-to = aercSent
|
||||
default = aercInbox
|
||||
|
|
@ -74,3 +78,9 @@ outgoing = smtps+login://foobar@smtp.host.invalid:42
|
|||
[o_msmtp]
|
||||
from = Foo Bar <addr@mail.invalid>
|
||||
outgoing = msmtpq --read-envelope-from --read-recipients
|
||||
|
||||
[p_overwrite_defaults]
|
||||
from = test <test@email.invalid>
|
||||
outgoing = imap+plain://intentionallyWrong:PaSsWorD@smtp.host.invalid:1337
|
||||
postpone = dRaFts
|
||||
source = smtp+plain://intentionallyWrong:PaSsWorD@smtp.host.invalid:1337
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ with lib;
|
|||
};
|
||||
};
|
||||
in {
|
||||
a_imap-nopasscmd-tls-starttls-folders = basics // {
|
||||
primary = basics // {
|
||||
primary = true;
|
||||
imap = {
|
||||
host = "imap.host.invalid";
|
||||
|
|
@ -110,6 +110,14 @@ with lib;
|
|||
tls.enable = true;
|
||||
tls.useStartTls = true;
|
||||
};
|
||||
};
|
||||
a_imap-nopasscmd-tls-starttls-folders = basics // {
|
||||
imap = {
|
||||
host = "imap.host.invalid";
|
||||
port = 1337;
|
||||
tls.enable = true;
|
||||
tls.useStartTls = true;
|
||||
};
|
||||
folders = {
|
||||
drafts = "aercDrafts";
|
||||
inbox = "aercInbox";
|
||||
|
|
@ -224,6 +232,21 @@ with lib;
|
|||
};
|
||||
};
|
||||
o_msmtp = basics // { msmtp = { enable = true; }; };
|
||||
p_overwrite_defaults = basics // {
|
||||
smtp.host = "should.be.overwritten.invalid";
|
||||
imap.host = "should.be.overwritten.invalid";
|
||||
aerc = {
|
||||
enable = true;
|
||||
extraAccounts = {
|
||||
from = "test <test@email.invalid>";
|
||||
outgoing =
|
||||
"imap+plain://intentionallyWrong:PaSsWorD@smtp.host.invalid:1337";
|
||||
source =
|
||||
"smtp+plain://intentionallyWrong:PaSsWorD@smtp.host.invalid:1337";
|
||||
postpone = "dRaFts";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue