How to create a hidden message in a folder

  • Thread starter Thread starter Davide
  • Start date Start date
D

Davide

Hi there,

the application that I am working with requires a hidden message (of
any class) to be inside a folder (corporate archive) on the root of the
mailbox so that it can identify the specific folder and then archive
its contents.

I understand that I need to create this hidden message in the
Associated Contents Table but i dont know how.

Can someone please point me the correct way? is it done on the outlook
client? on the exchange server?

I appreciate any help

Regards

Davide
 
You cannot create a hidden message manually. You must use code. Perhaps the easiest method is to use CDO 1.21. See http://support.microsoft.com/?kbid=266734 for sample code.

Why doesn't the application handle this chore for you, I wonder?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
A better place for this question would be one of the Outlook programming
groups.

You can't do what you want using the Outlook object model. You would have to
use CDO 1.21 (optional installation for Outlook 2000 and later) or Extended
MAPI (C++ or Delphi code only) or Redemption (3rd party library at
www.dimastr.com/redemption). Then you can access the HiddenItems collection
of a folder and add an item to that.

You could also create it using server side code, so you need to be more
specific as to versions of Outlook and Exchange, where the code would run,
what language and platform you are using.
 
Thank You Sue, thank you Ken.

I like the idea of doing it at server level. My customer uses Exchange
2003 and Outlook 2003. The ideal solution would be that I could
centrally create a visible folder at the root level of each user
mailbox containing a hidden message (dont matter the class) so that
when i run an archive task from my application, the task would find the
folder with this hidden class message and then archive all its
contents.

Could you tell me which tools I need on the exchange server side to
achieve this?

Thanks a lot of your time and help.

Davide
 
Well, first of all you need to use server side CDO 1.21, that would be the
easiest. The reference Sue gave would work for server side CDO. That CDO is
installed when the ESM is installed. Then of course you need to use a logon
that has access and permissions for every mailbox you want to access, either
an admin logon or each user's logon.
 
Back
Top