fixed error with setting the correct receiver_id when storing mails