getmail: fix port option type mismatch
Fixed type mismatch in commit410f573226
. Added test case to ensure it works well. (cherry picked from commita177d0282f
)
This commit is contained in:
parent
06ae8792e7
commit
e413a1408e
|
@ -31,7 +31,7 @@ let
|
|||
[retriever]
|
||||
type = ${retrieverType}
|
||||
server = ${imap.host}
|
||||
${optionalString (imap.port != null) "port = ${imap.port}"}
|
||||
${optionalString (imap.port != null) "port = ${toString imap.port}"}
|
||||
username = ${userName}
|
||||
password_command = (${passCmd})
|
||||
mailboxes = ( ${renderedMailboxes} )
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
[retriever]
|
||||
type = SimpleIMAPSSLRetriever
|
||||
server = imap.example.com
|
||||
|
||||
port = 993
|
||||
username = home.manager
|
||||
password_command = ('password-command')
|
||||
mailboxes = ( 'INBOX', 'Sent', 'Work' )
|
||||
|
|
|
@ -10,11 +10,14 @@ with lib;
|
|||
home.homeDirectory = "/home/hm-user";
|
||||
|
||||
accounts.email.accounts = {
|
||||
"hm@example.com".getmail = {
|
||||
enable = true;
|
||||
mailboxes = ["INBOX" "Sent" "Work"];
|
||||
destinationCommand = "/bin/maildrop";
|
||||
delete = false;
|
||||
"hm@example.com" = {
|
||||
getmail = {
|
||||
enable = true;
|
||||
mailboxes = ["INBOX" "Sent" "Work"];
|
||||
destinationCommand = "/bin/maildrop";
|
||||
delete = false;
|
||||
};
|
||||
imap.port = 993;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue