How can I get the ID of the currently selected email?

Regards Bjrn