none
Redemption RDOMail Outlook.MailItem.MarkAsTask() equivalent RRS feed

  • Question

  • Hi guys,

    Anyone knows what is the equivalent way to flag a mail item, like MarkAsTask() does, using Redemption's RDOMail class?

    for example,

    Outlook.MailItem item;
    //...
    item.MarkAsTask(Outlook.OlMarkInterval.olMarkNoDate);

    and

    RDOMail item;
    //...
    item.FlagStatus = (int)Outlook.OlFlagStatus.olFlagMarked;

    is not producing the same result, and there isn't any MarkAsTask() method in RDOMail class to call.

    Same with MailItem.ClearTaskFlag().

    Outlook version 2010 and above.

    Thanks


    Jason Orphanidis

    Sunday, February 21, 2016 11:32 AM

Answers

  • RDOMail.MarkAsTask is planned for the next version of Redemption (5.11). Send an email to the support contact at the Redemption website - I might have something available in a week or two. Or you can set all the necessary properties yourself using RDOMail.Fields. You can see which properties are set in OutlookSpy: click IMessage button (windows 1). Click Item button (window 2), go to the Functions tab, select Call. Click IMessage button again (window 3). In window 1, go to the Compare tab. From window 3, drag PR_ENTRYID property to the Compare tab of the first window:


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

    Sunday, February 21, 2016 2:52 PM

All replies

  • RDOMail.MarkAsTask is planned for the next version of Redemption (5.11). Send an email to the support contact at the Redemption website - I might have something available in a week or two. Or you can set all the necessary properties yourself using RDOMail.Fields. You can see which properties are set in OutlookSpy: click IMessage button (windows 1). Click Item button (window 2), go to the Functions tab, select Call. Click IMessage button again (window 3). In window 1, go to the Compare tab. From window 3, drag PR_ENTRYID property to the Compare tab of the first window:


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

    Sunday, February 21, 2016 2:52 PM
  • Thanks Dmitry,

    Do I have to update calculated properties as well?

    And also, how can I distinguish these from the rest, in OutlookSpy?

    Thank you


    Jason Orphanidis

    Monday, February 22, 2016 7:41 PM
  • Which calculated properties? The screenshot above shows the properties that were changed by a call to MarkAsTask.


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

    Monday, February 22, 2016 8:42 PM
  • I'm wondering if updating one of these properties might cause an update to the others.

    So you say that all the properties appearing in IMessage window can and must be updated individually?


    Jason Orphanidis

    Monday, February 22, 2016 9:41 PM
  • Sure, last modified time, PR_CHANGE_KEY, etc. will be updated as well.

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

    Tuesday, February 23, 2016 1:52 AM
  • Thanks, I followed your instructions and it seems the update is consistent.


    Jason Orphanidis

    Tuesday, February 23, 2016 11:12 AM
  • I added RDOMail.MarkAsTask method (to be available in the next version of Redemption). Send me an email if you want a pre-release version.

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

    Thursday, February 25, 2016 6:13 AM