1
0
Fork 0
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:
dnsdhrj 2019-10-24 14:40:37 +09:00 committed by Robert Helgesson
parent 1b987952b5
commit a177d0282f
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 10 additions and 7 deletions

View file

@ -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} )

View file

@ -2,7 +2,7 @@
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.example.com
port = 993
username = home.manager
password_command = ('password-command')
mailboxes = ( 'INBOX', 'Sent', 'Work' )

View file

@ -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;
};
};