Open Treeston opened 2 years ago
Sorry to learn that this is not working anymore. Yes, it was using an older library of SWT. More critical than platform dependency is the issue of version dependency. I cannot provide a solution for this anymore, although I have the same problem now in an JavaFX project. There I will do it differently: Those native things will be handled in helper-tools (platform-OS executables). For the drop of outlook items another process will be started and accepting the drop from outlook. Vice versa there is another platform OS tool which uses an input stream to create a new outlook mail with attachment. These things are really native code and Java is not really suitable for the OLE stuff. It's better to use C#. It's similar to Java and quite easy to implement these things there. From Java you can than control the windows native app.
Sorry that I don't have a better proposal or a quick solution. Hope this brings you further.
I leave this code here to show what I summarized from several sources and give you further hints potentially helping you to find own solutions.
Outlooktransfer PST to Office 365 Migration tool. The application migrates all data from the outlook migration tool free https://www.outlooktransfer.com/ file to Exchange Online primary or archive mailbox in a few steps, preserving all folder hierarchy and email properties. It also provides a message filtering option to access specific emails to export PST file data.
I am unable to compile this library with the current SWT version (4.23). Apparently it relies on Eclipse internals which no longer exist.