Programmatically moving items from personal folders to public fold

K

kfrost

I need to create a program that will take in multiple users and take and
query all the folders they have created in their exchange store. Move all
these messages over to public folder directories.

The public folder directories with be usernameinbox with sub folders
sentItems and another folder called contacts.

Trying to figure out the best way to do this I tried using WebDav. There
isn't a copy method that copies items from one store to another. I figured
out a way to create new items and copy existing items which works. However,
the problem is the create date on the items are when ever you run the
program. I need to preserve the create date but this is a readonly attribute.

At any rate, now I'm trying to figure out another way to do this. I've
looked at the Outlook object model but there doesn't appear to be any methods
that allows you to get a list of all folders to where you can sort through
them and copy the ones you want. All I can find is the getDefaultFolder
function. There is a struct that defines values for inbox, sent items,
contacts, etc but users create a lot of their own folders at the root level
so I need to be able to query those and I can't figure out a way.

Maybe there is something I'm missing thus this posting. If there isn't
anything I would appreciate any advice so I can stop wasting time going down
dead end roads.

Any help would greatly be appreciated and thanks in advance.

kris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top