473,396 Members | 2,111 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,396 software developers and data experts.

.NET + Redemption + Addin

Hi All
developing an addins for outlook in .net. Consider the following
scenario

if i reply to a mail 'x' in my inbox.

1)Is there any way to identify a mailitem 'y' in sent item, is reply
of the mail 'x' in my inbox.

2)And also can i find the mail item in 'sent item' is reply/forward to
'x' in my inbox.

Anushya
Nov 15 '05 #1
1 2543
You need to use PR_CONVERSATION_INDEX property.
From MSDN:

Tracking Conversations
Conversation tracking is collecting responses to a message. Clients should
set two properties that aid in tracking conversations:
PR_CONVERSATION_TOPIC
PR_CONVERSATION_INDEX
PR_CONVERSATION_TOPIC is the normalized subject of the message, the subject
without the prefix strings. Set this property to the value of the message's
PR_NORMALIZED_SUBJECT property.
PR_CONVERSATION_INDEX indicates the position of the message within a
particular conversation. It is a client's reponsibility to set
PR_CONVERSATION_INDEX for each outgoing message, whether it is a new
message, a forwarded message, or a reply. Clients can set this property
manually or call ScCreateConversationIndex, a utility function provided by
MAPI.
ScCreateConversationIndex generates the value of a conversation index for
any outgoing message. ScCreateConversationIndex implements the index as a
header block that is 22 bytes in length, followed by zero or more child
blocks each 5 bytes in length.
The header block is composed of 22 bytes, divided into three parts:
One reserved byte. Its value is 1.
Five bytes for the current system time converted to the FILETIME structure
format.
Sixteen bytes holding a GUID, or globally unique identifier.
Each child block is composed of 5 bytes, divided as follows:
One bit containing a code representing the difference between the current
time and the time stored in the header block. This bit will be 0 if the
difference is less than .02 second and greater than two years and 1 if the
difference is less than one second and greater than 56 years.
Thirty one bits containing the difference between the current time and the
time in the header block expressed in FILETIME units.This part of the child
block is produced using one of two strategies, depending on the value of the
first bit. If this bit is zero, ScCreateConversationIndex discards the high
15 bits and the low 18 bits. If this bit is one, the function discards the
high 10 bits and the low 23 bits.
Four bits containing a random number generated by calling the Win32 function
GetTickCount.
Four bits containing a sequence count that is taken from part of the random
number.
If you choose to set the conversation indexes of messages manually, consider
the following suggestions:
Keep differences in the respondents' time zones transparent; use UTC times
rather than local time.
Indent each conversation group by the same amount.
Sort responses to the same message date.
Separate threads started at different times that happen to share the same
topic.
To implement a categorized sort so that messages are grouped by topic, sort
by PR_CONVERSATION_TOPIC first and then by PR_CONVERSATION_INDEX. To present
the results of the sort, set the PR_DEPTH property to 0 for messages with a
conversation index that is 22 bytes in length. Then, for every 5-byte
increment in the length, increment the value of the PR_DEPTH property by
one.
The PR_ORIGINAL group of properties can also be used for conversation
tracking. Set these properties to link reply or forwarded messages to the
original message. All of the PR_ORIGINAL properties are optional. If you do
not explicitly set, for example, PR_ORIGINAL_AUTHOR_ENTRYID, the message
store provider can use the default value, or the value of the
PR_SENDER_ENTRYID property. Likewise, if you do not set
PR_ORIGINAL_AUTHOR_NAME or PR_ORIGINAL_SUBMIT_TIME, these properties can
default to the values of the PR_SENDER_NAME and PR_CLIENT_SUBMIT_TIME
properties, respectively.

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 addins for outlook in .net. Consider the following
scenario

if i reply to a mail 'x' in my inbox.

1)Is there any way to identify a mailitem 'y' in sent item, is reply
of the mail 'x' in my inbox.

2)And also can i find the mail item in 'sent item' is reply/forward to
'x' in my inbox.

Anushya

Nov 15 '05 #2

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 :...
1
by: Jon | last post by:
I want to send an email using the Outlook Redemption addin. 1. I ran their standard install.exe file. Does this register the dll on the system also or is that a seperate thing I have to do? 2....
3
by: Anushya | last post by:
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...
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...
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
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...
7
by: Joseph Geretz | last post by:
I've been working on an Addin for Outlook in C#. It hasn't been long now, just a couple of days. Suddenly though, running my project in Debug launches Outlook as specified, but no breakpoints...
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...
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...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.