imap search for from: or to: returns nothing
Brought to you by:
mguessan
The search parameter is, e.g.,
elmo-imap416 uid search CHARSET us-ascii to lilypond-dev
There are messages with To: or CC: lilypond-dev@gnu.org in my mailbox.
The reply is
elmo-imap416 OK SEARCH completed
The same happens with From: searches:
The backend is Exchange 2013 OWA version 15.0.1178.4
Sorry, missed a line of reply:
` * SEARCH
The relevant part of a Wire log for a search To Peter is:
I managed to reproduce this issue: the issue is that to and cc fields are not searchable over EWS.
=> Implemented a partial workaround: search displayto / displaycc instead
Workaround available in subversion
Thanks -- To: and CC: now work, but From: still does not.
I think the 'real' fix will be to move to AQS, but that's a fairly major change.
In the meanwhile, here's a small patch that uses a similar workaorund to the DsplayFrom hack. It seems only to search on email address, not the display name fields
Last edit: Peter Chubb 2016-09-25
Patch merged. Looks like that's best we can do.
Even with AQS it looks like this is an Exchange limitation