Package Details: davmail 6.2.2-1

Git Clone URL: https://aur.archlinux.org/davmail.git (read-only, click to copy)
Package Base: davmail
Description: a POP/IMAP/SMTP/Caldav/LDAP gateway for the exchange service
Upstream URL: http://davmail.sourceforge.net/
Licenses: GPL
Submitter: None
Maintainer: hyness
Last Packager: hyness
Votes: 125
Popularity: 1.86
First Submitted: 2010-01-20 17:20 (UTC)
Last Updated: 2024-03-31 22:16 (UTC)

Dependencies (4)

Required by (0)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 .. 9 Next › Last »

rekman commented on 2022-11-15 07:17 (UTC)

For me the O365Interactive method does not work on Java 19. In fact, I had to downgrade to Java 8, and specifically jdk8 (Oracle's Java) to get the embedded JavaFX browser to show up. That old version requires the in-tree swt, or it raises.

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: java.lang.UnsupportedClassVersionError: org/eclipse/swt/internal/gtk/OS has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Probably these need upstream fixes but this project is not very actively maintained.

Thaodan commented on 2022-10-28 12:33 (UTC) (edited on 2022-10-28 12:35 (UTC) by Thaodan)

Hey,

I fixed some issues with the package: - Build from source as generally advised

  • This removes the in tree swt and replaces it with external variant

  • Since this is recent Java should work out of the box. For example I've used Java 19 during my tests.

  • Don't run as root, refactor systemd units to use systemd-sysusers for the system instance,

  • Create the initial log with systemd-tmpfiles. All my changes on these have been qued upstream:

  • https://github.com/mguessan/davmail/pull/247

  • Some general packaging improvements in the packaging

https://gitlab.com/Thaodans-ArchLinux-Packages/davmail/-/commit/950ce24533bda1a39924f2d74814e6e570959e9a

Thaodan commented on 2022-10-27 05:06 (UTC)

The update icon cache call is redundant now since the pacman hook already does it.

Thaodan commented on 2022-10-27 04:30 (UTC)

Could you change the system use to run as a user too?

kyak commented on 2021-07-08 18:35 (UTC)

I've updated to v6.0.0 fine, but had to make few adjustments:

  • Set davmail.logFilePath=/var/log/davmail.log
  • Create and chown to davmail the /var/log/davmail.log file

Otherwise, I had errors like davmail - Unable to set log file path

dessert commented on 2021-07-08 08:18 (UTC)

The update to v6.0.0 broke it for me, I get DavMailAuthenticationException and could only downgrade to v5.5.1. The repo warns “HttpClient 4 migration in progress: Trunk will not be as stable as usual”.

mike2208 commented on 2020-12-27 12:53 (UTC)

When using the davmail system service, the process would fail on reboot with the message:

Started DavMail for maastricht.
davmail[401]: 2020-12-27 09:41:01,147 ERROR [main] davmail  - Unable to bind server socket for SMTP on port 1025: port not allowed or in use by another process
davmail[401]: Unable to bind server socket for POP on port 1110: port not allowed or in use by another process
davmail[401]: Unable to bind server socket for IMAP on port 1143: port not allowed or in use by another process
davmail[401]: Unable to bind server socket for CALDAV on port 1080: port not allowed or in use by another process
davmail[401]: Unable to bind server socket for LDAP on port 1389: port not allowed or in use by another process

Davmail binds the ports properly when manually restart the service. I managed to resolve the issue by overriding davmail@.system_service with

[Unit]
After=network.target
Requires=network-online.target

The altered davmail@.system_service service file is now

[Unit]
Description=DavMail for %i
After=network.target
Requires=network-online.target

[Service]
User=davmail
ExecStart=/usr/bin/davmail /etc/davmail/%i.properties
Restart=on-failure
PrivateTmp=yes
ProtectSystem=full
ProtectHome=yes

[Install]
WantedBy=multi-user.target
DefaultInstance=davmail

hwkiller commented on 2020-12-18 20:34 (UTC)

Along the same lines of @hamelg, I now use

#!/bin/sh
JAVA_OPTS="-Xmx512M -Dsun.net.inetaddr.ttl=60 -Djdk.gtk.version=2.2"
JFX_CLASSPATH=/usr/lib/jvm/default-runtime/lib/javafx-base.jar:/usr/lib/jvm/default-runtime/lib/javafx-controls.jar:/usr/lib/jvm/default-runtime/lib/javafx-fxml.jar:/usr/lib/jvm/default-runtime/lib/javafx-graphics.jar:/usr/lib/jvm/default-runtime/lib/javafx-media.jar:/usr/lib/jvm/default-runtime/lib/javafx-swing.jar:/usr/lib/jvm/default-runtime/lib/javafx-web.jar
DAVMAIL_HOME=/usr/share/java/davmail
#exec "$JAVA_HOME/bin/java" -jar "$DAVMAIL_HOME/davmail.jar" "$@"
SWT_GTK3=0 exec java $JAVA_OPTS -cp $DAVMAIL_HOME/davmail.jar:${JFX_CLASSPATH}:$DAVMAIL_HOME/lib/* davmail.DavGateway "$@"

As my script. I just edited the davmail.sh with that.

I was having problems with javafx and SWT. The above fixed SWT for me. I also had to roll back to openjdk8 for javafx prompts to work. With jdk14, it refuses to use o365interactive, because ""Unable to load JavaFX (OpenJFX)""

hamelg commented on 2020-11-26 21:39 (UTC)

The icon in system tray is ugly. At startup, davmail logs this message : INFO [main] davmail - SWT not available, using native system tray support

To enable SWT, I run davmail like that : SWT_GTK3=0 java -Xmx512M -Dsun.net.inetaddr.ttl=60 -Djdk.gtk.version=2.2 -cp /usr/share/java/davmail/davmail.jar:/usr/share/java/swt.jar:/usr/share/java/davmail/lib/* davmail.DavGateway

SanskritFritz commented on 2020-09-10 07:39 (UTC)

in your properties file: davmail.server=true