mailbomb: add a comment and remove the bcc in a more pythonic way
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sun, 06 Aug 2006 16:03:02 +0200
changeset 2785 58a679745b38
parent 2784 e3564699409c
child 2786 f4d916351366
mailbomb: add a comment and remove the bcc in a more pythonic way
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 = {