"Replied To" icon to mark pop account

  • Thread starter Thread starter jimbo
  • Start date Start date
J

jimbo

Can I programmatically change the 'replied to' icon?

I download my pop account into OUTLOOK but I also sometimes use gmail's
webmail to get my messages which causes confusion. I can't tell which
messages in OUTLOOK that I've already replied to in gmail.

For example:

I may access my gmail account online and there would be 40 unread
messages present and I only have time to reply to 13 of them. 4 hours
later I return home and download my pop messages into OUTLOOK. I get 40
unread messages and 13 sent messages (gmail also allows you to download
the 'sent' message), I can't tell which are the 13 I replied to earlier
online.

Would there be a way that I can mark the messages as 'replied to' in my
OUTLOOK inbox?
 
You will need to set the PR_LAST_VERB_EXECUTED and
PR_LAST_VERB_EXECUTION_TIME properties using Extended MAPI/CDO
1.21/Redemption.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
thanks Dmitry,
I'm a beginner at scripting and my skills limited at this stage
but I'm willing to learn if you can give me a link to any tutorials
or whatever so that I can impliment this.
 
Which API do you have in mind? You are limited to CDO 1.21 or Redemption if
you want to do this from a script. Extended MAPI is not available for the
scripting languages, and the Outlook Object Model does not allow accessing
these properties.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
whichever is easiest or whichever you suggest. I know you're sort of
famous for Redemption. Should I download that or?
 
Assuming that MailItem is the Outlook message that you want to modify, your
can use Redemption as follows.

PR_ICON_INDEX = &H10800003
set sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
sItem.Fields(PR_ICON_INDEX) = 261 'set the "replied" icon
MailItem.Subject = MailItem.Subject 'to make Outlook think it's been
modified
MailItem.Save

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top