new option 'backends' to set a restricted list of backends to load
This commit is contained in:
parent
5be1d36beb
commit
110a975735
1 changed files with 7 additions and 1 deletions
|
|
@ -42,11 +42,17 @@ class Monboob(ConsoleApplication):
|
|||
'domain': 'weboob.example.org',
|
||||
'recipient': 'weboob@example.org',
|
||||
'smtp': 'localhost',
|
||||
'backends': '',
|
||||
'html': 0}
|
||||
|
||||
def main(self, argv):
|
||||
self.load_config()
|
||||
self.load_backends(ICapMessages, storage=self.create_storage())
|
||||
|
||||
names = None
|
||||
if self.config.get('backends'):
|
||||
names = self.config.get('backends').split()
|
||||
|
||||
self.load_backends(ICapMessages, names=names, storage=self.create_storage())
|
||||
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue