diff -r d48e1b5f8265 -r 1cf908c00479 hgext/patchbomb.py --- a/hgext/patchbomb.py Tue Jun 12 14:39:36 2007 -0700 +++ b/hgext/patchbomb.py Tue Jun 12 14:44:47 2007 -0700 @@ -223,7 +223,9 @@ pass os.rmdir(tmpdir) - if not opts['test']: + really_sending = not (opts['test'] or opts['mbox']) + + if really_sending: mail.validateconfig(ui) if not (revs or opts.get('rev') or opts.get('outgoing')): @@ -351,7 +353,7 @@ ui.write('\n') - if not opts['test'] and not opts['mbox']: + if really_sending: mailer = mail.connect(ui) parent = None