meli: adding the meli email client (#7111)

Meli email client integrated into the accounts.email.accouts settings.
This commit is contained in:
MunsMan 2025-05-29 05:30:10 +02:00 committed by GitHub
parent 7d2fcc864e
commit 13ed57aaa6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 274 additions and 0 deletions

View file

@ -0,0 +1 @@
{ meli = ./meli.nix; }

View file

@ -0,0 +1,40 @@
[accounts."hm@example.com"]
display_name = "H. M. Test"
format = "Maildir"
identity = "hm@example.com"
root_mailbox = "/home/hm-user/Mail/hm@example.com"
subscribed_mailboxes = ["Inbox", "Sent", "Trash", "Drafts"]
[accounts."hm@example.com".mailboxes]
[accounts."hm@example.com".send_mail]
hostname = "smtp.example.com"
port = 1848
[accounts."hm@example.com".send_mail.auth]
type = "auto"
username = "home.manager"
[accounts."hm@example.com".send_mail.auth.password]
type = "command_eval"
value = "password-command"
[accounts."hm@example.com".send_mail.extensions]
CHUNKING = true
DSN_NOTIFY = "FAILURE"
PIPELINING = true
PRDR = true
[accounts."hm@example.com".send_mail.security]
danger_accept_invalid_certs = false
type = "tls"
[shortcuts.composing]
[shortcuts.contact-list]
[shortcuts.general]
scroll_down = "j"
scroll_up = "k"
[shortcuts.listing]
[shortcuts.pager]

View file

@ -0,0 +1,28 @@
{
imports = [
../../accounts/email-test-accounts.nix
];
programs.meli = {
enable = true;
settings = {
shortcuts = {
general = {
scroll_up = "k";
scroll_down = "j";
};
};
};
};
accounts.email.accounts = {
"hm@example.com" = {
meli.enable = true;
smtp.port = 1848;
};
};
nmt.script = ''
assertFileExists home-files/.config/meli/config.toml
assertFileContent home-files/.config/meli/config.toml ${./expected.toml}
'';
}