Assign message_ids to thread. Show mail count