473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

.NET + REDEMPTION + OUTLOOK

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
3 2096
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ronny Sigo | last post by:
Hello all, I am trying to make a program which sends emails without intervenience of the user. It works fine except the Outlook always displays two warnings with each email it is going t send :...
7
by: Anushya | last post by:
Hi How to get the id of a name in contact items in outlook. How to do it thru redemption in .net?? i tried the code below. but it shows the error. pls have a look at the code ...
2
by: Anushya | last post by:
Hi I ma trying to get mailid of the 'from' address in .NET. When i try to access mailitem i could only see 'senderName' available both in Outlook mailitem and Redemption. No senderid. Tried...
2
by: Anushya | last post by:
Hi I have a problem when i loop thru recipients collection of Redemption.SafeMailItem in .net. In this code for(int intK=0;intK<rMailItem.Recipients.Count;intK++) {...
0
by: Anushya | last post by:
Hi Sorry for disturbing again and again. i need all the from, to, cc in terms of id and not Name. But when i try to access from/to/CC of mailitem(Both thru Outlook and Redemption), i get...
4
by: John | last post by:
Hi Does anyone have a vb.net example of how to use redemption to send mail through outlook? Many Thanks Regards
8
by: John | last post by:
Hi I am using the latest redemption. I am using the below code in vb.net to send mail in html format. The problem is that text does not get sent as html and html tags appear as they are in the...
2
by: Pieter | last post by:
Hi, I'm using a thight integration with Outlook 2003 (with an Exchange server) in my VB.NET (2005) application. Until now I'm using the Outlook Object Model, but it appears to be very slow, and...
4
by: omrivm | last post by:
Hi, I have a problem with Outlook Redemption, every time I'm trying to create a new RDOAddressBook: Redemption.RDOAddressBook AB = new RDOAddressBook(); I get: "Retrieving the COM class factory...
2
by: edw | last post by:
I want to convert rfc822 (.eml) files to MAPI (.msg) files. I do not need to log in to Outlook to retrieve the messages, since the messages have all been downloaded from the exchange server and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.