mail icon indicating copy to clipboard operation
mail copied to clipboard

mail app not searching receipents from ldap when sending email

Open cableTh0rn opened this issue 2 years ago • 6 comments

Steps to reproduce

1.open mail app, select new message, From field is auto populated, To field is empty 2.type a few letters in To field 3.mail app should search system address book (accounts, nextcloud users) 4.mail app is not recommending receipents from ldap email addreses

Expected behavior

Mail app should recommend receipents groups and email addresses from LDAP)

Actual behavior

Mail app cannot find email addreses from LDAP / AD

Mail app version

3.4.2

Mailserver or service

No response

Operating system

Ubuntu 22

PHP engine version

PHP 8.0

Web server

Nginx

Database

MySQL

Additional info

When typing in To field mail app queries LDAP but searches for only objectclass=group, it sould query person too. Below is a line from debug log when typing "tosearch" chars in the To field of New Message dialog.

Calling LDAP function ldap_search with parameters [{},"ou=some ou,dc=domain,dc=tld","(&(&(|(objectclass=group)))(|(cn=tosearch@)(cn=tosearch@*)))",["cn","dn"],0,0,-1,0,[{"oid":"1.2.840.113556.1.4.319","value":{"size":500,"cookie":""},"iscritical":false}]]","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 OPR/103.0.0.0","version":"27.1.1.0","data":{"app":"user_ldap"}

image

cableTh0rn avatar Oct 19 '23 09:10 cableTh0rn

https://github.com/nextcloud/mail/issues/1215

ChristophWurst avatar Oct 19 '23 09:10 ChristophWurst

Sorry my fault, but please make "Allow autocompletition when entering full name or email address" not default :)

cableTh0rn avatar Oct 19 '23 10:10 cableTh0rn

Sorry my fault, but please make "Allow autocompletition when entering full name or email address" not default :)

Hello, I am facing the same problem than you. It seems that you could solve it by unchecking the "Allow autocompletition when entering full name or email address", but actually it doesn't work for me. When checked, the autocompletion is made only with a full name, when unchecked the autocompletion doesn't work at all. Can you confirm you suceeded in solving this problem ?

Dazeilad avatar Jun 28 '24 13:06 Dazeilad

Sorry my fault, but please make "Allow autocompletition when entering full name or email address" not default :)

Hello, I am facing the same problem than you. It seems that you could solve it by unchecking the "Allow autocompletition when entering full name or email address", but actually it doesn't work for me. When checked, the autocompletion is made only with a full name, when unchecked the autocompletion doesn't work at all. Can you confirm you suceeded in solving this problem ?

This seems to be broken again !!!

cableTh0rn avatar Jul 09 '24 14:07 cableTh0rn

Hello, sorry to reopen this issue but this seems to rise again.

Nextcloud 28.0.1 Mail App 3.7.2

Steps to reproduce

1.open mail app, select new message, From field is auto populated, To field is empty 2.type a few letters in To field 3.mail app should search system address book (accounts, nextcloud users) 4.mail app is not recommending receipents from ldap email addreses

If "Allow autocompletion when entering the full name or email address (ignoring missing phonebook match and being in the same group)" is selected after typing exact email address contact can be selected but if the option is not selected auto complete does not work at all.

image

cableTh0rn avatar Jul 10 '24 13:07 cableTh0rn

Again, Mail App autocomplete won't populate contacts from LDAP (system address book)

cableTh0rn avatar Aug 06 '24 08:08 cableTh0rn