1pc
asked on
How to save email on a dvd
Hi,
I'm using outlook 2002 and want to save, copy or export a whole folder and than i want to copy it to a dvd.
It is necessary that i can browse the emails on the dvd and read them (with attachments) without using outlook.
So i don't want to export the pst-files and then import them to read the mail.
greetings
Stefaan
1pc
I'm using outlook 2002 and want to save, copy or export a whole folder and than i want to copy it to a dvd.
It is necessary that i can browse the emails on the dvd and read them (with attachments) without using outlook.
So i don't want to export the pst-files and then import them to read the mail.
greetings
Stefaan
1pc
Good luck. Check out this: https://www.experts-exchange.com/questions/21710207/Need-Free-Outlook-PST-email-viewer.html
ASKER
This doesn't help me. It requires outlook to be installed on the computer.
I want to view the emails without outlook installed.
I want to view the emails without outlook installed.
Greetings, 1pc !
You need Outlook to read Outlook messages. Outlook message or file is proprietary, so only Outlook could read an email.
Instead of backing of the PST file, you can drag and drop the emails to an empty folder. They will appear as .msg files. But you still need Outlook program to view them.
Best wishes!
You need Outlook to read Outlook messages. Outlook message or file is proprietary, so only Outlook could read an email.
Instead of backing of the PST file, you can drag and drop the emails to an empty folder. They will appear as .msg files. But you still need Outlook program to view them.
Best wishes!
Exactly.
Hi 1pc,
The alternative is to export every message to plain-text or HTML format, along with it's attachments to a folder structure. You could then copy/move the folders to DVD. Outlook does not have this capability built-in, so it will require a bit of scripting. If you want to go that route, then I can help with the scripting.
Cheers!
The alternative is to export every message to plain-text or HTML format, along with it's attachments to a folder structure. You could then copy/move the folders to DVD. Outlook does not have this capability built-in, so it will require a bit of scripting. If you want to go that route, then I can help with the scripting.
Cheers!
ASKER
Hi BlueDevilFan,
Can i than export all the messages at once?
Greetings
Can i than export all the messages at once?
Greetings
1pc,
Absolutely.
Absolutely.
ASKER
Ok i will try this but you have to explain it very well because i know nothing about scripts.
ASKER
I prefer HTML-format
Greetings
Stefaan
1pc
Greetings
Stefaan
1pc
1pc,
Ok, here it is. Follow these instructions to set up and use it.
1. Start Outlook.
2. Click Tools->Macro->Visual Basic Editor.
3. If not already expanded, expand Modules and click on Module1.
4. Copy the code below and paste it into the right-hand pane of the VB Editor.
5. Edit the code as needed. I placed comment lines where things can change.
6. Click the diskette icon on the toolbar to save the changes.
7. Close the VB Editor.
8. Click Tools->Macro->Security.
9. Change the Security Level setting to Medium.
10. You're ready to go.
To use it:
1. Select a folder by clicking on it.
2. Click tools->Macro->Macros
3. Select ExportFolderToFileSystem and click Run.
4. A dialog-box will pop up asking you to browse to a folder in the file system. This is the folder that'll hold the exported items.
5. The code will now export all messages and attachments in the selected Outlook folder. It will not process sub-folders. The process creates a sub-folder for each message. The structure will look like this:
Starting Folder
+MSG000001
- Message.htm
- Attachment1
- Attachment2
+MSG000002
- Message.htm
The process of exporting messages is going to trigger Outlook's built-in security. This will pop up a dialog-box warning that a program is accessing your mailbox and asking for your permission to allow it to continue. You have to allow access for this to work.
Sub ExportFolderToFileSystem()
Dim olkFolder As Object, _
olkItems As Object, _
olkItem As Object, _
olkAttachment As Object, _
objFSO As Object, _
objFSFolder As Object, _
objTemp As Object, _
strFolder As String
Set olkFolder = Application.ActiveExplorer .CurrentFo lder
Set olkItems = olkFolder.Items
Set objFSO = CreateObject("Scripting.Fi leSystemOb ject")
'Change the starting folder on the following line as desired
strFolder = GetFolderName("C:\")
Set objFSFolder = objFSO.GetFolder(strFolder )
For Each olkItem In olkItems
Set objTemp = objFSFolder.SubFolders.Add ("MSG" & StrZero(objFSFolder.SubFol ders.Count + 1, 6))
olkItem.SaveAs objTemp.Path & "\Message.htm"
For Each olkAttachment In olkItem.Attachments
olkAttachment.SaveAsFile objTemp.Path & "\" & olkAttachment.FileName
Next
Next
Set objTemp = Nothing
Set objFSFolder = Nothing
Set objFSO = Nothing
Set olkAttachment = Nothing
Set olkItem = Nothing
Set olkItems = Nothing
Set olkFolder = Nothing
MsgBox "All done!"
End Sub
Function GetFolderName(strStartingF older As Variant) As String
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
Dim objShell As Object, _
objFolder As Object, _
objFolderItem As Object
Set objShell = CreateObject("Shell.Applic ation")
Set objFolder = objShell.BrowseForFolder(W INDOW_HAND LE, "Select a folder:", NO_OPTIONS, strStartingFolder)
If Not TypeName(objFolder) = "Nothing" Then
Set objFolderItem = objFolder.self
GetFolderName = objFolderItem.Path & "\"
Else
GetFolderName = ""
End If
Set objFolderItem = Nothing
Set objFolder = Nothing
Set objShell = Nothing
End Function
Function StrZero(varNumber As Variant, intLength As Integer) As String
Dim intItemLength As Integer, _
intDifference As Integer
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
intDifference = intLength - intItemLength
StrZero = String(intDifference, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
Ok, here it is. Follow these instructions to set up and use it.
1. Start Outlook.
2. Click Tools->Macro->Visual Basic Editor.
3. If not already expanded, expand Modules and click on Module1.
4. Copy the code below and paste it into the right-hand pane of the VB Editor.
5. Edit the code as needed. I placed comment lines where things can change.
6. Click the diskette icon on the toolbar to save the changes.
7. Close the VB Editor.
8. Click Tools->Macro->Security.
9. Change the Security Level setting to Medium.
10. You're ready to go.
To use it:
1. Select a folder by clicking on it.
2. Click tools->Macro->Macros
3. Select ExportFolderToFileSystem and click Run.
4. A dialog-box will pop up asking you to browse to a folder in the file system. This is the folder that'll hold the exported items.
5. The code will now export all messages and attachments in the selected Outlook folder. It will not process sub-folders. The process creates a sub-folder for each message. The structure will look like this:
Starting Folder
+MSG000001
- Message.htm
- Attachment1
- Attachment2
+MSG000002
- Message.htm
The process of exporting messages is going to trigger Outlook's built-in security. This will pop up a dialog-box warning that a program is accessing your mailbox and asking for your permission to allow it to continue. You have to allow access for this to work.
Sub ExportFolderToFileSystem()
Dim olkFolder As Object, _
olkItems As Object, _
olkItem As Object, _
olkAttachment As Object, _
objFSO As Object, _
objFSFolder As Object, _
objTemp As Object, _
strFolder As String
Set olkFolder = Application.ActiveExplorer
Set olkItems = olkFolder.Items
Set objFSO = CreateObject("Scripting.Fi
'Change the starting folder on the following line as desired
strFolder = GetFolderName("C:\")
Set objFSFolder = objFSO.GetFolder(strFolder
For Each olkItem In olkItems
Set objTemp = objFSFolder.SubFolders.Add
olkItem.SaveAs objTemp.Path & "\Message.htm"
For Each olkAttachment In olkItem.Attachments
olkAttachment.SaveAsFile objTemp.Path & "\" & olkAttachment.FileName
Next
Next
Set objTemp = Nothing
Set objFSFolder = Nothing
Set objFSO = Nothing
Set olkAttachment = Nothing
Set olkItem = Nothing
Set olkItems = Nothing
Set olkFolder = Nothing
MsgBox "All done!"
End Sub
Function GetFolderName(strStartingF
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
Dim objShell As Object, _
objFolder As Object, _
objFolderItem As Object
Set objShell = CreateObject("Shell.Applic
Set objFolder = objShell.BrowseForFolder(W
If Not TypeName(objFolder) = "Nothing" Then
Set objFolderItem = objFolder.self
GetFolderName = objFolderItem.Path & "\"
Else
GetFolderName = ""
End If
Set objFolderItem = Nothing
Set objFolder = Nothing
Set objShell = Nothing
End Function
Function StrZero(varNumber As Variant, intLength As Integer) As String
Dim intItemLength As Integer, _
intDifference As Integer
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
intDifference = intLength - intItemLength
StrZero = String(intDifference, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
ASKER
BleuDevilFan,
It works but the messages are unreadable. See example below.
And isn't it possible to change the foldernames in the name of the shipper?
example:
ÐÏࡱá>þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿRoo t Entryÿÿÿÿÿÿÿÿ@ÈÆíèªÆ€ __properties_version1.00 .ÿÿÿÿV_ _nameid_ve rsion1.0( ÿÿÿÿÿÿÿÿ? @WÄíèªÆ@È ÆíèªÆ__su bstg1.0_0E 04001E*ÿ ÿÿÿ4ÿÿÿÿ ýÿÿÿÿÿÿÿÿ ÿÿÿ '" !þÿÿÿ#$%&(þÿÿÿþÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ Root Entryÿÿÿÿÿÿÿÿ ÀF@ÈÆíèªÆ€ __properties_version1.00 .ÿÿÿÿV_ _nameid_ve rsion1.0( ÿÿÿÿÿÿÿÿ? @WÄíèªÆ@È ÆíèªÆ__su bstg1.0_0E 04001E*ÿ ÿÿÿ4ÿÿÿÿ ÿÿÿÿÿÿÿÿý ÿÿÿ '" !þÿÿÿ#$%&(þÿÿÿþÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ __substg1. 0_0E03001E *$ÿÿÿÿ __substg1 .0_0E02001 E*ÿÿÿÿÿÿÿ ÿÿÿÿÿ__r ecip_versi on1.0_#000 00000:ÿÿ ÿÿÿÿÿÿ7@WÄ íèªÆ@ÈÆíè ªÆ__subst g1.0_001A0 01E*ÿÿ ÿÿU __substg1.0_0037001E*ÿÿÿ ÿÿÿÿÿÿÿÿÿT __substg1 .0_003B010 2* ÿÿÿÿS"__substg1.0_003F0102 *2ÿÿÿÿÿÿ ÿÿQD__subs tg1.0_0040 001E* ÿÿÿÿP__substg1.0_00410102 *ÿÿÿÿÿÿÿ ÿÿÿÿÿNL__s ubstg1.0_0 042001E* ÿÿÿÿM__substg1.0_0043010 2*ÿÿÿÿÿÿ ÿÿÿÿÿÿKD__ substg1.0_ 0044001E* ÿÿÿÿJ_ _substg1.0 _00510102* ÿÿÿÿÿÿÿÿ ÿÿÿÿI__substg1.0_00520102*ÿ ÿÿÿH__substg1.0_0064001E*ÿÿÿ ÿÿÿÿÿÿÿÿÿG __substg1 .0_0065001 E*ÿÿÿÿ F__substg1.0_0070001E*ÿÿÿ ÿÿÿÿÿÿÿÿÿE __substg1 .0_0075001 E* ÿÿÿÿD__substg1.0_0076001 E*ÿÿÿÿÿÿ ÿÿÿÿÿÿC__ substg1.0_ 0077001E* ÿÿÿÿB_ _substg1.0 _0078001E* ÿÿÿÿÿÿÿÿ ÿÿÿÿA__su bstg1.0_00 7D001E* ÿÿÿÿ,__ substg1.0_ 0C190102* ÿÿÿÿÿÿÿÿÿ ÿÿÿ*L__sub stg1.0_0C1 A001E*ÿÿÿÿ)__substg1.0_0C1D0102 *ÿÿÿÿÿÿÿ ÿÿÿÿÿ("__s ubstg1.0_0 C1E001E*ÿÿÿÿ'__substg1.0_0C1F001E *ÿÿÿÿÿÿ ÿÿ&__substg1.0_0E28001E*ÿÿ ÿÿÿÿÿÿ%0__ substg1.0_ 0E29001E* "ÿÿÿÿ$0__substg1.0_1000001 E*ÿÿÿÿÿÿ ÿÿÿÿÿÿ í__substg1.0_1008001E*!# ÿÿÿÿe__substg1.0_10090102*ÿÿ ÿÿÿÿÿÿÿÿÿÿ m__subst g1.0_10350 01E* (ÿÿÿÿ-__substg1.0_300B010 2*ÿÿÿÿ3ÿ ÿÿÿ__sub stg1.0_65A 0001E*%' ÿÿÿÿ__su bstg1.0_80 01001E*ÿ ÿÿÿÿÿÿÿÿÿÿ ÿ__subst g1.0_80020 01E*&,ÿÿ ÿÿ"__subs tg1.0_8003 0102*ÿÿÿ ÿÿÿÿÿÿÿÿÿ B__substg1 .0_8004010 2*)+ÿÿÿÿ __substg 1.0_800500 1E*ÿÿÿÿÿ ÿÿÿÿÿÿÿ __substg1.0_8006001E**ÿÿ ÿÿ__substg1.0_80070102*ÿÿÿ ÿÿÿÿÿÿÿÿÿ ì__substg1.0_8008001E*-0ÿ ÿÿÿ =__substg1.0_8009001E*ÿÿÿ ÿÿÿÿÿÿÿÿÿ __substg1 .0_800A001 E*/1ÿÿÿÿ __substg1.0_800B001E*ÿÿÿÿ ÿÿÿÿÿÿÿÿ__substg1.0_003D001E*ÿÿÿÿ ÿÿÿÿÿÿÿÿ __substg1. 0_34140102 *ÿÿÿÿÿÿÿÿ ÿÿÿÿ__su bstg1.0_0E 1D001E*ÿÿ ÿÿÿÿÿÿÿÿÿÿ __propert ies_versio n1.00:ÿÿ ÿÿÿÿÿÿxˆ__ substg1.0_ 0FFF0102* ;ÿÿÿÿÿÿÿÿ vS__substg 1.0_300100 1E*69ÿÿÿ ÿuþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿþ ÿÿÿþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿþ ÿÿÿ þÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿÿþ ÿÿÿþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿþÿÿÿ!"#þÿÿÿþÿÿÿþÿÿÿþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿ+ þÿÿÿ-./012 3456789:;< =>?@þÿÿÿþÿ ÿÿþÿÿÿþÿÿÿ þÿÿÿþÿÿÿþÿ ÿÿþÿÿÿþÿÿÿ þÿÿÿþÿÿÿLþ ÿÿÿþÿÿÿOþÿ ÿÿþÿÿÿRþÿÿ ÿþÿÿÿþÿÿÿþ ÿÿÿWXYZ[\] ^_`abcdefþ ÿÿÿþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿþ ÿÿÿþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿþ ÿÿÿþÿÿÿþÿÿ ÿþÿÿÿþÿÿÿþ ÿÿÿwþÿÿÿyz þÿÿÿ|}~þÿÿ ÿ€adreswij zigingspaa renadvies@ virusfree. beNITAù¿¸ ª7Ùn[eveli nebovenker k@hotmail. com]evelin ebovenkerk @hotmail.c om[62.163. 196.134]09 Jul 2006 08:32:37.0444 (UTC) FILETIME=[3BD98040:01C6A33 2]Geachte heer/ mevrouw, Hierbij wil ik mijn adreswijziging doorgeven. Per 01-01-2005 woon ik al op het volgende adres: Gen. de Gaullelaan 30 5623 KT Eindhoven Tel: 06-10400750 Met vriendelijke groeten, Eveline Bovenkerk 452335157452335157POP://po p.virusfre e.be/45233 5157000000 06spaarad vies@virus free.bespa arenadvies +b20060709 0833374523 35157é°ª9á ÄÔMŽ)¢‹€ 1iLZFu 8, rcpg125â2CtexA÷ÿ €¤ä€óPV?U²%Q chá Àset2Ã%ö3F·0,3ï ÷¶;05" `cP3 d36P ¦ GJeÐh° h àr/ €v`uw, ¢ „ €H‘bijæ ð ikÀ` ad ájzig¡ €g do°gà ð. P01-ó"1Ð05€!P Ññ@ op ã €p@¶vð!€n D:Tð!Á$ÁGaull6e `‘3@c56€23 KT E €Xdho!¡TT&€:A" 6-104" 7v5&õTM$2$±lí`kP Ào ðEÖE! +@nPB(2+p,rkZT}.ÀGEACHTEHEER/MEVROUW,HI ERBIJWILIK MIJNADRESW IJZIGINGDO ORGEVENPER 01-01-2005 WOONIKALOP HETVOLGEND EADRES:GGe achte heer/ mevrouw, Hierbij wil ik mijn adreswijziging doorgeven. Per 01-01-2005 woon ik al op het volgende adres: Gen. de Gaullelaan 30 5623 KT Eindhoven Tel: 06-10400750 Met vriendelijke groeten, Eveline Bovenkerk 00000006spaaradvies@virus free.besp aarenadvie s00000006 spaaradvie s@virusfre e.bespaar enadviesev elineboven kerk@hotma il.comSMTP SMTP:EVELI NEBOVENKER K@HOTMAIL. COMEveline Bovenkerk+¤¾£nÝTEveline BovenkerkSMTPevelinebovenk erk@hotmai l.comRecei ved: from q.em.be [193.121.228.20] by KEY.BE with ESMTP (SMTPD-8.21) id AF33DC494; Sun, 09 Jul 2006 10:32:51 +0200 Received: from bay0-omc1-s6.bay0.hotmail. com (www-test.bay2.hotmail.com [65.54.246.78] (may be forged)) by q-eth1.em.be (8.10.2/8.10.2) with ESMTP id k698WhH06324 for ; Sun, 9 Jul 2006 10:32:44 +0200 Received: from hotmail.com ([65.54.229.19]) by bay0-omc1-s6.bay0.hotmail. com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 9 Jul 2006 01:32:37 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 9 Jul 2006 01:32:37 -0700 Message-ID: Received: from 65.54.229.220 by by110fd.bay110.hotmail.msn .com with HTTP; Sun, 09 Jul 2006 08:32:35 GMT X-Originating-IP: [62.163.196.134] X-Originating-Email: [evelinebovenkerk@hotmail. com] X-Sender: evelinebovenkerk@hotmail.c om From: "Eveline Bovenkerk" To: spaarenadvies@virusfree.be Subject: adreswijziging Date: Sun, 09 Jul 2006 08:32:35 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed X-OriginalArrivalTime: 09 Jul 2006 08:32:37.0444 (UTC) FILETIME=[3BD98040:01C6A33 2] X-RCPT-TO: Status: U X-UIDL: 452335157 spaaradvies@virusfree.beSM TPspaaradv ies@virusf ree.beSMTP adreswijzi gingevelin ebovenkerk @hotmail.c omSMTPSMTP :SPAARADVI ES@VIRUSFR EE.BESMTP: SPAARADVIE S@VIRUSFRE E.BEspaare nadvies+¤¾£nÝTspaarenadviesS MTPspaarad vies@virus free.beEve line Bovenkerk+¤¾£nÝTEveline BovenkerkSMTPevelinebovenk erk@hotmai l.comspaar enadvies+ ¤¾£nÝTspaarenadviesS MTPspaarad vies@virus free.beSMT P:EVELINEB OVENKERK@H OTMAIL.COM adreswijzi gingIPM.No te@0@W ÄíèªÆ@0 @WÄíèªÆ÷ ô__substg1.0_3002001E* ÿÿÿÿÿÿÿÿ ÿÿÿÿt__su bstg1.0_30 03001E*85 ÿÿÿÿs__su bstg1.0_30 0B0102*ÿÿ ÿÿÿÿÿÿÿÿÿÿ r __substg1.0_0FF60102*ÿÿÿÿ ÿÿÿÿÿÿÿÿq __substg1. 0_00020102 *ÿÿÿÿÿÿÿ ÿÿÿÿÿ@__s ubstg1.0_0 0030102* <>ÿÿÿÿ`__ substg1.0_ 00040102* ÿÿÿÿHÿÿÿÿ {ê__substg 1.0_100101 02*=@ÿÿÿ ÿp__subst g1.0_10140 102*BAÿÿ ÿÿo__subs tg1.0_1015 0102*ÿÿÿ ÿEÿÿÿÿn__ substg1.0_ 10060102* DCÿÿÿÿm__ substg1.0_ 100B0102* FGÿÿÿÿl_ _substg1.0 _10020102* ÿÿÿÿÿÿÿÿ ÿÿÿÿk__su bstg1.0_10 180102*ÿÿ ÿÿÿÿÿÿÿÿÿÿ j__substg 1.0_100801 02*ÿÿÿÿÿÿ ÿÿÿÿÿÿi__ substg1.0_ 100D0102* ÿÿÿÿÿÿÿÿÿÿ ÿÿh__subs tg1.0_1000 0102*ÿÿÿÿ ÿÿÿÿÿÿÿÿg ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿ 7@9€“d:2£Æ;"Þ? DÝ@ALÝBCDÞDQÝRÞdepuvwx} LÝ "Þ @€ûíC2£Æ (0)0í$£#¹e mì5- 0ÜÞ?¯o e€@€€"€B݀݀ €€ìÞ€= € € €=4ÞÓÑ[© Tƒ=d ‹[Ê ÃwVü ÷Íÿý …€……àû ú Û0 ¢ SMTP:SPAARENADVIES@VIRUSF REE.BEspaa renadvies@ virusfree. beSMTPspaa renadvies@ virusfree. be+¤¾£nÝTspaarenadvies @virusfree .beSMTPspa arenadvies @virusfree .be ÿSÝ000 0 ÝöÞ0 X-UIDLX-RCPT-TO*Internet Charset Body*X-OriginalArrivalTime X-Originating-IPX-Sender& X-Originat ing-Email …€…… ( þÿÿÿþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿ ÿÿÿÿÿÿÿX ˆ ¬ À ÀF ÀF†ÀF€v:Nz·Ð¥ÀOÖV…
It works but the messages are unreadable. See example below.
And isn't it possible to change the foldernames in the name of the shipper?
example:
ÐÏࡱá>þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
What you posted is a fragment of a Word document. Are your messages in Rich-text format? Yes, we can change the way folders are named, but I wouldn't recommend using the sender's name, assuming that what you mean when you said "the name of the shipper". The problem with that is that the names of the messages will then have to be unique, and we'll need to create uniquely named sub-folders to hold the attachments. That's because we'd need to separate the attachments both to know which message they go with and to avoid overwriting like named items.
ASKER
How can i see if a message is in rich-text format?
I have tried to send you a message by email but the orignal message is message.htm and when i want to sent it to you as an attachement my outlook converts the name of the message to "contact sonja.msg" and that opens correct.
I mean "the sender's name"
I'm from Belgium, speaking dutch, and my english is not very well, sorry.
Greetings
Stefaan
1pc
I have tried to send you a message by email but the orignal message is message.htm and when i want to sent it to you as an attachement my outlook converts the name of the message to "contact sonja.msg" and that opens correct.
I mean "the sender's name"
I'm from Belgium, speaking dutch, and my english is not very well, sorry.
Greetings
Stefaan
1pc
Stefaan,
No apology needed. Your English is far better than my Dutch. Never mind checking to see if the message is in rich-text format. I looked at the code I posted and realized I made a mistake on the command to save the message. Change this line of code
olkItem.SaveAs objTemp.Path & "\Message.htm"
to
olkItem.SaveAs objTemp.Path & "\Message.htm", olHTML
No apology needed. Your English is far better than my Dutch. Never mind checking to see if the message is in rich-text format. I looked at the code I posted and realized I made a mistake on the command to save the message. Change this line of code
olkItem.SaveAs objTemp.Path & "\Message.htm"
to
olkItem.SaveAs objTemp.Path & "\Message.htm", olHTML
ASKER
David,
This line is not correct.
I get a fault and when i search for the fault he stops at the new line.
I paste the code here so you can see if I made a mistake
Greetings
Stefaan
1pc
Sub ExportFolderToFileSystem()
Dim olkFolder As Object, _
olkItems As Object, _
olkItem As Object, _
olkAttachment As Object, _
objFSO As Object, _
objFSFolder As Object, _
objTemp As Object, _
strFolder As String
Set olkFolder = Application.ActiveExplorer .CurrentFo lder
Set olkItems = olkFolder.Items
Set objFSO = CreateObject("Scripting.Fi leSystemOb ject")
'Change the starting folder on the following line as desired
strFolder = GetFolderName("d:\emailexp ort1")
Set objFSFolder = objFSO.GetFolder(strFolder )
For Each olkItem In olkItems
Set objTemp = objFSFolder.SubFolders.Add ("MSG" & StrZero(objFSFolder.SubFol ders.Count + 1, 6))
olkItem.SaveAs objTemp.Path & "\Message.htm", olHTML
For Each olkAttachment In olkItem.Attachments
olkAttachment.SaveAsFile objTemp.Path & "\" & olkAttachment.FileName
Next
Next
Set objTemp = Nothing
Set objFSFolder = Nothing
Set objFSO = Nothing
Set olkAttachment = Nothing
Set olkItem = Nothing
Set olkItems = Nothing
Set olkFolder = Nothing
MsgBox "All done!"
End Sub
Function GetFolderName(strStartingF older As Variant) As String
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
Dim objShell As Object, _
objFolder As Object, _
objFolderItem As Object
Set objShell = CreateObject("Shell.Applic ation")
Set objFolder = objShell.BrowseForFolder(W INDOW_HAND LE, "Select a folder:", NO_OPTIONS, strStartingFolder)
If Not TypeName(objFolder) = "Nothing" Then
Set objFolderItem = objFolder.self
GetFolderName = objFolderItem.Path & "\"
Else
GetFolderName = ""
End If
Set objFolderItem = Nothing
Set objFolder = Nothing
Set objShell = Nothing
End Function
Function StrZero(varNumber As Variant, intLength As Integer) As String
Dim intItemLength As Integer, _
intDifference As Integer
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
intDifference = intLength - intItemLength
StrZero = String(intDifference, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
This line is not correct.
I get a fault and when i search for the fault he stops at the new line.
I paste the code here so you can see if I made a mistake
Greetings
Stefaan
1pc
Sub ExportFolderToFileSystem()
Dim olkFolder As Object, _
olkItems As Object, _
olkItem As Object, _
olkAttachment As Object, _
objFSO As Object, _
objFSFolder As Object, _
objTemp As Object, _
strFolder As String
Set olkFolder = Application.ActiveExplorer
Set olkItems = olkFolder.Items
Set objFSO = CreateObject("Scripting.Fi
'Change the starting folder on the following line as desired
strFolder = GetFolderName("d:\emailexp
Set objFSFolder = objFSO.GetFolder(strFolder
For Each olkItem In olkItems
Set objTemp = objFSFolder.SubFolders.Add
olkItem.SaveAs objTemp.Path & "\Message.htm", olHTML
For Each olkAttachment In olkItem.Attachments
olkAttachment.SaveAsFile objTemp.Path & "\" & olkAttachment.FileName
Next
Next
Set objTemp = Nothing
Set objFSFolder = Nothing
Set objFSO = Nothing
Set olkAttachment = Nothing
Set olkItem = Nothing
Set olkItems = Nothing
Set olkFolder = Nothing
MsgBox "All done!"
End Sub
Function GetFolderName(strStartingF
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
Dim objShell As Object, _
objFolder As Object, _
objFolderItem As Object
Set objShell = CreateObject("Shell.Applic
Set objFolder = objShell.BrowseForFolder(W
If Not TypeName(objFolder) = "Nothing" Then
Set objFolderItem = objFolder.self
GetFolderName = objFolderItem.Path & "\"
Else
GetFolderName = ""
End If
Set objFolderItem = Nothing
Set objFolder = Nothing
Set objShell = Nothing
End Function
Function StrZero(varNumber As Variant, intLength As Integer) As String
Dim intItemLength As Integer, _
intDifference As Integer
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
intDifference = intLength - intItemLength
StrZero = String(intDifference, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
Good morning, Stefaan.
Replace the code you have with the version below. I added code to make the save process more intelligent. It also fixed the problem you ran into.
Sub ExportFolderToFileSystem()
Dim olkFolder As Object, _
olkItems As Object, _
olkItem As Outlook.MailItem, _
olkAttachment As Object, _
objFSO As Object, _
objFSFolder As Object, _
objTemp As Object, _
strFolder As String, _
strFileName As String
Set olkFolder = Application.ActiveExplorer .CurrentFo lder
Set olkItems = olkFolder.Items
Set objFSO = CreateObject("Scripting.Fi leSystemOb ject")
'Change the starting folder on the following line as desired
strFolder = GetFolderName("d:\emailexp ort1")
Set objFSFolder = objFSO.GetFolder(strFolder )
For Each olkItem In olkItems
Set objTemp = objFSFolder.SubFolders.Add ("MSG" & StrZero(objFSFolder.SubFol ders.Count + 1, 6))
strFileName = objTemp.Path & "\Message." & GetExtension(olkItem.BodyF ormat)
If objFSO.FolderExists(objTem p.Path) Then
olkItem.SaveAs strFileName, GetMsgFormat(olkItem.BodyF ormat)
For Each olkAttachment In olkItem.Attachments
olkAttachment.SaveAsFile objTemp.Path & "\" & olkAttachment.FileName
Next
Else
MsgBox "Cannot find the folder just created.", vbCritical, "Error Exporting Message"
End If
Next
Set objTemp = Nothing
Set objFSFolder = Nothing
Set objFSO = Nothing
Set olkAttachment = Nothing
Set olkItem = Nothing
Set olkItems = Nothing
Set olkFolder = Nothing
MsgBox "All done!"
End Sub
Function GetFolderName(strStartingF older As Variant) As String
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
Dim objShell As Object, _
objFolder As Object, _
objFolderItem As Object
Set objShell = CreateObject("Shell.Applic ation")
Set objFolder = objShell.BrowseForFolder(W INDOW_HAND LE, "Select a folder:", NO_OPTIONS, strStartingFolder)
If Not TypeName(objFolder) = "Nothing" Then
Set objFolderItem = objFolder.self
GetFolderName = objFolderItem.Path & "\"
Else
GetFolderName = ""
End If
Set objFolderItem = Nothing
Set objFolder = Nothing
Set objShell = Nothing
End Function
Function StrZero(varNumber As Variant, intLength As Integer) As String
Dim intItemLength As Integer, _
intDifference As Integer
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
intDifference = intLength - intItemLength
StrZero = String(intDifference, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
Function GetMsgFormat(intFormat As Integer) As Integer
Select Case intFormat
Case olFormatHTML
GetMsgFormat = olHTML
Case olFormatPlain
GetMsgFormat = olTXT
Case olFormatRichText
GetMsgFormat = olRTF
Case olFormatUnspecified
GetMsgFormat = olTXT
End Select
End Function
Function GetExtension(intFormat As Integer) As String
Select Case intFormat
Case olFormatHTML
GetExtension = "htm"
Case olFormatPlain
GetExtension = "txt"
Case olFormatRichText
GetExtension = "rtf"
Case olFormatUnspecified
GetExtension = "txt"
End Select
End Function
Replace the code you have with the version below. I added code to make the save process more intelligent. It also fixed the problem you ran into.
Sub ExportFolderToFileSystem()
Dim olkFolder As Object, _
olkItems As Object, _
olkItem As Outlook.MailItem, _
olkAttachment As Object, _
objFSO As Object, _
objFSFolder As Object, _
objTemp As Object, _
strFolder As String, _
strFileName As String
Set olkFolder = Application.ActiveExplorer
Set olkItems = olkFolder.Items
Set objFSO = CreateObject("Scripting.Fi
'Change the starting folder on the following line as desired
strFolder = GetFolderName("d:\emailexp
Set objFSFolder = objFSO.GetFolder(strFolder
For Each olkItem In olkItems
Set objTemp = objFSFolder.SubFolders.Add
strFileName = objTemp.Path & "\Message." & GetExtension(olkItem.BodyF
If objFSO.FolderExists(objTem
olkItem.SaveAs strFileName, GetMsgFormat(olkItem.BodyF
For Each olkAttachment In olkItem.Attachments
olkAttachment.SaveAsFile objTemp.Path & "\" & olkAttachment.FileName
Next
Else
MsgBox "Cannot find the folder just created.", vbCritical, "Error Exporting Message"
End If
Next
Set objTemp = Nothing
Set objFSFolder = Nothing
Set objFSO = Nothing
Set olkAttachment = Nothing
Set olkItem = Nothing
Set olkItems = Nothing
Set olkFolder = Nothing
MsgBox "All done!"
End Sub
Function GetFolderName(strStartingF
Const WINDOW_HANDLE = 0
Const NO_OPTIONS = 0
Dim objShell As Object, _
objFolder As Object, _
objFolderItem As Object
Set objShell = CreateObject("Shell.Applic
Set objFolder = objShell.BrowseForFolder(W
If Not TypeName(objFolder) = "Nothing" Then
Set objFolderItem = objFolder.self
GetFolderName = objFolderItem.Path & "\"
Else
GetFolderName = ""
End If
Set objFolderItem = Nothing
Set objFolder = Nothing
Set objShell = Nothing
End Function
Function StrZero(varNumber As Variant, intLength As Integer) As String
Dim intItemLength As Integer, _
intDifference As Integer
If IsNumeric(varNumber) Then
intItemLength = Len(CStr(Int(varNumber)))
If intItemLength < intLength Then
intDifference = intLength - intItemLength
StrZero = String(intDifference, "0") & varNumber
Else
StrZero = varNumber
End If
Else
StrZero = varNumber
End If
End Function
Function GetMsgFormat(intFormat As Integer) As Integer
Select Case intFormat
Case olFormatHTML
GetMsgFormat = olHTML
Case olFormatPlain
GetMsgFormat = olTXT
Case olFormatRichText
GetMsgFormat = olRTF
Case olFormatUnspecified
GetMsgFormat = olTXT
End Select
End Function
Function GetExtension(intFormat As Integer) As String
Select Case intFormat
Case olFormatHTML
GetExtension = "htm"
Case olFormatPlain
GetExtension = "txt"
Case olFormatRichText
GetExtension = "rtf"
Case olFormatUnspecified
GetExtension = "txt"
End Select
End Function
ASKER
Hi David,
This works fine.
If you now could change the foldernames (MSG00000x) to a unique other name in that way that i can recognise the email.
For example: name of the sender and time/date or name of the sender and subjet and time/date
The second option is the best for me.
I hope you can realise this. If you can, i'm very happy because that is what i am searching for.
Greetings
Stefaan
1pc
This works fine.
If you now could change the foldernames (MSG00000x) to a unique other name in that way that i can recognise the email.
For example: name of the sender and time/date or name of the sender and subjet and time/date
The second option is the best for me.
I hope you can realise this. If you can, i'm very happy because that is what i am searching for.
Greetings
Stefaan
1pc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
David,
Thank you very much.
This is what i was searching for.
Greetings
Stefaan
1pc
Thank you very much.
This is what i was searching for.
Greetings
Stefaan
1pc
You are welcome, Stefaan. Happy I could help.