I tried your patched version and it fixes the problem for me.
I also tried building the package myself. It failed at first attempt
with the following error:
[javac]
/usr/src/davmail-4.8.3.2554/src/java/davmail/exchange/ExchangeSession.java:510:
error: cannot find symbol
[javac] List contents = ((TagNode)
script).getAllChildren();
[javac] ^
[javac] symbol: method getAllChildren()
[javac] location: class TagNode
To get it working, I needed to upgrade the htmlcleaner dependency in the
pom.xml to 2.21. Then my own built version worked as well.
So, please go ahead and incorporate this change into the next version.
Thanks for your support! If you need something else, just let me know.
Fabian