[GH-ISSUE #436] Dovecot IMAP LIST command returning names not wrapped in double quotes #419

Closed
opened 2026-02-27 11:11:40 +03:00 by kerem · 2 comments
Owner

Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/436

Originally assigned to: @tonioo on GitHub.

Originally created by Adam Moore on 2013-07-24T12:54:59Z

Dovecot configuration for the LIST command returns the names of the mailbox folders without enclosing them in double quotes.

This caused a Python error in extensions/webmail/imaputils.py on line 399.

Changing the regex on line 141 from

r'((?P.?)) "(?P.)" (?P[^"]*)'

to

r'((?P.?)) "(?P.)" "?(?P[^"]*)"?'

solved the issue.

My Dovecot configuration, as outputted by doveconf -a, is attached

Originally created by @tonioo on GitHub (Dec 4, 2013). Original GitHub issue: https://github.com/modoboa/modoboa/issues/436 Originally assigned to: @tonioo on GitHub. **Originally created by Adam Moore on 2013-07-24T12:54:59Z** Dovecot configuration for the LIST command returns the names of the mailbox folders without enclosing them in double quotes. This caused a Python error in extensions/webmail/imaputils.py on line 399. Changing the regex on line 141 from > r'((?P<flags>._?)) "(?P<delimiter>._)" (?P<name>[^"]*)' to > r'((?P<flags>._?)) "(?P<delimiter>._)" "?(?P<name>[^"]*)"?' solved the issue. My Dovecot configuration, as outputted by doveconf -a, is attached
kerem 2026-02-27 11:11:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Antoine Nguyen on 2013-07-26T13:16:34Z

Hi Adam,

which modoboa version are you running? A 1.0.0 or the 1.0.x branch from github?

Thanks.

<!-- gh-comment-id:29816452 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Antoine Nguyen on 2013-07-26T13:16:34Z** Hi Adam, which modoboa version are you running? A 1.0.0 or the 1.0.x branch from github? Thanks.
Author
Owner

@tonioo commented on GitHub (Dec 4, 2013):

Posted by Anonymous on 2013-07-27T07:04:30Z

Applied in changeset commit:9570e2dea036212c61f8751e6dad9fd99747d133.

<!-- gh-comment-id:29816453 --> @tonioo commented on GitHub (Dec 4, 2013): **Posted by Anonymous on 2013-07-27T07:04:30Z** Applied in changeset commit:9570e2dea036212c61f8751e6dad9fd99747d133.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#419
No description provided.