Correctly store message_id after delivering a reply mail.