Fix empty_outbox to actually work as intended when outbox is imported elsewhere

- Legacy-Id: 3702
This commit is contained in:
Ole Laursen 2011-11-24 16:36:19 +00:00
parent 7f8df2edf1
commit ea4e79cacb

View file

@ -22,12 +22,11 @@ import copy
# ... send some mail ...
# ... inspect ietf.utils.mail.outbox ...
# ... call ietf.utils.mail.empty_outbox() ...
test_mode=False
outbox=[]
test_mode = False
outbox = []
def empty_outbox():
global outbox
outbox = []
outbox[:] = []
def add_headers(msg):
if not(msg.has_key('Message-ID')):