Changeset View
Changeset View
Standalone View
Standalone View
pykolab/imap/cyrus.py
Context not available. | |||||
import pykolab | import pykolab | ||||
from pykolab import utils | |||||
from pykolab import constants | from pykolab import constants | ||||
from pykolab.imap import IMAP | from pykolab.imap import IMAP | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
Context not available. | |||||
_mailfolder['domain']) | _mailfolder['domain']) | ||||
) | ) | ||||
# TODO: Murder capabilities may have been suppressed using Cyrus IMAP | # TODO: Murder capabilities may have been suppressed using Cyrus IMAP | ||||
# configuration. | # configuration. | ||||
if not self.murder: | if not self.murder: | ||||
Context not available. | |||||
if ' ' in verify_folder_search: | if ' ' in verify_folder_search: | ||||
folders = self.lm( | folders = self.lm( | ||||
'"%s"' % self.folder_utf7(verify_folder_search) | '%s' % utils.ensure_str(self.folder_utf7(verify_folder_search)) | ||||
sicherha: In the original code, double quotes are added around the string; your change removes these… | |||||
ghaneAuthorUnsubmitted Done Inline Actions[LIST "" ""b'DELETED/shared/group/Calendar/Personal Calendar/63344406@example.org'""] BAD: bUnexpected extra arguments to List See doubled Quotes, which causes this Error ghane: [LIST "" ""b'DELETED/shared/group/Calendar/Personal Calendar/63344406@example.org'""] BAD… | |||||
) | ) | ||||
else: | else: | ||||
folders = self.lm(self.folder_utf7(verify_folder_search)) | folders = self.lm(utils.ensure_str(self.folder_utf7(verify_folder_search))) | ||||
# NOTE: Case also covered is valid hexadecimal folders; won't be | # NOTE: Case also covered is valid hexadecimal folders; won't be | ||||
# the actual check as intended, but doesn't give you anyone else's | # the actual check as intended, but doesn't give you anyone else's | ||||
Context not available. |
In the original code, double quotes are added around the string; your change removes these quotes. Is there a particular reason for this?