X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/0f92637c75d03080d43a9b8a95527660d61d67a5..27ac2b7eee3cc39e29c470cd5b5889e93091d9be:/stgit/commands/mail.py diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index 2fcaa5f..1ca6ba2 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -500,13 +500,12 @@ def func(parser, options, args): ref_id = msg_id if options.mbox: - print msg_string + out.stdout_raw(msg_string + '\n') else: - print 'Sending the cover message...', - sys.stdout.flush() + out.start('Sending the cover message') __send_message(smtpserver, from_addr, to_addr_list, msg_string, sleep, smtpuser, smtppassword) - print 'done' + out.done() # send the patches if options.template: @@ -529,10 +528,9 @@ def func(parser, options, args): ref_id = msg_id if options.mbox: - print msg_string + out.stdout_raw(msg_string + '\n') else: - print 'Sending patch "%s"...' % p, - sys.stdout.flush() + out.start('Sending patch "%s"' % p) __send_message(smtpserver, from_addr, to_addr_list, msg_string, sleep, smtpuser, smtppassword) - print 'done' + out.done()