[FIX] mail: set the parent_id to the first message of type email