none
How to search message from MessageIDTerm for Outlook IMAP profile? RRS feed

  • Question

  • I am trying to get IMAP message from message ID, this case is successful for IMAP server for Gmail i.e imap.gmail.com but same I am trying with Outlook IMAP server imap-mail.outlook.com ,  inbox.search(searArr[0]) is returning null.

    My code block to get message is -

    Message[] msgs = null;
     MessageIDTerm[] searArr = new MessageIDTerm[]{new MessageIDTerm((String) strMessageID)};
     if (inbox != null && inbox.isOpen()) {
            msgs = inbox.search(searArr[0]);
      }
      for (int i = 0; i < msgs.length; i++) {
            System.out.println("Message: " + msgs[i]);
      }

    I am using JavaMail-1.4.5 version. Does Outlook not support search message by  MessageIDTerm?? 

    Does Outlook require any other settings?

    Thanks

    Monday, September 23, 2013 5:24 AM

All replies

  • This forum is for questions related to the Outlook application, not questions related to accessing outlook.com accounts through IMAP4.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Monday, September 23, 2013 6:31 AM
  • Please check this forum : http://social.technet.microsoft.com/Forums/office/en-US/63a28eef-b098-419c-8ff6-ddbafcef32f1/how-to-get-message-from-messageidterm-for-outlook-imap-profile

    When I post my question on that forum then I got replied that "Please post this question to the Office Developer Forum"

    Monday, September 23, 2013 7:16 AM