No, the parent folder will be the Inbox, Drafts or Sent Items.
There is no hard link between the message being replied to and the reply.
1. You can watch the selection change event in all Explorer objects and set
up event sinks on all selected items. You will then receive the
MailItem.Reply event
whenever the user hits Reply button. That will be the original message and
MailItem.Parent on that message will give you the fodler.
2. Retrieve the value of the ConversationIndex property, delete the last 5
bytes (10 chars since OOM returns it as a hex string), then try to find a
message with that conversation index, hoping that the selected folder is
where the old message lives. Or search all teh relevant folders.
3. You can assume that whenever Inspectors.NewInspector even fires,
Application.ActiveExplorer.Selection or
Application.ActiveInspector.CurrentItem will give you the original item(s).
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
>> What exactly do you mean by "from which folder the mail was sent"? When
>> you
[quoted text clipped - 14 lines]
> folder should be that folder, instead of "inbox", is it correct?
> thanks.
kf9150@gmail.com - 31 Mar 2007 09:39 GMT
On Mar 30, 10:33 am, "Dmitry Streblechenko" <dmi...@dimastr.com>
wrote:
> No, the parent folder will be the Inbox, Drafts or Sent Items.
> There is no hard link between the message being replied to and the reply.
Thanks again Dmitry. i'll try your suggested methods, probably the
first one and the third one, and see if i can work something out.