A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

MailItem object has no property for when a reply was sent



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 11th 09, 04:04 AM posted to microsoft.public.outlook.program_vba
mmoore
external usenet poster
 
Posts: 3
Default MailItem object has no property for when a reply was sent

After replying to a message, new text appears at the top of the original
message: "You replied on 12/8/2009 9:02 PM."

In VBA, how do I detect if a mail item has been replied to?

I've looked at the properties for the MailItem object.
One of the MailItem properties is ItemProperties. I iterated through it.
I can't find any property with this info.

My goal is to automate finding duplicate mail items.

Many items got duplicated by accident. I thought I'd just look for items
with the same subject, received time & a couple other attributes. Then delete
all but one copy. It should be easy....

Well, I delayed in cleaning up the duplicates. I've replied to some of them.
In Outlook, only the particular one I replied to shows "you replied..." at
the top. I want to keep the item that has this "you replied..." text and
delete all other copies.
  #2  
Old December 11th 09, 09:46 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default MailItem object has no property for when a reply was sent



Since OL07 you can use the ProeprtyAccessor for that, in older version use
CDO 1.21 or Redemption (www.dimastr.com).

Look for the property PR_LAST_VERB_EXECUTION_TIME, which has the PropTag
0x10820040, or in DASL: http://schemas.microsoft.com/mapi/proptag/0x10820040

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Thu, 10 Dec 2009 20:04:01 -0800 schrieb mmoo

After replying to a message, new text appears at the top of the original
message: "You replied on 12/8/2009 9:02 PM."

In VBA, how do I detect if a mail item has been replied to?

I've looked at the properties for the MailItem object.
One of the MailItem properties is ItemProperties. I iterated through it.
I can't find any property with this info.

My goal is to automate finding duplicate mail items.

Many items got duplicated by accident. I thought I'd just look for items
with the same subject, received time & a couple other attributes. Then

delete
all but one copy. It should be easy....

Well, I delayed in cleaning up the duplicates. I've replied to some of

them.
In Outlook, only the particular one I replied to shows "you replied..." at
the top. I want to keep the item that has this "you replied..." text and
delete all other copies.

  #3  
Old December 13th 09, 07:12 PM posted to microsoft.public.outlook.program_vba
mmoore
external usenet poster
 
Posts: 3
Default MailItem object has no property for when a reply was sent

Hi Michael,

Thanks for your answer & quick reply, but it didn't give me what I want.

Apparently, some other verb has been executed since the last reply. I tried
to use PR_LAST_VERB_EXECUTED to determine which verb, but it didn't work.

MSDN library gives
0x1082 PR_LAST_VERB_EXECUTION
0x1081 PR_LAST_VERB_EXECUTED

That's different than your value 0x10820040.
Your value works & the ones from MSDN do not.

I spent a couple hours looking though the MSDN libary for something like
PR_LAST_REPLY_TIME or PidTagLastReplyTime. I didn't find anything.

Can you find the property?

Thank you, Mike

--------------
"Michael Bauer [MVP - Outlook]" wrote:



Since OL07 you can use the ProeprtyAccessor for that, in older version use
CDO 1.21 or Redemption (www.dimastr.com).

Look for the property PR_LAST_VERB_EXECUTION_TIME, which has the PropTag
0x10820040, or in DASL: http://schemas.microsoft.com/mapi/proptag/0x10820040

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Thu, 10 Dec 2009 20:04:01 -0800 schrieb mmoo

After replying to a message, new text appears at the top of the original
message: "You replied on 12/8/2009 9:02 PM."

In VBA, how do I detect if a mail item has been replied to?

I've looked at the properties for the MailItem object.
One of the MailItem properties is ItemProperties. I iterated through it.
I can't find any property with this info.

My goal is to automate finding duplicate mail items.

Many items got duplicated by accident. I thought I'd just look for items
with the same subject, received time & a couple other attributes. Then

delete
all but one copy. It should be easy....

Well, I delayed in cleaning up the duplicates. I've replied to some of

them.
In Outlook, only the particular one I replied to shows "you replied..." at
the top. I want to keep the item that has this "you replied..." text and
delete all other copies.

.

  #4  
Old December 14th 09, 12:16 AM posted to microsoft.public.outlook.program_vba
mmoore
external usenet poster
 
Posts: 3
Default MailItem object has no property for when a reply was sent

Hi Michael,

I finally understand. I installed OutlookSpy & saw that the last verb was
reply to sender. Then I noticed that the time shown in the property isn't
entirely different. It's different by exactly 8 hours. My time zone is 8
hours off GMT.

Problem solved. Thanks for your help.

Thank you, Mike

-----------------
"Michael Bauer [MVP - Outlook]" wrote:



Since OL07 you can use the ProeprtyAccessor for that, in older version use
CDO 1.21 or Redemption (www.dimastr.com).

Look for the property PR_LAST_VERB_EXECUTION_TIME, which has the PropTag
0x10820040, or in DASL: http://schemas.microsoft.com/mapi/proptag/0x10820040

--
Best regards
Michael Bauer - MVP Outlook

: Outlook Categories? Category Manager Is Your Tool
: VBOffice Reporter for Data Analysis & Reporting
: http://www.vboffice.net/product.html?pub=6&lang=en


Am Thu, 10 Dec 2009 20:04:01 -0800 schrieb mmoo

After replying to a message, new text appears at the top of the original
message: "You replied on 12/8/2009 9:02 PM."

In VBA, how do I detect if a mail item has been replied to?

I've looked at the properties for the MailItem object.
One of the MailItem properties is ItemProperties. I iterated through it.
I can't find any property with this info.

My goal is to automate finding duplicate mail items.

Many items got duplicated by accident. I thought I'd just look for items
with the same subject, received time & a couple other attributes. Then

delete
all but one copy. It should be easy....

Well, I delayed in cleaning up the duplicates. I've replied to some of

them.
In Outlook, only the particular one I replied to shows "you replied..." at
the top. I want to keep the item that has this "you replied..." text and
delete all other copies.

.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the recommendet way to read/write a user defined Field (Named Property) in the MailItem Object using VSTO? Michael Schmitz Outlook - Using Forms 5 April 22nd 09 07:27 PM
What is the recommendet way to read/write a user defined Field (Named Property) in the MailItem Object using VSTO? Michael Schmitz Add-ins for Outlook 1 April 22nd 09 06:26 AM
Why does the Address property of the Recipient object in the Outlook object model look funny? Omatase Outlook - General Queries 2 July 13th 07 09:09 PM
Regarding MailItem.Body Property Bharathi Outlook and VBA 3 June 22nd 07 02:47 PM
MailItem To property and display name Olivier Langlois Outlook and VBA 1 September 11th 06 05:10 PM


All times are GMT +1. The time now is 12:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.