comparison src/plugins/plugin_misc_smtp.py @ 261:0ecd9c33fa3a

IMAP & SMTP Port parameters are now merged in "Mail Server" category
author Goffi <goffi@goffi.org>
date Tue, 18 Jan 2011 15:22:58 +0100
parents c8406fe5e81e
children 68cdaf6d78e3
comparison
equal deleted inserted replaced
260:c8406fe5e81e 261:0ecd9c33fa3a
51 class SMTP_server(): 51 class SMTP_server():
52 52
53 params = """ 53 params = """
54 <params> 54 <params>
55 <general> 55 <general>
56 <category name="SMTP Server"> 56 <category name="Mail Server">
57 <param name="Port" value="10125" type="string" /> 57 <param name="SMTP Port" value="10125" type="string" />
58 </category> 58 </category>
59 </general> 59 </general>
60 </params> 60 </params>
61 """ 61 """
62 62
65 self.host = host 65 self.host = host
66 66
67 #parameters 67 #parameters
68 host.memory.importParams(self.params) 68 host.memory.importParams(self.params)
69 69
70 port = int(self.host.memory.getParamA("Port", "SMTP Server")) 70 port = int(self.host.memory.getParamA("SMTP Port", "Mail Server"))
71 info(_("Launching SMTP server on port %d"), port) 71 info(_("Launching SMTP server on port %d"), port)
72 72
73 self.server_factory = SmtpServerFactory(self.host) 73 self.server_factory = SmtpServerFactory(self.host)
74 reactor.listenTCP(port, self.server_factory) 74 reactor.listenTCP(port, self.server_factory)
75 75