Mercurial > libervia-backend
diff src/plugins/plugin_misc_smtp.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_smtp.py Fri Jan 18 17:55:27 2013 +0100 +++ b/src/plugins/plugin_misc_smtp.py Fri Jan 18 17:55:34 2013 +0100 @@ -50,7 +50,7 @@ } class SMTP_server(): - + params = """ <params> <general> @@ -64,13 +64,13 @@ def __init__(self, host): info(_("Plugin SMTP Server initialization")) self.host = host - + #parameters host.memory.importParams(self.params) port = int(self.host.memory.getParamA("SMTP Port", "Mail Server")) info(_("Launching SMTP server on port %d"), port) - + self.server_factory = SmtpServerFactory(self.host) reactor.listenTCP(port, self.server_factory) @@ -81,7 +81,7 @@ self.host=host self.profile=profile self.message=[] - + def lineReceived(self, line): """handle another line""" self.message.append(line) @@ -167,7 +167,7 @@ credentialInterfaces = (credentials.IUsernamePassword, credentials.IUsernameHashedPassword) - + def __init__(self, host): self.host = host @@ -203,7 +203,7 @@ def clientConnectionLost(self, connector, reason): debug (_("SMTP server connection lost (reason: %s)"), reason) smtp.SMTPFactory.clientConnectionLost(self, connector, reason) - + def buildProtocol(self, addr): p = smtp.SMTPFactory.buildProtocol(self, addr) # add the challengers from imap4, more secure and complicated challengers are available