meli: support account specific settings

also assert when overriding accounts. I had overriden settings when
testing this module, forgot about it and then wondered why my email
accounts were ignored.
This commit is contained in:
teto 2025-06-09 00:11:45 +02:00 committed by Matthieu Coudron
parent d2e0458d65
commit 80cca72314
3 changed files with 29 additions and 2 deletions

View file

@ -5,6 +5,9 @@ identity = "hm@example.com"
root_mailbox = "/home/hm-user/Mail/hm@example.com"
subscribed_mailboxes = ["Inbox", "Sent", "Trash", "Drafts"]
[accounts."hm@example.com".listing]
index_style = "compact"
[accounts."hm@example.com".mailboxes]
[accounts."hm@example.com".send_mail]

View file

@ -16,7 +16,12 @@
};
accounts.email.accounts = {
"hm@example.com" = {
meli.enable = true;
meli = {
enable = true;
settings = {
listing.index_style = "compact";
};
};
smtp.port = 1848;
};
};