Skip to content

Commit

Permalink
Make sure to quote folder pattern.
Browse files Browse the repository at this point in the history
see #85
  • Loading branch information
tonioo committed Jul 27, 2017
1 parent f538fca commit 31f99ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ before_install:
- if [[ $DB = 'MYSQL' ]]; then pip install -q mysqlclient; fi

install:
- pip install -e git+https://github.com/tonioo/modoboa@refactor/python3_fixes#egg=modoboa
- pip install -e git+https://github.com/modoboa/modoboa#egg=modoboa
- pip install -q factory-boy testfixtures
- python setup.py -q develop

Expand Down
2 changes: 1 addition & 1 deletion modoboa_webmail/lib/imaputils.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def _listmboxes_simple(self, topmailbox='INBOX', mailboxes=None, **kwargs):
def _listmboxes(self, topmailbox, mailboxes, until_mailbox=None):
"""Retrieve mailboxes list."""
pattern = (
"{0}{1}%".format(
'"{0}{1}%"'.format(
topmailbox.encode("imap4-utf-7").decode(), self.hdelimiter)
if topmailbox else "%"
)
Expand Down

0 comments on commit 31f99ae

Please sign in to comment.