A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

remove encoded attachment from raw message



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 19th 08, 02:03 PM posted to microsoft.public.outlook.program_vba
Wilfried
external usenet poster
 
Posts: 9
Default remove encoded attachment from raw message

Hello!
(OL 2003 SP3)
I realized that the usual way to remove an attachment from a message
does not remove it completely.
It seems to remove the decoded attachment but not the encoded version in
the raw message text. E.g. removing the attachments from a message
reduces message size from 12 MB to 9 MB which is not sufficient to keep
the pst file small enough in the long term.
The 9 MB message still contains the encoded version in the raw message
text, as can be seen by looking into "view-options-header lines".
I'd like to remove this as well, so my question:

Is there a vba object which represents the encoded part of the message?


--
Wilfried Hennings
please reply in the newsgroup, the e-mail address is invalid
Ads
  #2  
Old December 19th 08, 08:43 PM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default remove encoded attachment from raw message

Internet headers in the PR_TRANSPORT_MESSAGE_HEADERS MAPI property never
include the whole MIME message unless you set a special registry key (don't
remember the name off the top of my head) that force the SMTP transport
provider to store the whole MIME message, not just the MIME header.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Wilfried" wrote in message
...
Hello!
(OL 2003 SP3)
I realized that the usual way to remove an attachment from a message
does not remove it completely.
It seems to remove the decoded attachment but not the encoded version in
the raw message text. E.g. removing the attachments from a message
reduces message size from 12 MB to 9 MB which is not sufficient to keep
the pst file small enough in the long term.
The 9 MB message still contains the encoded version in the raw message
text, as can be seen by looking into "view-options-header lines".
I'd like to remove this as well, so my question:

Is there a vba object which represents the encoded part of the message?


--
Wilfried Hennings
please reply in the newsgroup, the e-mail address is invalid



  #3  
Old December 22nd 08, 04:32 PM posted to microsoft.public.outlook.program_vba
Wilfried
external usenet poster
 
Posts: 9
Default remove encoded attachment from raw message

On Fri, 19 Dec 2008 13:43:24 -0700, "Dmitry Streblechenko"
wrote:

Internet headers in the PR_TRANSPORT_MESSAGE_HEADERS MAPI property never
include the whole MIME message unless you set a special registry key (don't
remember the name off the top of my head) that force the SMTP transport
provider to store the whole MIME message, not just the MIME header.


Thank you so much! That was the most valuable hint I got since I
started asking about the problem.
The registry key is
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\O utlook\Options\Mail
DWORD: SaveAllMIMENotJustHeaders
Value: 1

I will be back in January 2009 to report whether this was helpful.
Until then, I wish you a Merry Christmas and a Happy New Year,
Wilfried

  #4  
Old January 29th 09, 01:38 PM posted to microsoft.public.outlook.program_vba
Wilfried
external usenet poster
 
Posts: 9
Default remove encoded attachment from raw message - SOLVED

Wilfried wrote:

On Fri, 19 Dec 2008 13:43:24 -0700, "Dmitry Streblechenko"
wrote:

Internet headers in the PR_TRANSPORT_MESSAGE_HEADERS MAPI property never
include the whole MIME message unless you set a special registry key (don't
remember the name off the top of my head) that force the SMTP transport
provider to store the whole MIME message, not just the MIME header.


Thank you so much! That was the most valuable hint I got since I
started asking about the problem.
The registry key is
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\O utlook\Options\Mail
DWORD: SaveAllMIMENotJustHeaders
Value: 1

I will be back in January 2009 to report whether this was helpful.
Until then, I wish you a Merry Christmas and a Happy New Year,
Wilfried


Well, changing this reg-key solved the problem.

When I started using Outlook, I had problems with incorrect display of
messages from someone using a Macintosh, so I had set this reg key to
see whether the message was correctly encoded. We got the Mac problem
solved by setting an option on the Mac. Then I forgot I had set that reg
key, and I was not aware that this reg key makes Outlook store each
attachment twice, once encoded (MIME message) and once decoded, and that
only the decoded attachment can be removed from the message.


--
Wilfried Hennings
please reply in the newsgroup, the e-mail address is invalid
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accidentally clicked Remove on an Attachment [email protected] Outlook - General Queries 3 February 14th 08 06:59 PM
How to remove editdata.mso attachment in emails? 3ddy Outlook - Installation 3 October 3rd 07 07:27 AM
Save and Remove Attachment gustavo souza Outlook and VBA 0 July 27th 07 12:31 AM
remove automatic attachment ccchick Outlook - Using Contacts 1 October 3rd 06 09:51 PM
Remove attachment button and remove menu "Insert" from compose mail form? [email protected] Outlook - Using Forms 1 September 6th 06 12:58 PM


All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.