Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for email in mbox:
- path = "./" + str(usr['id'])
- try:
- if not os.path.exists(path):
- os.mkdir(path)
- file_name = path + '/' + str(uuid.uuid1()) + '.eml'
- with open(file_name, "w") as fd:
- fd.write(email[1])
- fd.close()
- except Exception, err:
- loggin.warning(err)
Add Comment
Please, Sign In to add comment