Update handling of unread messages
Fill labels and flags for emails