Home: Perl Programming Help: Win32 Programming Help:
Win32::OLE Outlook NEW Folders



Chancer
Novice

Sep 29, 2014, 8:54 AM


Views: 12257
Win32::OLE Outlook NEW Folders

Hi all,

I wrote a script to re-create the folder structure of Public Folders in a PST file. The script works, but I notice that all folders are created as 'Mail and Post Items' ...

I am just adding the folder like this:

eval{$pst1->Folders("$mf[0]")->Folders->Add("$mf[1]");};

When you normally create a folder in Outlook there is a dropdown 'Folder Contains"... you can then select the folder type... how can I do this with my script?

Can you tell me how to set the folder class when it is created e.g. Contacts or Calendar ?

Many Thanks