Open sekkuar opened 7 years ago
After looking at the code I realised you can probably fix this by overriding the java.io.tmpdir
system property:
File newFile = new File(System.getProperty("java.io.tmpdir"),
file.getName() + TEMP_FILE_EXTENSION);
Try setting this property to a directory on the same mount point as the original mbox file. If you can't override this system property we can probably support a specific temp directory just for mstor.
Well, I'm not longer part of that project, and the official solution was to make our own build removing the exception throwing.
However, I do believe it is a good thing to have the API work regardless of system properties, as other parts of the application may rely on it.
When mailbox file cannot be moved to the /tmp/ directory, saving the mailbox file fails
As discussed on the forums https://sourceforge.net/p/mstor/discussion/390660/thread/662967b0/