Outlook + Message Chaining

  • Thread starter Thread starter Anushya
  • Start date Start date
A

Anushya

Hi All

Need to Chain all the messages in my inbox in a form created in .NET.

'Chain' here i meant means constructing like a reply to reply chain in
a treeview.

Is there any way to access hidden headers and find this mail is the
reply of reply of some mail in inbox????

Anushya
 
Have you looked at the MailItem.ConversationTopic and
..ConversationIndex properties?
 
Hi Ken

Conversation topic is just by subject i think. If different conversation
have the same topic it will be listed under one conversation? It is
purely based on Subject. Am i right?

Then Conversation index is not maintained in mailitems? wot is the
problem?

Iam trying to access in .NET thru mailItem.ConversationTopic and
mailItem.ConversationIndex.

Anushya
 
If you use the DeveloperDex interface to post please paste some of the
preceding thread into your posts, that interface doesn't do that
automatically and it makes it very hard to follow a thread.

ConversationTopic is based on subject but knows to maintain the
correct setting even with RE: and other unrelated messages with the
same subject. ConversationIndex would hold the index of the item in
the conversation. Both are maintained for mail items.

I can't help with .NET coding for Outlook, I don't use it. It's slower
and more buggy and very difficult to use to support multiple versions
of Outlook. I just don't feel it's an appropriate technology at this
time for the type of Outlook coding I do.
 
Hi Ken & Dmitry & All

Pls take some time to read this mail
I am developing an addin for outlook thru C#.NET 1.1. I find many
limatations like

1)security issue - when i try to access mailItem, it gives an warning
message, some program is trying to access your mailItems. The user has
to press 'yes' to access mail items. I tried 'sendkeys' but microsoft
has cleverly restricted by not allowing to press 'yes' thru sendkeys.
Again u suggested Redemption object.

2)Cannot hook our window to replace Outlook inbox, since we want to give
an illusion that our "Form developed in C#" as Inbox to users - only
soln left is to develop in c++. Will redemption provide a solution to
this problem?

3)We maintain mails and if user wants to regenerate the deleted mail
back to inbox, we want to provide an option. But regenerating mail back
to the folder might send the mail back to 'cc' users too. Certain
properties are readonly like 'Sent on'? Now 'Dmitry' suggested a user to
use Extended MAPI/CDO 1.21/Redemption.

Extended MAPI is not supported in .NET.

My questions are
1)i want to know Is .NET not good to develop addin for outlook. As still
it is buggy and have not provided lot of functionalites as a c#
developer expects?

2)Is c++ the best to develop addin for outlook?

3)How about VC++?
(Or)
Can i develop outlook addin in c#.net 1.1 itself using Redemption
object. Will the redemption object provide everything i wish to do like
wot i said before??????? And many other issues that will come and not
known to me now as this is my first project developing an addin for
outlook.

PLS ANSWER MY QUESTIONS

And I am very tired of limations of .NET in developing an addin for
outlook. As we jump and get into the project, things are getting very
much worse. And we cannot reduce much of the functionalities just bcoz
of .NET. Pls let me know ur thoughts on this.

Thanks
Anushya



Thanks
Anushya
 
I'm the wrong person to ask that, I don't use DotNet for Outlook at
all. I find it too slow comparatively and there are all sorts of
problems if you are trying to support more than one version of
Outlook. I also don't like the whole COM/interop setup when trying to
use things like Redemption or CDO 1.21. So I do all my Outlook
development using VB6 and probably won't even look at the DotNet
languages for Outlook coding until Outlook 12 is in beta, since that
will probably be more compatible with DotNet languages. Of course
backwards compatibility will still be a problem in that case.
 
Ok Thanks Ken.
Do you face any problem in VB6 like security issue, bringing back the
mail to folder? Wot do you use for that? Is CDO/Extended MAPI
supported in VB? Will VB alone be a solution i.e, without using
redemption Object?
Anushya
 
The security prompts will fire on access of any secured property or
method in any language using the Outlook object model or CDO 1.21. In
fact CDO 1.21 is more restrictive than the Outlook object model and
when coding for Outlook 2003 Outlook VBA code is considered safe by
default while CDO code is never considered safe.

Extended MAPI avoids the security prompts but aside from the learning
curve can only be programmed using C++ or Delphi. No VB of any flavor,
no C#.

I use Redemption where I need to avoid the security prompts.
 
Ok Ken

Thanks for your reply. I have one more doubt.

I store all the mails in a database and I delete the mail from outlook.
In this case I have to construct the mail from the database and bring
back to inbox as like the original mail. Since there are readonly
headers that need to be set like sendername, receivedtime, etc.,.

I tried mailitem.post() method. But I couldnot set the headers. Also the
mailitem doesnot have the original look.

Using redemption, can I regenerate the mail as I said above?

Or any other way?

Anushya
The security prompts will fire on access of any secured >property or
method in any language using the Outlook object model or CDO 1.21. In
fact CDO 1.21 is more restrictive than the Outlook object model and
when coding for Outlook 2003 Outlook VBA code is considered safe by
default while CDO code is never considered safe.

Extended MAPI avoids the security prompts but aside from the learning
curve can only be programmed using C++ or Delphi. No VB of any flavor,
no C#.

I use Redemption where I need to avoid the security prompts.
 
I've never tried it but I'd think it would be impossible to completely
replicate the look and all the properties of a mailitem from data
stored in a database. The read-only time/date properties such as the
time the item was received would be set to the time/date the item was
re-created for one thing.
 
Back
Top