mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
getmail: fix configuration mailboxes generation (#1719)
The mailboxes must be a tuple of string or the string "ALL". The generated value was broken if the mailboxes configuration was a list of only one string (but not "ALL"): the generated expression ( "str" ) was not a tuple but a string. Now, we always generate a tuple (by adding a comma, even with a list of size one). Getmail works with the special value "ALL" whether it is a in tuple or not, so this case is not specifically handled.
This commit is contained in:
parent
9068ff292c
commit
e72e241d7a
2 changed files with 2 additions and 3 deletions
|
@ -11,8 +11,7 @@ let
|
||||||
with account;
|
with account;
|
||||||
let
|
let
|
||||||
passCmd = concatMapStringsSep ", " (x: "'${x}'") passwordCommand;
|
passCmd = concatMapStringsSep ", " (x: "'${x}'") passwordCommand;
|
||||||
renderedMailboxes =
|
renderedMailboxes = concatMapStrings (x: "'${x}', ") getmail.mailboxes;
|
||||||
concatMapStringsSep ", " (x: "'${x}'") getmail.mailboxes;
|
|
||||||
retrieverType = if imap.tls.enable then
|
retrieverType = if imap.tls.enable then
|
||||||
"SimpleIMAPSSLRetriever"
|
"SimpleIMAPSSLRetriever"
|
||||||
else
|
else
|
||||||
|
|
|
@ -5,7 +5,7 @@ server = imap.example.com
|
||||||
port = 993
|
port = 993
|
||||||
username = home.manager
|
username = home.manager
|
||||||
password_command = ('password-command')
|
password_command = ('password-command')
|
||||||
mailboxes = ( 'INBOX', 'Sent', 'Work' )
|
mailboxes = ( 'INBOX', 'Sent', 'Work', )
|
||||||
|
|
||||||
[destination]
|
[destination]
|
||||||
type = MDA_external
|
type = MDA_external
|
||||||
|
|
Loading…
Reference in a new issue