1

Topic: Search function problem on 1.3.0

We found the iRedmail Pro cannot search email address on 1.3.0 but it can search display name.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Search function problem on 1.3.0

That's a bug, it can't contain '@' in search string.
Already fixed weeks ago, thanks for your feedback. smile

3

Re: Search function problem on 1.3.0

How can it be fix??  or any way to use @

4

Re: Search function problem on 1.3.0

Open file "libs/ldaplib/connUtils.py", find line 100, it should be same as below line:

        filter = """(&(|(objectClass=mailDomain)(objectClass=mailUser)(objectClass=mailList)(objectClass=mailAlias))(|(cn=*%s*)(mail=*%s*@*)(shadowAddress=*%s*)))""" % (s, s, s,)

Remove '*@' in "mail=*%s*@*", the final result is:

        filter = """(&(|(objectClass=mailDomain)(objectClass=mailUser)(objectClass=mailList)(objectClass=mailAlias))(|(cn=*%s*)(mail=*%s*)(shadowAddress=*%s*)))""" % (s, s, s,)

5

Re: Search function problem on 1.3.0

It works! thanks~~