Mercurial > libervia-backend
comparison src/plugins/plugin_misc_imap.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 | 62b17854254e |
comparison
equal
deleted
inserted
replaced
260:c8406fe5e81e | 261:0ecd9c33fa3a |
---|---|
52 class IMAP_server(): | 52 class IMAP_server(): |
53 | 53 |
54 params = """ | 54 params = """ |
55 <params> | 55 <params> |
56 <general> | 56 <general> |
57 <category name="IMAP Server"> | 57 <category name="Mail Server"> |
58 <param name="Port" value="10143" type="string" /> | 58 <param name="IMAP Port" value="10143" type="string" /> |
59 </category> | 59 </category> |
60 </general> | 60 </general> |
61 </params> | 61 </params> |
62 """ | 62 """ |
63 | 63 |
66 self.host = host | 66 self.host = host |
67 | 67 |
68 #parameters | 68 #parameters |
69 host.memory.importParams(self.params) | 69 host.memory.importParams(self.params) |
70 | 70 |
71 port = int(self.host.memory.getParamA("Port", "IMAP Server")) | 71 port = int(self.host.memory.getParamA("IMAP Port", "Mail Server")) |
72 info(_("Launching IMAP server on port %d"), port) | 72 info(_("Launching IMAP server on port %d"), port) |
73 | 73 |
74 self.server_factory = ImapServerFactory(self.host) | 74 self.server_factory = ImapServerFactory(self.host) |
75 reactor.listenTCP(port, self.server_factory) | 75 reactor.listenTCP(port, self.server_factory) |
76 | 76 |