Sorry,
I'm having a hiccup with moving items to new folders and I'm a bit slow on the uptake this morning.
I have a nice script that runs through the inbox and creates a CSV file of the email contents (the emails are html forms that come from an external partner and need to be loaded into our CMDB). What I want it to do next is move the processed email into a time stamped folder so I can debug any issues.
I'm having a brain fart trying to think it through so please excuse anything below that is painfully obvious!
Was the error you had with this line?
_OL_ItemMove($oOutlook, $aOL_Item[1][0], Default, "*\Outlook-UDF-Test\TargetFolder\Mail")
and was it resolved by changing it to this
_OL_ItemMove($oOutlook, $aOL_Item[0][0], Default, "*\Outlook-UDF-Test\TargetFolder\Mail")
Or am I off track?
Thanks
David