added functionality for the 'move to trash'-button for email messages