none
How to get IMAPITable for Sent Folder RRS feed

  • Question

  • Hi, 

     I have MapiSession pointer & IMsgtsore. Can I get "IMAPITable(Sent Folder)" from any of these?

    It would be great if somebody give me sample code.

    Thanks

    Santhi


    Friday, June 28, 2013 7:28 PM

Answers

  • tab.propIndex will contain the PR_INSTANCE_KEY property.

    Use IMAPITable:: FindRow(RES_PROPERTY | RELOP_EQ | PR_INSTANCE_KEY), IMAPITable::SetColumns(PR_ENTRYID), IMAPITable::QueryRows(1).


    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 Monday, July 1, 2013 9:20 PM
    Monday, July 1, 2013 4:56 PM

All replies

  • 1. Read the PR_IPM_SENTMAIL_ENTRYID property from IMsgStore

    2. Use it to call IMsgStore::OpenEntry

    3. Call IMAPIFolder::GetContentsTable


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

    Friday, June 28, 2013 8:14 PM
  • Thanks a lot I could Create the Advice the fnevTableModified.

    In OnNotify call,

    I m using,

    _TABLE_NOTIFICATION *p = &lpNotifications[i].info.tab;
    if(p->ulTableEvent == TABLE_ROW_ADDED)
    {
     LPMAPITABLE lpTable = (IMAPITable *) pSink->lpMAPIObject;      

    //Process Message

    }  

    Is there way to get the IMessage. For other notification NewMail & ObjectCreated, I could get the Imessage from EntryIDs. How can I get the Imessage from Table_NOTIFICATION Object.

    Thanks

    Santhi

    Monday, July 1, 2013 4:26 PM
  • tab.propIndex will contain the PR_INSTANCE_KEY property.

    Use IMAPITable:: FindRow(RES_PROPERTY | RELOP_EQ | PR_INSTANCE_KEY), IMAPITable::SetColumns(PR_ENTRYID), IMAPITable::QueryRows(1).


    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 Monday, July 1, 2013 9:20 PM
    Monday, July 1, 2013 4:56 PM