But won't the folder name be the perfect way for you to determine which
folder contains the message? If you call objMessage.Parent.Name, that gives
you direct access to the parent folder.
Or, you can declare two MAPIFolder object variables beforehand, and set each
of them to NameSpace.GetDefaultFolder(parameter) using olFolderInbox and
olFolderSentItems as the parameters. Then compare their EntryID property
values with that of the parent folder of the current e-mail message; the one
that matches tells you which folder is holding the message.
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
"Anushya" <v_*******@hotmail.com> wrote in message
news:80**************************@posting.google.c om...
Hi All
developing an addin using redemption in .net. Can anybody say how to
find whether the mail item i am accessing is sent item or inbox mail
item.
The mail items can be in anyfolder(pls dont ask me to check for the
folder name).
Thanks
Anushya