logging.warn("ATTENTION: If you continue, the files\n {}\n {} will be overwritten, if they exist. Make sure that do not have any pending unsent messages!".format(mbox_path,mbox_msf_path))
logging.warn("ATTENTION: If you continue, the files")
logging.warn(" {}")
logging.warn(" {}")
logging.warn("will be overwritten, if they exist. Make sure that do not have any pending unsent messages!".format(mbox_path,mbox_msf_path))
if(input("Do you want to continue (enter 'yes')? ").lower()!="yes"):
logging.debug("Exiting program because user did not confirm to continue")
...
...
@@ -36,21 +37,21 @@ def main(
mbox.lock()
try:
msg=mailbox.mboxMessage()
msg.set_unixfrom('author Sat Feb 7 01:05:34 2009')