Update JMCComponent constructor call

darcs-hash:20070927173457-86b55-2677f4223efc3537c114b56d6d72d8fa1245f525.gz
This commit is contained in:
David Rousselie
2007-09-27 19:34:57 +02:00
parent a02d36d653
commit 53f0ae67f1
2 changed files with 8 additions and 2 deletions

View File

@@ -17,6 +17,10 @@ db_url: %(type)s://%(host)s%(name)s
[component] [component]
pid_file: /var/run/jabber/jmc.pid pid_file: /var/run/jabber/jmc.pid
#motd: "Message of the day"
welcome_message: "Welcome to Jabber Mail Component"
# a comma separated list of JIDs
admins: admin@localhost
[jmc] [jmc]
mail_default_encoding: iso-8859-1 mail_default_encoding: iso-8859-1

View File

@@ -57,10 +57,12 @@ class JMCRunner(JCLRunner):
secret=self.secret, secret=self.secret,
server=self.server, server=self.server,
port=self.port, port=self.port,
lang=Lang(self.language)) lang=Lang(self.language),
config=self.config,
config_file=self.config_file)
MailAccount.default_encoding = self.mail_default_encoding MailAccount.default_encoding = self.mail_default_encoding
component.check_interval = self.check_interval component.check_interval = self.check_interval
component.disco_identity.set_category("gateway") component.disco_identity.set_category("gateway")
component.disco_identity.set_type("smtp") component.disco_identity.set_type("smtp")
component.run() return component.run()
self._run(run_func) self._run(run_func)