By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,452 Members | 1,571 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,452 IT Pros & Developers. It's quick & easy.

.NET + REDEMPTION + OUTLOOK

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

Nov 15 '05 #2

P: n/a
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

Nov 15 '05 #3

P: n/a
Check if PR_RECEIVED_BY_xxx and PR_RCVD_REPRESENTING_xxx properties are
present. If they are, that's a message that you have received, if not,
that's a message you sent.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"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

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.