Thanks Mickael it works for me. I put it on the command line when I launch davmail on ArchLinux: exec "$JAVA_HOME/bin/java" -cp $CP -Djdk.http.auth.tunneling.disabledSchemes="" 'davmail.DavGateway' "$@" On an another pc on windows, I have to modify C:\Program Files (x86)\Java\jre1.8.0_201\lib\net.properties and to comment out line 'jdk.http.auth.tunneling.disabledSchemes=Basic'. It works after that too.
Thanks Mickael it works for me. I put it on the command line when I launch davmail on ArchLinux: exec "$JAVA_HOME/bin/java" -cp $CP -Djdk.http.auth.tunneling.disabledSchemes="" 'davmail.DavGateway' "$@" On an another pc on windows, I have to modify C:\Program Files (x86)\Java\jre1.8.0_201\lib\net.properties and to comment line 'jdk.http.auth.tunneling.disabledSchemes=Basic'. It works after that too.
I do a network trace and it appears that first davmail sent a CONNECT to outlook.office365.com on port 443 without basic authentication, proxy reply with a 407 Proxy Authentication Required, then davmail sent the same CONNECT but with a Proxy-Authorization field and this time the reply was a 200 OK. But after some TLS v.1.2 exchange, a new CONNECT to login.microsoftonline.com on port 443 is sent by davmail without basic authentication, proxy reply with a 407 Proxy Authentication Required, then davmail...
java.lang.Throwable: Unknown error
Yes! It works for me too. Bravo Mickael et merci !
Same here: # uname -a Linux cls 4.18.16-arch1-1-ARCH #1 SMP PREEMPT Sat Oct 20 22:06:45 UTC 2018 x86_64 GNU/Linux gtk2 2.24.32-1 jdk8-openjdk 8.u192-1 java-openjfx 8.u172-2 But with proxy and adfs server, I get a blank window. Same result with openjdk or jdk8.
Thanks. As you say, I exclude /usr/share/java/davmail/lib/swt-4.6.3-gtk-linux-x86_64.jar from CLASSPATH and now I get a blank window (see attachment) in O365interactive mode with a proxy configured, jdk8-openjdk 8.u192-1 and java-openjfx 8.u172-2. The last url in davmail.log is: 2018-11-07 13:14:07,230 DEBUG [JavaFX Application Thread] davmail.exchange.auth.O365InteractiveAuthenticator - https://login.microsoftonline.com/common/oauth2/authorize?client_id=f...&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient&response_mode=query&resource=https://outlook.office365.com&login_hint=<mail...
No JFX ? I am on Arch Linux.
@Jac. What java versions are you using finally? And are you using a proxy ? What password was wrong? Sorry for all these questions.
Thanks. As you say, I exclude /usr/share/java/davmail/lib/swt-4.6.3-gtk-linux-x86_64.jar from CLASSPATH and now I get a blank window (see attachment) in O365interactive mode with a proxy configured, jdk8-openjdk 8.u192-1 and java-openjfx 8.u172-2.
Thanks. As you say, I exclude /usr/share/java/davmail/lib/swt-4.6.3-gtk-linux-x86_64.jar from CLASSPATH and now I get a blank window (see attachment) in O365modern mode with a proxy configured, jdk8-openjdk 8.u192-1 and java-openjfx 8.u172-2.
I update to the last trunk. And I am always testing with davmail.server=false. I launch davmail.sh with a CLASSPATH with only davmail jar but I get always a crash in interactive mode: $ /usr/share/java/davmail/davmail.sh ~/.davmail.properties (SWT:6699): GLib-GObject-WARNING **: 19:39:04.684: cannot register existing type 'GdkDisplayManager' (SWT:6699): GLib-CRITICAL **: 19:39:04.684: g_once_init_leave: assertion 'result != 0' failed (SWT:6699): GLib-GObject-CRITICAL **: 19:39:04.684: g_object_new_with_properties:...
I update to the last trunk. And I am always testing with davmail.server=false. I launch davmail with a single CLASSPATH but I get always a crash in interactive mode: $ CLASSPATH=/usr/share/java/davmail/davmail.jar /usr/bin/davmail ~/.davmail.properties (SWT:6699): GLib-GObject-WARNING **: 19:39:04.684: cannot register existing type 'GdkDisplayManager' (SWT:6699): GLib-CRITICAL **: 19:39:04.684: g_once_init_leave: assertion 'result != 0' failed (SWT:6699): GLib-GObject-CRITICAL **: 19:39:04.684: g_object_new_with_properties:...
I update to the last trunk. And I am always testing with davmail.server=false. I launch davmail with a single CLASSPATH but I get always a crash in interactive mode: $ CLASSPATH=/usr/share/java/davmail/davmail.jar /usr/bin/davmail (SWT:6699): GLib-GObject-WARNING **: 19:39:04.684: cannot register existing type 'GdkDisplayManager' (SWT:6699): GLib-CRITICAL **: 19:39:04.684: g_once_init_leave: assertion 'result != 0' failed (SWT:6699): GLib-GObject-CRITICAL **: 19:39:04.684: g_object_new_with_properties:...
With last trunk, with jdk8-openjdk 8.u192-1 and java-openjfx 8.u172-2 (Certificate type PKCS11 and the PKCS11 library installed and configured) : * O365Modern: always the same: 2018-11-05 11:34:47,335 DEBUG [main] davmail - OS Name: Linux Java version: 1.8.0_192 64 System tray supported Current Desktop: GNOME 2018-11-05 11:34:48,322 INFO [main] davmail - DavMail Gateway 4.9.0-trunk listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389 2018-11-05 11:34:48,668 DEBUG...
With last trunk, with jdk8-openjdk 8.u192-1 and java-openjfx 8.u172-2 (Certificate type PKCS11 and the PKCS11 library installed and configured) : * O365Modern: always the same: 2018-11-05 11:34:47,335 DEBUG [main] davmail - OS Name: Linux Java version: 1.8.0_192 64 System tray supported Current Desktop: GNOME 2018-11-05 11:34:48,322 INFO [main] davmail - DavMail Gateway 4.9.0-trunk listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389 2018-11-05 11:34:48,668 DEBUG...
With last trunk, with jdk8-openjdk 8.u192-1 and java-openjfx 8.u172-2 : * O365Modern: always the same: 2018-11-05 11:34:47,335 DEBUG [main] davmail - OS Name: Linux Java version: 1.8.0_192 64 System tray supported Current Desktop: GNOME 2018-11-05 11:34:48,322 INFO [main] davmail - DavMail Gateway 4.9.0-trunk listening on SMTP port 1025 POP port 1110 IMAP port 1143 CALDAV port 1080 LDAP port 1389 2018-11-05 11:34:48,668 DEBUG [CheckRelease] davmail.DavGateway - DavMail released version: 4.9.0-2652...
=> what happens if you try to access the above URL in a browser ? After a 302 to https://login.microsoftonline.com/common/oauth2/nativeclient?code=AQABAAIAAAC5un…, I get a blank page. But the first time I did it, I have registered DavMail Application => set WIRE log level to DEBUG to get actual page content I did it. Update: note that O365Modern does not currently support ADFS => this may be your case. Yes my company use ADFS. I see in wire log after multiple 302: "Object moved to .[\r][\n]" and...
It’s due to ADFS. Set WIRE log level to DEBUG. You will see after some 302 an url like https://adfs.mycompany/adfs/ls/?login_hint=mail address...
It’s due to ADFS. Set WIRE log level to DEBUG. You will see after some 302 an url like https://adfs.<mycompany>/adfs/ls/?login_hint=mail address...</mycompany>
It’s due to ADFS. Set WIRE log level to DEBUG. You will see after some 302 an url like https://adfs.<mycompany>/adfs/ls/?login_hint=<mail address="">...</mail></mycompany>
It’s due to ADFS. Set WIRE log level to DEBUG. You will see after some 302 an url like https://adfs.<mycompany>/adfs/ls/?login_hint=<mail address="">.</mail></mycompany>
I’m testing O365Modern with davmail 4.9.0-2766 on linux. In my company, davmail need to pass one http proxy to go on internet. So I configure http proxy in davmail config. But it doesn’t work with O365Modern: 2018-10-29 19:17:11,763 DEBUG [ImapConnection-41454] davmail.exchange.ExchangeSession - Test configuration status: 301 2018-10-29 19:17:11,773 DEBUG [ImapConnection-41454] davmail - > * OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE] IMAP4rev1 DavMail 4.9.0-2766-trunk server ready 2018-10-29 19:17:11,870...