Case-folding/normalization of mail addresses in getmails api endpoint
With LDAP, mail address matching was case-insensitive and spaces were normalized (among other things). The current implementation of api.getmails fails to emulate that (depending on the database engine).