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 2790 58a679745b38
parent 2789 e3564699409c
child 2791 f4d916351366
mailbomb: add a comment and remove the bcc in a more pythonic way
hgext/patchbomb.py
--- a/hgext/patchbomb.py	Fri Aug 04 14:36:03 2006 -0700
+++ b/hgext/patchbomb.py	Sun Aug 06 16:03:02 2006 +0200
@@ -288,7 +288,8 @@
             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 = {