Mercurial > libervia-backend
diff src/plugins/plugin_misc_imap.py @ 587:952322b1d490
Remove trailing whitespaces.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:34 +0100 |
parents | 89f9a50ce7bf |
children | beaf6bec2fcd |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_imap.py Fri Jan 18 17:55:27 2013 +0100 +++ b/src/plugins/plugin_misc_imap.py Fri Jan 18 17:55:34 2013 +0100 @@ -51,7 +51,7 @@ class IMAP_server(): #TODO: connect profile on mailbox request, once password is accepted - + params = """ <params> <general> @@ -65,13 +65,13 @@ def __init__(self, host): info(_("Plugin Imap Server initialization")) self.host = host - + #parameters host.memory.importParams(self.params) port = int(self.host.memory.getParamA("IMAP Port", "Mail Server")) info(_("Launching IMAP server on port %d"), port) - + self.server_factory = ImapServerFactory(self.host) reactor.listenTCP(port, self.server_factory) @@ -84,7 +84,7 @@ self.flags=flags self.mess_fp=mess_fp self.message=Parser().parse(mess_fp) - + def getUID(self): """Retrieve the unique identifier associated with this message. """ @@ -221,7 +221,7 @@ """Called before this mailbox is deleted, permanently. """ debug('destroy') - + def requestStatus(self, names): """Return status information about this mailbox. @@ -340,7 +340,7 @@ setF(mess_id, new_flags) ret[mess_id] = tuple(new_flags) return ret - + if uid: messages.last = self.mailbox.getMaxUid() messages.getnext = self.mailbox.getNextExistingUid @@ -348,7 +348,7 @@ for listener in self.listeners: listener.flagsChanged(ret) return ret - + else: messages.last = self.getMessageCount() ret = updateFlags(self.mailbox.getFlags,self.mailbox.setFlags) @@ -412,7 +412,7 @@ credentialInterfaces = (credentials.IUsernamePassword, credentials.IUsernameHashedPassword) - + def __init__(self, host): self.host = host