mguessan / davmail

DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange and Office 365 Gateway - Synced with main subversion repository at
http://davmail.sourceforge.net
GNU General Public License v2.0
582 stars 86 forks source link

"Cc:" not being properly responded #23

Open dammmn opened 5 years ago

dammmn commented 5 years ago

Thanks for great work with davmail !

While trying to sort out the situation within company which decided to pursue path of Office365 I hit a roadblock which I can not figure out. When sending SEARCH command I am not getting proper response. Here is an example:

telnet 0 5143
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 AUTH=LOGIN MOVE SPECIAL-USE] IMAP4rev1 DavMail 5.2.0-2961 server ready
o login user@domain.com password
o OK Authenticated
o select inbox
*  1779 EXISTS
* 2 RECENT
* OK [UIDVALIDITY 1]
* OK [UIDNEXT 19833]
* FLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded Junk)
* OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen $Forwarded Junk \*)]
o OK [READ-WRITE] select completed
o search 1:1779 CC "linux-users"
* SEARCH 800
* SEARCH 1080
* SEARCH 1276
o OK SEARCH completed
o search 1:1779 CC "linux-users@domain.com"
* SEARCH
o OK SEARCH completed

When I talk to Exchange web interface I am getting 3 results back. As you can see, issue is reproducible once '@' is in place. Also please note that this is not O365 interface, this is a in-house MS Exchange server.

Please let me know what additional details you will need.

mguessan commented 5 years ago

This is a known issue with EWS search limitations, searching collection attributes (including participants) does not work well.