PerlJammer has asked for the wisdom of the Perl Monks concerning the following question:
Then, I copy the PST to a "destination" folder under my Mailbox folder$objNameSpace = $namespace->AddStore(<PST>);
The problem is that when I copy the "source" folder to the "destination" folder, it no longer shows as "Test PST 01" (or such). Instead, it shows as "Top of Personal Folders1". The only clue is that I have a PST named "Personal Folders" in my namespace. However, all of the "items" and/or subfolders from "Test PST 01" are there intact. Just the new folder name is screwy. I tried using the following syntax to re-name the folders one-by-one:$new_obj = $objMapiFolder_Source->CopyTo($objMapiFolder_Dest);
...which fails quietly And$new_obj->Name("new folder name")
...which gives me an error stating "can't modify non-lvalue subroutine call". I'm at wits end.$new_obj->Name = "New folder name";
|
|---|