mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-13 20:41:07 +01:00
alot: allow commas in maildir path (#6989)
Previously, maildir path was not escaped in any way, so using a path with commas lead to a TypeError: ``` TypeError: expected string or bytes-like object, got 'list' ```
This commit is contained in:
parent
708074ae6d
commit
a8e2d08ffd
2 changed files with 4 additions and 4 deletions
|
|
@ -96,10 +96,10 @@ let
|
|||
sendmail_command = optionalString (alot.sendMailCommand != null) alot.sendMailCommand;
|
||||
}
|
||||
// optionalAttrs (folders.sent != null) {
|
||||
sent_box = "maildir" + "://" + maildir.absPath + "/" + folders.sent;
|
||||
sent_box = "'maildir" + "://" + maildir.absPath + "/" + folders.sent + "'";
|
||||
}
|
||||
// optionalAttrs (folders.drafts != null) {
|
||||
draft_box = "maildir" + "://" + maildir.absPath + "/" + folders.drafts;
|
||||
draft_box = "'maildir" + "://" + maildir.absPath + "/" + folders.drafts + "'";
|
||||
}
|
||||
// optionalAttrs (aliases != [ ]) {
|
||||
aliases = concatStringsSep "," aliases;
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ prefer_plaintext = True
|
|||
|
||||
[[hm@example.com]]
|
||||
address=hm@example.com
|
||||
draft_box=maildir:///home/hm-user/Mail/hm@example.com/Drafts
|
||||
draft_box='maildir:///home/hm-user/Mail/hm@example.com/Drafts'
|
||||
realname=H. M. Test
|
||||
sendmail_command=
|
||||
sent_box=maildir:///home/hm-user/Mail/hm@example.com/Sent
|
||||
sent_box='maildir:///home/hm-user/Mail/hm@example.com/Sent'
|
||||
auto_remove_unread = True
|
||||
ask_subject = False
|
||||
handle_mouse = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue