meli: adding the meli email client (#7111)
Meli email client integrated into the accounts.email.accouts settings.
This commit is contained in:
parent
7d2fcc864e
commit
13ed57aaa6
7 changed files with 274 additions and 0 deletions
1
tests/modules/programs/meli/default.nix
Normal file
1
tests/modules/programs/meli/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ meli = ./meli.nix; }
|
||||
40
tests/modules/programs/meli/expected.toml
Normal file
40
tests/modules/programs/meli/expected.toml
Normal 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]
|
||||
28
tests/modules/programs/meli/meli.nix
Normal file
28
tests/modules/programs/meli/meli.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue