Joseph Benken - 2021-09-14

I have been observing the exact same problem. It happens when the LDAP query has "sn" equal to nothing (empty string). DavMail makes an invalid request to EWS that has the "UnresolvedEntry" element left empty.

In Thunderbird, this problem happens when composing an email when I start typing someone's first name in the To field the press CTRL+space to try to autocomplete the address. However, if I instead type the first name then a space and then part of the last name then press CTRL+space then the error does not happen. The LDAP request made by Thunderbird has "sn" set to some non-empty string in that case.

I believe DavMail needs to be fixed so that it does not make requests to EWS with empty "UnresolvedEntry" element.