How to use Mail.Forward with Redemption?

  • Thread starter Thread starter Michael Bauer
  • Start date Start date
M

Michael Bauer

Hi @all,

I have to forward an e-mail.

<sample>
Set oFwd = oMail.Forward
Set oSafeFwd = CreateObject("redemption.safemailitem")
oSafeFwd.Item = oFwd
</sample>

After this all oSafeFwd.*Body properties are blank (of course,
oMail.Body isn´t).

Please, who could explain to me what I´ve to do?

Because I´m unable to create a mail forward in plaintext with only one
auto-signature (please see my former posting "Mailforward and
signature"), I´m trying to convert a plaintext mail into html, create
the forward, discard changes at the original mail and convert the
forward back into plaintext.
 
Redemption (or Extended MAPI for that matter) won't see the changes made
through Outlook Object Model until Outlook commits the changes to the
Extended MAPI IMessage. A call to MailItem.Save would do that.

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

thank you for your reply.

Please, do you have any suggestions to my primary problem (two
auto-added signatures for forwarded plain text mails)? Do you know a
workaround?

--
Viele Grüße
Michael Bauer

Dmitry Streblechenko (MVP) said:
Redemption (or Extended MAPI for that matter) won't see the changes made
through Outlook Object Model until Outlook commits the changes to the
Extended MAPI IMessage. A call to MailItem.Save would do that.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
I have no idea, sorry - never seen this happen. What happens if you save the
message before displaying it?

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


Michael Bauer said:
Hi Dmitry,

thank you for your reply.

Please, do you have any suggestions to my primary problem (two
auto-added signatures for forwarded plain text mails)? Do you know a
workaround?
 
Hi Dmitry,
What happens if you save the
message before displaying it?

I have tried this way already, but thanks for your question. So I tried
once more again and a little different.

First, I saved an "re-opened" directly:

oFwd.Save
set oFwd = Sess.GetItemFromId(oFwd.EntryID)

That doesn´t work, but by setting oFwd = nothing after saving it works.

Anyway, I think, that is a very expensive way. Because the user should
be able to decide, if he maybe wants to reject the mail or not, I now
have to trace all the events.
 
Back
Top