in reply to Re: Mail::Outlook and Archive.pst
in thread Mail::Outlook and Archive.pst

Boy... there's a lot of stuff in there for me to learn. Thanks a lot!

However... I don't see where you set which Inbox you're pointing $outlook to. I guess you've reached your main Inbox - I'm trying to read messages from my Archive (which used to be 'Archive/Inbox', but that name doesn't work anymore).

Do you know how we could access the Archive mailbox?

Thanks,

VMat

Replies are listed 'Best First'.
Re^3: Mail::Outlook and Archive.pst
by Anonymous Monk on Mar 23, 2013 at 01:22 UTC

    Hi,

    It's been a while and I don't work for that firm now, so these are the steps to take not code.

    Start up Outlook and select the folder.

    In your code using $ol as the OLE connection to Outlook -

    Use '$exp = $ol->ActiveExplorer to find the right instance of Outlook.

    $sel = $exp->Selection to get the selected folder details.

    These should include the folder's name.

    Like I say this is from memory, so may need some ( a lot ) of work, but should point you in a viable direction.

    J.C>