Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I copy messages from one mailbox to another one?

21 views
Skip to first unread message

alexeyostrovskiy

unread,
Dec 30, 2009, 12:44:01 PM12/30/09
to
I need to copy messages from one mailbox to another one without making any changes to them, i.e. all MAPI properties of message in the destination mailbox must be exactly the same as in the source mailbox.

I haven't find appropriate solution yet and will be thankful for any reply.


Submitted via EggHeadCafe - Software Developer Portal of Choice
Setting Option Strict On by Default in VB.NET
http://www.eggheadcafe.com/tutorials/aspnet/c67e9bfe-171d-41d6-8e88-e21bafc73cd0/setting-option-strict-on.aspx

Dmitry Streblechenko

unread,
Dec 30, 2009, 1:03:55 PM12/30/09
to
Between two Exchange mailboxes? IMAPIFolder::CopyMessages shoudl work just
fine.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
<Alexey Ostrovskiy> wrote in message news:200912301...@tut.by...

alexeyostrovskiy

unread,
Dec 31, 2009, 6:47:55 AM12/31/09
to
Thank you for your reply. I really need to copy messages from one Exchange mailbox to others.

Sorry, but I forgot to mention, that I'm using VB.NET in Visual Studio 2008. Is it possible to use IMAPIFolder::CopyMessages in .NET?

I had used Exchange Impersonation to get full access to mailboxes. But EmailMessage.Copy(folderId) method didn't work for me. I suppose that this method can only copy messages between folders of one mailbox. Does EWS provide any way to accomplish copying messages between mailboxes?

Dmitry Streblechenko wrote:

Between two Exchange mailboxes?
30-Dec-09

Between two Exchange mailboxes? IMAPIFolder::CopyMessages shoudl work just
fine.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice

Web Service vs Web Workspace Part I
http://www.eggheadcafe.com/tutorials/aspnet/db8e1051-8670-4f43-91db-3ca180f5bfdb/web-service-vs-web-worksp.aspx

Dmitry Streblechenko

unread,
Dec 31, 2009, 11:09:26 AM12/31/09
to
Since you posted the message in a MAPI newsgroup, I assumed that is what you
are using. What API are you using? OOM?
How and where is your code running?

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-

<Alexey Ostrovskiy> wrote in message news:200912316...@tut.by...

alexeyostrovskiy

unread,
Jan 4, 2010, 5:05:01 AM1/4/10
to
I've started to investigate Outlook Redemption v. 4.8 and RDO Library. Unfortunately I haven't found the answer to my question yet.
Is it possible to accomplish copying messages between mailboxes using RDO objects?

Alexey Ostrovskiy wrote:

Thank you
31-Dec-09

Thank you for your reply. I really need to copy messages from one Exchange mailbox to others.

Sorry, but I forgot to mention, that I'm using VB.NET in Visual Studio 2008. Is it possible to use IMAPIFolder::CopyMessages in .NET?

I had used Exchange Impersonation to get full access to mailboxes. But EmailMessage.Copy(folderId) method didn't work for me. I suppose that this method can only copy messages between folders of one mailbox. Does EWS provide any way to accomplish copying messages between mailboxes?

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice

Using the SQLXML Managed Classes - Part I
http://www.eggheadcafe.com/tutorials/aspnet/eb5282cf-beac-4077-8465-b5fb87a20a0c/using-the-sqlxml-managed.aspx

Dmitry Streblechenko

unread,
Jan 4, 2010, 11:32:15 AM1/4/10
to
Sure, just call RDOMail.CopyTo(SomeFolder)

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-

<Alexey Ostrovskiy> wrote in message news:2010145...@tut.by...

alexeyostrovskiy

unread,
Jan 19, 2010, 9:21:53 AM1/19/10
to
Yes, it is possible to accomplish copying messages between mailboxes using RDO objects.
MAPI works too, but, Redemption is much more handy, if you are using .NET. With Redemption you don't need to write your own library on C++ for easy using MAPI functions in your .NET Project, but commercial use is not free :)

Alexey Ostrovskiy wrote:

RDO Library
04-Jan-10

I've started to investigate Outlook Redemption v. 4.8 and RDO Library. Unfortunately I haven't found the answer to my question yet.
Is it possible to accomplish copying messages between mailboxes using RDO objects?

Previous Posts In This Thread:

On Wednesday, December 30, 2009 12:43 PM
Alexey Ostrovskiy wrote:

How can I copy messages from one mailbox to another one?


I need to copy messages from one mailbox to another one without making any changes to them, i.e. all MAPI properties of message in the destination mailbox must be exactly the same as in the source mailbox.

I haven't find appropriate solution yet and will be thankful for any reply.

On Wednesday, December 30, 2009 1:03 PM
Dmitry Streblechenko wrote:

Between two Exchange mailboxes?


Between two Exchange mailboxes? IMAPIFolder::CopyMessages shoudl work just
fine.

--


Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-

On Thursday, December 31, 2009 6:47 AM
Alexey Ostrovskiy wrote:

Thank you


Thank you for your reply. I really need to copy messages from one Exchange mailbox to others.

Sorry, but I forgot to mention, that I'm using VB.NET in Visual Studio 2008. Is it possible to use IMAPIFolder::CopyMessages in .NET?

I had used Exchange Impersonation to get full access to mailboxes. But EmailMessage.Copy(folderId) method didn't work for me. I suppose that this method can only copy messages between folders of one mailbox. Does EWS provide any way to accomplish copying messages between mailboxes?

On Monday, January 04, 2010 5:04 AM
Alexey Ostrovskiy wrote:

RDO Library


I've started to investigate Outlook Redemption v. 4.8 and RDO Library. Unfortunately I haven't found the answer to my question yet.
Is it possible to accomplish copying messages between mailboxes using RDO objects?

Submitted via EggHeadCafe - Software Developer Portal of Choice

Working with Client Side Xml Data Islands from Server-Side ASP.NET code
http://www.eggheadcafe.com/tutorials/aspnet/23406c33-76e4-4bde-b8a9-e41f967e573b/working-with-client-side.aspx

0 new messages