Menu

#626 imap search for from: or to: returns nothing

v4.7.2
closed-fixed
nobody
None
5
2016-12-24
2016-09-19
Peter Chubb
No

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

Discussion

  • Peter Chubb

    Peter Chubb - 2016-09-20

    Sorry, missed a line of reply:
    ` * SEARCH

     
  • Peter Chubb

    Peter Chubb - 2016-09-21

    The relevant part of a Wire log for a search To Peter is:

      <m:Restriction>
             <t:Contains ContainmentMode="Substring"  
                    ContainmentComparison="IgnoreCase">  
            <t:ExtendedFieldURI DistinguishedPropertySetId="InternetHeaders"
                  PropertyName="to" PropertyType="String"/>
        <t:Constant Value="peter"/>
        </t:Contains>
    </m:Restriction>
    
     
  • Mickael Guessant

    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

     
  • Peter Chubb

    Peter Chubb - 2016-09-25

    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.

     
  • Peter Chubb

    Peter Chubb - 2016-09-25

    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
  • Mickael Guessant

    Patch merged. Looks like that's best we can do.
    Even with AQS it looks like this is an Exchange limitation

     
  • Mickael Guessant

    • status: open --> closed-fixed
     

Log in to post a comment.