# HG changeset patch # User Benoit Boissinot # Date 1154872982 -7200 # Node ID 58a679745b38df67dc1bb6559828e6927bdd6946 # Parent e3564699409cf0925ef8ff40a8f99338eab6034d mailbomb: add a comment and remove the bcc in a more pythonic way diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py --- a/hgext/patchbomb.py +++ b/hgext/patchbomb.py @@ -288,7 +288,8 @@ def patchbomb(ui, repo, *revs, **opts): fp.close() else: ui.status('Sending ', m['Subject'], ' ...\n') - m.__delitem__('bcc') + # Exim does not remove the Bcc field + del m['Bcc'] mail.sendmail(sender, to + bcc + cc, m.as_string(0)) cmdtable = {