diff --git a/offlineimap/folder/Base.py b/offlineimap/folder/Base.py index cf9379a..551a03a 100644 --- a/offlineimap/folder/Base.py +++ b/offlineimap/folder/Base.py @@ -104,7 +104,7 @@ class BaseFolder(object): def waitforthread(self): """Implements method that waits for thread to be usable. Should be implemented only for folders that suggest threads.""" - raise NotImplementedException + raise NotImplementedError # XXX: we may need someting like supports_quickstatus() to check # XXX: if user specifies 'quick' flag for folder that doesn't diff --git a/offlineimap/folder/Gmail.py b/offlineimap/folder/Gmail.py index 5e07aeb..f051938 100644 --- a/offlineimap/folder/Gmail.py +++ b/offlineimap/folder/Gmail.py @@ -203,7 +203,7 @@ class GmailFolder(IMAPFolder): result = self._store_to_imap(imapobj, uid_str, arg, labels_str) except imapobj.readonly: - self.ui.labelstoreadonly(self, uidlist, data) + self.ui.labelstoreadonly(self, uidlist, labels) return None finally: diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 3e8d94c..4801eef 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -715,7 +715,7 @@ class IMAPFolder(BaseFolder): result = self._store_to_imap(imapobj, str(uid), 'FLAGS', imaputil.flagsmaildir2imap(flags)) except imapobj.readonly: - self.ui.flagstoreadonly(self, [uid], data) + self.ui.flagstoreadonly(self, [uid], flags) return finally: diff --git a/offlineimap/folder/Maildir.py b/offlineimap/folder/Maildir.py index 0314f62..d067194 100644 --- a/offlineimap/folder/Maildir.py +++ b/offlineimap/folder/Maildir.py @@ -273,7 +273,7 @@ class MaildirFolder(BaseFolder): except OSError as e: if e.errno == e.EEXIST: if tries: - time.slep(0.23) + time.sleep(0.23) continue severity = OfflineImapError.ERROR.MESSAGE raise OfflineImapError("Unique filename %s already exists." % \ diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 2518058..676dc31 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -276,7 +276,7 @@ class IMAPServer: If any authentication method succeeds, routine should exit: warnings for failed methods are to be produced in the respective except blocks. - + """ # Authentication routines, hash keyed by method name @@ -489,7 +489,7 @@ class IMAPServer: reason = "Connection to host '%s:%d' for repository '%s' was "\ "refused. Make sure you have the right host and port "\ "configured and that you are actually able to access the "\ - "network." % (self.hostname, self.port, self.reposname) + "network." % (self.hostname, self.port, self.repos) raise OfflineImapError(reason, severity) # Could not acquire connection to the remote; # socket.error(last_error) raised