changeset 2790: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 e3564699409c
children f4d916351366
files hgext/patchbomb.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 = {