Thanks for looking into it B!
Here is the message using the "original" script.
Folder Sender Recipient Subject Sent Received Calendar RefID(s) PR_RIM_MSG_REF_ID PR_RIM_MSG_FOLDER_ID
\Inbox xxxxxxx, xxxxxxx [NULL] test 11/15/2007 1:19:31 PM 11/15/2007 1:19:32 PM [Not Found] [NULL] [NULL]
As you can see, the fields that I really want are missing (RefID(s), PR_RIM_MSG_REF_ID and PR_RIM_MSG_FOLDER_ID).