mailItem.Move creates 2 copies on Outlook 98?

B

Bingo

I first create and save a mail item in a shared folder.
Then I use the following code to move it to a local
folder. On Outlook 98, it creates 2 identical copies.
But it works just fine on Outlook 2000 and 2003. Why?

mailItem.Move(localFolder)
 
B

Bingo

The first mail item is created and saved in another
person's shared folder. Then it's moved to a local
folder. The move always create a copy in the local
Deleted Items folder. Why? Thanks.
 
S

Sue Mosher [MVP-Outlook]

Move is equivalent to copy and delete. The current user may not have Write
permission to the other user's Deleted Items folder (and I don't think older
versions of Outlook put deletions there anyway).

Why not create the item directly in the local folder?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Bingo

Sue,

The idea is to create a mail item object for an email in
another person's shared folder by Set newMailItem =
mailItem.Copy and then move it to the local folder. When
I call newMailItem.Save, it's saved in another person's
folder. That's why I use Move to move it to a local
folder. Please let me know how to create it directly in
a local folder. Thanks!
 
S

Sue Mosher [MVP-Outlook]

In general, to create an item directly in a non-default folder, use the Add
method on the target folder's Items collection.

Special case: If it's a message you want to create, use your own Drafts
folder as the target folder, save the item and then move it to the desired
folder.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Top