diff 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
line wrap: on
line diff
--- a/src/plugins/plugin_misc_smtp.py	Tue Jan 18 03:59:59 2011 +0100
+++ b/src/plugins/plugin_misc_smtp.py	Tue Jan 18 15:22:58 2011 +0100
@@ -53,8 +53,8 @@
     params = """
     <params>
     <general>
-    <category name="SMTP Server">
-        <param name="Port" value="10125" type="string" />
+    <category name="Mail Server">
+        <param name="SMTP Port" value="10125" type="string" />
     </category>
     </general>
     </params>
@@ -67,7 +67,7 @@
         #parameters
         host.memory.importParams(self.params)
 
-        port = int(self.host.memory.getParamA("Port", "SMTP Server"))
+        port = int(self.host.memory.getParamA("SMTP Port", "Mail Server"))
         info(_("Launching SMTP server on port %d"), port)
         
         self.server_factory = SmtpServerFactory(self.host)