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 but same I am trying with Outlook IMAP server ,[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 =[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?


    Monday, September 23, 2013 5:24 AM

All replies

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

    Dmitry Streblechenko (MVP)
    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 :

    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