markup: view chmod email file after copy

This commit is contained in:
2019-10-20 23:35:40 -07:00
parent 8da277cbde
commit 8507288944

View File

@ -36,6 +36,7 @@ def submit(request):
_, tmpfile = mkstemp(suffix='.eml', prefix='markup_', dir=None, text=False) _, tmpfile = mkstemp(suffix='.eml', prefix='markup_', dir=None, text=False)
log.debug('copy message file from {} to {}'.format(msg_file.temporary_file_path(), tmpfile)) log.debug('copy message file from {} to {}'.format(msg_file.temporary_file_path(), tmpfile))
copyfile(msg_file.temporary_file_path(), tmpfile) copyfile(msg_file.temporary_file_path(), tmpfile)
os.chmod(tmpfile, 0o666)
process_message.delay(tmpfile) process_message.delay(tmpfile)