mirror of
https://github.com/nix-community/home-manager
synced 2024-12-23 18:29:47 +01:00
getmail: fix port option type mismatch
Fixed type mismatch in commit 410f573226
.
Added test case to ensure it works well.
This commit is contained in:
parent
1b987952b5
commit
a177d0282f
3 changed files with 10 additions and 7 deletions
|
@ -31,7 +31,7 @@ let
|
||||||
[retriever]
|
[retriever]
|
||||||
type = ${retrieverType}
|
type = ${retrieverType}
|
||||||
server = ${imap.host}
|
server = ${imap.host}
|
||||||
${optionalString (imap.port != null) "port = ${imap.port}"}
|
${optionalString (imap.port != null) "port = ${toString imap.port}"}
|
||||||
username = ${userName}
|
username = ${userName}
|
||||||
password_command = (${passCmd})
|
password_command = (${passCmd})
|
||||||
mailboxes = ( ${renderedMailboxes} )
|
mailboxes = ( ${renderedMailboxes} )
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
[retriever]
|
[retriever]
|
||||||
type = SimpleIMAPSSLRetriever
|
type = SimpleIMAPSSLRetriever
|
||||||
server = imap.example.com
|
server = imap.example.com
|
||||||
|
port = 993
|
||||||
username = home.manager
|
username = home.manager
|
||||||
password_command = ('password-command')
|
password_command = ('password-command')
|
||||||
mailboxes = ( 'INBOX', 'Sent', 'Work' )
|
mailboxes = ( 'INBOX', 'Sent', 'Work' )
|
||||||
|
|
|
@ -10,12 +10,15 @@ with lib;
|
||||||
home.homeDirectory = "/home/hm-user";
|
home.homeDirectory = "/home/hm-user";
|
||||||
|
|
||||||
accounts.email.accounts = {
|
accounts.email.accounts = {
|
||||||
"hm@example.com".getmail = {
|
"hm@example.com" = {
|
||||||
|
getmail = {
|
||||||
enable = true;
|
enable = true;
|
||||||
mailboxes = ["INBOX" "Sent" "Work"];
|
mailboxes = ["INBOX" "Sent" "Work"];
|
||||||
destinationCommand = "/bin/maildrop";
|
destinationCommand = "/bin/maildrop";
|
||||||
delete = false;
|
delete = false;
|
||||||
};
|
};
|
||||||
|
imap.port = 993;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nmt.script = ''
|
nmt.script = ''
|
||||||
|
|
Loading…
Reference in a new issue