folder: IMAP: fix wrong comment

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2016-06-28 19:15:07 +02:00
parent 1086d0dd69
commit f0096391fc

View File

@ -294,7 +294,7 @@ class IMAPFolder(BaseFolder):
# in [0][1]. # in [0][1].
data = data[0][1].replace(CRLF, "\n") data = data[0][1].replace(CRLF, "\n")
if len(data)>200: if len(data) > 200:
dbg_output = "%s...%s"% (str(data)[:150], str(data)[-50:]) dbg_output = "%s...%s"% (str(data)[:150], str(data)[-50:])
else: else:
dbg_output = data dbg_output = data
@ -688,7 +688,6 @@ class IMAPFolder(BaseFolder):
"""Fetches data from IMAP server. """Fetches data from IMAP server.
Arguments: Arguments:
- imapobj: IMAPlib object
- uids: message UIDS - uids: message UIDS
- retry_num: number of retries to make - retry_num: number of retries to make
@ -700,7 +699,7 @@ class IMAPFolder(BaseFolder):
fails_left = retry_num # Retry on dropped connection. fails_left = retry_num # Retry on dropped connection.
while fails_left: while fails_left:
try: try:
imapobj.select(self.getfullname(), readonly = True) imapobj.select(self.getfullname(), readonly=True)
res_type, data = imapobj.uid('fetch', uids, query) res_type, data = imapobj.uid('fetch', uids, query)
break break
except imapobj.abort as e: except imapobj.abort as e: