add class attribute to disable REPL behaviour

This commit is contained in:
Romain Bignon 2010-10-08 10:51:42 +02:00
commit 0ebf8d579d
3 changed files with 16 additions and 4 deletions

View file

@ -85,6 +85,7 @@ class Monboob(ReplApplication):
'smtp': 'localhost',
'html': 0}
CAPS = ICapMessages
DISABLE_REPL = True
def add_application_options(self, group):
group.add_option('-S', '--smtpd', help='run a fake smtpd server and set the port')
@ -98,7 +99,7 @@ class Monboob(ReplApplication):
def main(self, argv):
self.load_config()
return self.onecmd(' '.join(argv[1:]))
return ReplApplication.main(self, argv)
def get_email_address_ident(self, msg, header):
s = msg.get(header)