Re: RPC_E_SERVERFAULT error when trying to import mail
- From: "Francois Miermont" <FrancoisMiermont@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Mar 2006 01:06:29 -0800
That's msg file. And when I drap & drop the msg file onto outlook, it is
flagged as non-read.
"Dmitry Streblechenko" wrote:
Are you importing MSG files or EML?.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Francois Miermont" <FrancoisMiermont@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:30F81651-63A0-4060-A923-38C6D1902636@xxxxxxxxxxxxxxxx
Hello Dmitry :)
I have tested RDOMail object, and putting the Sent propertie to true, and
I
works ! Furthermore, I have incredible performance, less than one minute
to
restore a 150MB mailbox !
Just a little question : the unread flag seems to not be restored despite
it
is really saved. What can I do to solve this minor problem ?
"Dmitry Streblechenko" wrote:
Here I am :-)
SafeMailItem object in Redemption only exposes properties and methods
blocked by the Outlook Object Model. MessageClass is not blocked, hence
SafeMailItem does not implement it. You can either set that property on
the
original Outlook object assigned to the SafeMailItem.Item property or use
RDOMail object (no Outlook objects involed) -
http://www.dimastr.com/redemption/rdo/. RDOMail object has a Sent
property,
which is, unlike OOM, r/w, but you will get an error if you set it after
the
message was saved at least once (just a MAPI limitation). This way you
don't
even need to mess with the MessageClass - just call Import(), then set
the
Sent property ot true.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Francois Miermont" <FrancoisMiermont@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:8A863124-56D9-41D5-AFAB-0C503DC1ABE6@xxxxxxxxxxxxxxxx
Just try it and does not work :/
Is there a way to ask Redemption's author directly ?
"Sue Mosher [MVP-Outlook]" wrote:
Redemption will pass the MessageClass through to the
SafeMailItem.Item,
but C# doesn't know that, and I don't do that language, so I don't
know
how you're supposed to code it. You could try SafeMailItem.Save,
followed
by setting SafeMailItem.Item.MessageClass and then
SafeMailItem.Item.Save
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Francois Miermont" <FrancoisMiermont@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote
in
message news:AE5AC75F-2269-457E-81A6-279C91CA4CEB@xxxxxxxxxxxxxxxx
It seems that I don"t have this MessageClass propertie avaible in my
SafeMailItem Class ?
"Sue Mosher [MVP-Outlook]" wrote:
Take a look at the sample at
http://www.outlookcode.com/codedetail.aspx?id=716, which has worked
fine for me. You need to set the MessageClass to "IPM.Note" after
you
perform the import.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Francois Miermont" <FrancoisMiermont@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote
in message
news:05E15A04-AD60-4DCF-A446-5255D9830990@xxxxxxxxxxxxxxxx
Okay I just try to use Redemption to see what I can do with it.
So
I'll try
to import my msg file.
On the Redemption website, I'm unable to find a way to import a
msg
file
without creating a new item in Outlook. The given code is like
this
:
dim sItem, oItem
set sItem = CreateObject("Redemption.SafeMailItem")
set oItem = Application.Session.GetDefaultFolder(16).Items.Add(6)
sItem.Item = oItem
sItem.Import "c:\temp\test.msg", 3 'olMSG, olRFC822 and olTNEF
formats are
supported
sItem.Save
In fact, it the same behaviour as an ImportFromTemplate call :
the
imported
mail is a new item, so I haven't the Reply button.
Or maybe I'm not doing it correctly ?
"Francois Miermont" wrote:
Sweet, this is a non-free wrapper that cost the same as
Redemption.
So there is no way to import an msg file in outlook in .net
expect
using
redemption ? I can't understand that !
"Sue Mosher [MVP-Outlook]" wrote:
Extended MAPI is not supported in .NET. You'd have to go to a
third-party wrapper there, too --
http://www.mapi33.adexsolutions.com/
"Francois Miermont" <fmiermont[at]netfinances.fr> wrote in
message
news:1D31F51D-082A-45E5-867E-ED39082C0F40@xxxxxxxxxxxxxxxx
I dont have any idea of how using ExMapi with .net. If you
have
any links :)
"Sue Mosher [MVP-Outlook]" wrote:
The Outlook object model provides no way to do that
programmatically. You have to go to either Extended MAPI or
Redemption.
"Francois Miermont" <fmiermont[at]netfinances.fr> wrote in
message
news:172E2B7D-346B-4F41-81A8-FA515E4A0FF1@xxxxxxxxxxxxxxxx
Sue you says that CreateItemFromTemplate is not the
correct
method to import
msg file, as it not import the mail, but create a new
item
from this mail.
But what can I do if I don't want to use Redemption ? In
fact, I just want to
do the same behaviour as if I drag&drop a MSG file into
Outlook.
- Follow-Ups:
- Re: RPC_E_SERVERFAULT error when trying to import mail
- From: Dmitry Streblechenko
- Re: RPC_E_SERVERFAULT error when trying to import mail
- References:
- Re: RPC_E_SERVERFAULT error when trying to import mail
- From: Francois Miermont
- Re: RPC_E_SERVERFAULT error when trying to import mail
- From: Dmitry Streblechenko
- Re: RPC_E_SERVERFAULT error when trying to import mail
- Prev by Date: Re: Using Restrict function in multiple languages
- Next by Date: Re: Using Restrict function in multiple languages
- Previous by thread: Re: RPC_E_SERVERFAULT error when trying to import mail
- Next by thread: Re: RPC_E_SERVERFAULT error when trying to import mail
- Index(es):