markup: view chmod email file after copy
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user