Hi,

Thanks for the report, I was afraid of corner cases.

The relevant parts are:

NOT working:

> 2018-03-02 14:16:39,034 DEBUG [ImapConnection-36518] 
> davmail.exchange.ExchangeSession  - Form based authentication detected
> 2018-03-02 14:16:39,095 DEBUG [ImapConnection-36518] 
> davmail.exchange.ExchangeSession  - Authentication form not found at 
> https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0,
>  trying default url
> 2018-03-02 14:16:39,096 DEBUG [ImapConnection-36518] davmail  - 
> executeFollowRedirects(/owa/auth/owaauth.dll)

working;

> 2018-03-02 14:14:43,386 DEBUG [ImapConnection-36476] 
> davmail.exchange.ExchangeSession  - Form based authentication detected
> 2018-03-02 14:14:43,428 DEBUG [ImapConnection-36476] 
> davmail.exchange.ExchangeSession  - Detected script based logon, redirect to 
> form at 
> https://mail.example.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.example.com%2fowa%2f
> 2018-03-02 14:14:43,429 DEBUG [ImapConnection-36476] davmail  - 
> executeFollowRedirects(https://mail.example.com/owa/auth/logon.aspx?replaceCurrent=1&url=https%3a%2f%2fmail.example.com%2fowa%2f)

It seems that the newer libhtmlcleaner fails to provide davmail with
the js of your exchange login page. Can you provide the html of
https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0
?

Or, the difference of the output of the following command for both
version of libhtmlcleaner:
$ java -jar /usr/share/java/htmlcleaner.jar
"src=https://mail.example.com/owa/auth/logon.aspx?url=https%3a%2f%2fmail.example.com%2fowa%2f&reason=0";

Thanks,

Alex

Reply via email to