ensure_str needed see cyruslib handling
else string is compared with bytes and the imapfolder won't be verified
Details
Details
- Reviewers
sicherha mollekopf - Group Reviewers
PyKolab Developers - Commits
- rPc255b3f728cb: Space in cyrus imapfolder_path
tested with dm DELETED* on buster with python 2.7 and 3.x
Diff Detail
Diff Detail
- Repository
- rP pykolab
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
pykolab/imap/cyrus.py | ||
---|---|---|
572 | In the original code, double quotes are added around the string; your change removes these quotes. Is there a particular reason for this? |
pykolab/imap/cyrus.py | ||
---|---|---|
572 | [LIST "" ""b'DELETED/shared/group/Calendar/Personal Calendar/63344406@example.org'""] BAD: bUnexpected extra arguments to List See doubled Quotes, which causes this Error |
Comment Actions
quote is set now in cyruslib.py line 564
new
def decode ... return quote(ensure_str(text))
old
return text
as quotes are now generally set to the mailbox path, so we don't need the if clause