Information générale
Catégorie:
COM/DCOM et OLE Automation
>Good Afternoon,
>
>I have been given a large PSt file from Outlook that contains Several levels of folders and a few thousand email messages distributed throughout the folders.
>
>Is there a way short of exporting each folder's contents to a table to get the subject, datesent, to, from and originating folder into a table. I haven't seen a way to export recursive folders information into a file.
>
>Is there a central database in Exchange 5 that I can access?
>
>Sincerely,
>
>Michael
You can certainly do this with Automation. Something along these lines:
oOutlook = CreateObject("Outlook.Application")
oNS = oOutlook.GetNameSpace("MAPI")
FOR EACH oFolder IN oNameSpace.Folders
This.BuildDBFFromFolder( oFolder)
ENDFOR
* Method BuildDBFFromFolder
LPARAMETERS oFolder
* First, use a loop to process all the items in the folder
* Then, go to subfolders
FOR EACH oSubFolder IN oFolder.Folders
This.BuildDBFFromFolder( oSubFolder)
ENDFOR
RETURN
This is totally untested code just to give you an idea where to go with this.
Tamar
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement