On Mon, 25 Jul 2011, Wagner, David --- Sr Programmer Analyst --- CFS wrote: > On Mon, 25 Jul 2011, Jan Dubois wrote: > >Sorry, no time to test right now, but I suspect something like this > >might work: > > > >my $folder = $namespace->Folders("Outlook Data File")->Folders("Alternate > >Input"); > > > Thanks, Jan. That was close, but what I ended up was doing a > properties against the other inbox: > \\Mailbox - Email.Reports > So I removed the \\ and used that portion for the first Folders > and for the second Folders used Inbox and was able to read...
Yes, that is exactly the same idea. The first name is the MAPI folder or *.pst file name, and the second one is the name of your folder inside of it. My sample strings assumed the default Outlook 2010 *.pst filename, and an alternate folder for a second inbox inside the same file. BTW, it may be possible to write your example like this: my $folder = $namespace->Folders("Mailbox - Email.Reports\\Inbox"); > I appreciate the insight. > Know you are busy, but when the time is available, where does > one find out such info. Never would have found it. I looked at the MS > Outlook 12.0 Object Library. I found Folders and if that is the right > Folders, I do not see it.. In this case I just looked at some scripts I had already written to figure it out. When I don't have any previous samples, then I have to do the same thing as everyone else: search on Google, read the object model docs, and experiment with trial & error. It *is* a time consuming thing for anything non-standard, but navigating the folder hierarchy is still pretty common. Now, configuring custom AutoArchive settings for each folder is something I wasted several hours on. :) Cheers, -Jan _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs