none
Regarding TABLE_ROW_ADDED on sent Folder(Not Notified first time). RRS feed

  • Question

  • Hi,

     I set the "fnevTableModified" on Sent Items Folder(PR_IPM_SENTMAIL_ENTRYID).

    I expect every time I sent a mail, I should be Notified (OnNotify). But I dont see the TABLE_ROW_ADDED first time, I sent the mail. 

    _TABLE_NOTIFICATION *p = &lpNotifications[i].info.tab;
    if(p->ulTableEvent == TABLE_ROW_ADDED)

    {

    }

    First time (after outlook launch) when I sent a mail I see only "TABLE_CHANGED". And from 2nd Sent Mail I get notification correct, TABLE_ROW_ADDED. I was trying with 2010 on XP.

    Can anybody tell, what might go wrong first time.

    Thanks

    Santhi

    Monday, July 1, 2013 9:20 PM

Answers

  • Do you see the same behavior in OutlookSpy if you click IMAPIFolder button and look at the log at the bottom of the GetContentsTable tab?

    Or do you only see that event on startup? It sure sounds like your cached store synchronizes the changes with the server. If there are too many modifications (the exact definition of that is up to the store provider), it only fires the TABLE_CHANGED notifications, and you have no choice but to assume that the whole table has changed.


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

    Monday, July 1, 2013 9:42 PM
  • Does it work correctly if you you switch to the Sent Items folder first prior to sending a message?


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

    Tuesday, July 2, 2013 6:49 PM
  • I think I made mistake in creating Advice Sink & and in Advice. I was calling the Advice in my OpenMsgStore, where few times the SentMail Entry ID was null. I corrected it. It works fine now.
    Wednesday, July 3, 2013 7:13 PM

All replies

  • Do you see the same behavior in OutlookSpy if you click IMAPIFolder button and look at the log at the bottom of the GetContentsTable tab?

    Or do you only see that event on startup? It sure sounds like your cached store synchronizes the changes with the server. If there are too many modifications (the exact definition of that is up to the store provider), it only fires the TABLE_CHANGED notifications, and you have no choice but to assume that the whole table has changed.


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

    Monday, July 1, 2013 9:42 PM
  • OutlookSpy behaves as expected(correct).

    I see this only when I sent mail first time after I start Outlook. I am trying it in NON-CACHE mode.

    Tuesday, July 2, 2013 1:07 AM
  • Does it work correctly if you you switch to the Sent Items folder first prior to sending a message?


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

    Tuesday, July 2, 2013 6:49 PM
  • I think I made mistake in creating Advice Sink & and in Advice. I was calling the Advice in my OpenMsgStore, where few times the SentMail Entry ID was null. I corrected it. It works fine now.
    Wednesday, July 3, 2013 7:13 PM