1
0
Fork 0
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:
ScribblyBirb 2025-05-07 16:17:09 -07:00 committed by GitHub
parent 708074ae6d
commit a8e2d08ffd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

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

View file

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