Here is an updated version of the script that also tries to find a RefID for calendar items. This is hot off the presses (and the way the BES stores the calendar RefIDs is fairly complicated), so I would definitely appreciate hearing from people regarding whether it works or not.
There is a separate column for the calendar RefIDs because they're obtained in a different way.
Code:
Deleted, see updated version in next post.