Fix empty_outbox to actually work as intended when outbox is imported elsewhere
- Legacy-Id: 3702
This commit is contained in:
parent
7f8df2edf1
commit
ea4e79cacb
|
@ -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')):
|
||||
|
|
Loading…
Reference in a new issue