non-global 'forward as attachment'

  • Thread starter Thread starter Barney Mowder
  • Start date Start date
B

Barney Mowder

This one ALMOST worked.

I'm currently working with VBA.

I have a bunch of users (OL 2K) who are getting buried in spam, and I
have trained them to use a macro tool which forwards the spam to me as
an attachment, so the headers remain intact. The method required
that the user set outlook to always send forwards as an attachment in
'options/E-Mail Options/on replies and forwards'.

I then began to get complaints from various of our 'road warriors'
that they couldn't read the messages forwarded to them by users using
the spam forwarding tool. THIS turns out to be a 'feature' of OWA-
It can't display attachments of type .msg

It looks like I need to cause Outlook to forward messages as an
attachment only when the user is forwarding SPAM to me.

I tried saving the message to the file system and then forwarding
the resulting file to me. No soap. It takes approximately a minute
for the save and forward as attachment process to complete. Moreover,
the forwarded file is NOT in the same format as an ordinary attached
message when I try to manipulate it programmatically later. This
causes another tool written in VBA, using redemption to fail.

Is there a way to TEMPORARILY set the ForwardStyle (that's the name
of the registry value in
[HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Preferences])
to allow forwarding a message as an attachment, and then setting it
back to allow forwarding messages as embedded text?
 
Instead of using MailItem.Forward, you can create a new message explicitly,
then just add the original message as an attachment using Attachments.Add.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Dmitry! You're a genius! Thank you!!! It worked like a charm!

Dmitry Streblechenko said:
Instead of using MailItem.Forward, you can create a new message explicitly,
then just add the original message as an attachment using Attachments.Add.

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


Barney Mowder said:
This one ALMOST worked.

I'm currently working with VBA.

I have a bunch of users (OL 2K) who are getting buried in spam, and I
have trained them to use a macro tool which forwards the spam to me as
an attachment, so the headers remain intact. The method required
that the user set outlook to always send forwards as an attachment in
'options/E-Mail Options/on replies and forwards'.

I then began to get complaints from various of our 'road warriors'
that they couldn't read the messages forwarded to them by users using
the spam forwarding tool. THIS turns out to be a 'feature' of OWA-
It can't display attachments of type .msg

It looks like I need to cause Outlook to forward messages as an
attachment only when the user is forwarding SPAM to me.

I tried saving the message to the file system and then forwarding
the resulting file to me. No soap. It takes approximately a minute
for the save and forward as attachment process to complete. Moreover,
the forwarded file is NOT in the same format as an ordinary attached
message when I try to manipulate it programmatically later. This
causes another tool written in VBA, using redemption to fail.

Is there a way to TEMPORARILY set the ForwardStyle (that's the name
of the registry value in
[HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Outlook\Preferences])
to allow forwarding a message as an attachment, and then setting it
back to allow forwarding messages as embedded text?
 
Back
Top