comparison hgext/patchbomb.py @ 2785:58a679745b38

mailbomb: add a comment and remove the bcc in a more pythonic way
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 06 Aug 2006 16:03:02 +0200
parents 0bcecf7d45b1
children 20b95aef3fe0
comparison
equal deleted inserted replaced
2784:e3564699409c 2785:58a679745b38
286 fp.write(m.as_string(0)) 286 fp.write(m.as_string(0))
287 fp.write('\n\n') 287 fp.write('\n\n')
288 fp.close() 288 fp.close()
289 else: 289 else:
290 ui.status('Sending ', m['Subject'], ' ...\n') 290 ui.status('Sending ', m['Subject'], ' ...\n')
291 m.__delitem__('bcc') 291 # Exim does not remove the Bcc field
292 del m['Bcc']
292 mail.sendmail(sender, to + bcc + cc, m.as_string(0)) 293 mail.sendmail(sender, to + bcc + cc, m.as_string(0))
293 294
294 cmdtable = { 295 cmdtable = {
295 'email': 296 'email':
296 (patchbomb, 297 (patchbomb,