none
IMAPITable Restrict call & PR_MESSAGE_FLAGS RRS feed

  • Question

  • Hi,

     I am trying to query for the messages by SetColums.

    When I call the Restrict on Inbox, will I be getting the mail which were unread?

    Does BMR_EQZ means (MSGFLAG_READ | MSGFLAG_SUBMIT) None of these 2 flags were set?

    sr[1].rt = RES_BITMASK;

    sr[1].res.resBitMask.relBMR = BMR_EQZ;

    sr[1].res.resBitMask.ulPropTag = PR_MESSAGE_FLAGS;

    sr[1].res.resBitMask.ulMask = MSGFLAG_READ | MSGFLAG_SUBMIT ;

    Will I be getting the mails with PR_MESSAGE_FLAGS that are "NOT MSGFLAG_READ  AND NOT MSGFLAG_SUBMIT "?

    Thanks

    Santhi

    Thursday, October 10, 2013 8:32 PM

Answers

  • That is correct. You will get messages where neither flag is set.

    Why do you need MSGFLAG_SUBMIT? Did you mean MSGFLAG_UNSENT?


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

    • Marked as answer by Santhi R Thursday, October 10, 2013 8:49 PM
    Thursday, October 10, 2013 8:46 PM

All replies

  • That is correct. You will get messages where neither flag is set.

    Why do you need MSGFLAG_SUBMIT? Did you mean MSGFLAG_UNSENT?


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

    • Marked as answer by Santhi R Thursday, October 10, 2013 8:49 PM
    Thursday, October 10, 2013 8:46 PM
  • Thanks a lot for your immediate reply  Dmitry. I used "MSGFLAG_UNSENT" just an example, to have multiple flags  to "ulMask".

    Thanks again so much, you have been so much helpful for all my queries.

    Thanks

    Santhi

    Thursday, October 10, 2013 8:49 PM