The davmail shell script is inflexible. It doesn't allow partial or complete overriding of JAVA_OPTS or CLASSPATH-like stuff, for example. This causes individual users to have to modify or replace the script and then have problems when it comes time to upgrade.
Suggested solution: use ${FOO:=bar} or one of the related forms to allow overrides, and have prepared variables to allow even easier usage patterns (extra arguments to the java command line, for example for UI scaling) without having to adjust or repeat the "core" java arguments.
Expect a not well tested pull request soon.