mirror of https://github.com/M66B/FairEmail.git
Use temp file
This commit is contained in:
parent
b7be494e6c
commit
58bff541bd
|
@ -674,7 +674,7 @@ class Core {
|
|||
if (EntityFolder.DRAFTS.equals(folder.type) || EntityFolder.DRAFTS.equals(target.type)) {
|
||||
Log.i(folder.name + " move from " + folder.type + " to " + target.type);
|
||||
|
||||
File file = message.getRawFile(context);
|
||||
File file = File.createTempFile("draft", "." + message.id, context.getCacheDir());
|
||||
try (OutputStream os = new FileOutputStream(file)) {
|
||||
imessage.writeTo(os);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue