summaryrefslogtreecommitdiff
path: root/b4/mbox.py
diff options
context:
space:
mode:
Diffstat (limited to 'b4/mbox.py')
-rw-r--r--b4/mbox.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/mbox.py b/b4/mbox.py
index 2ec74c9..a49624c 100644
--- a/b4/mbox.py
+++ b/b4/mbox.py
@@ -494,12 +494,14 @@ def main(cmdargs):
threadmbox = b4.get_pi_thread_by_msgid(msgid, savefile, useproject=cmdargs.useproject, nocache=cmdargs.nocache)
if threadmbox is None:
+ os.unlink(savefile)
return
else:
if os.path.exists(cmdargs.localmbox):
threadmbox = cmdargs.localmbox
else:
logger.critical('Mailbox %s does not exist', cmdargs.localmbox)
+ os.unlink(savefile)
sys.exit(1)
if threadmbox and cmdargs.checknewer: