[Connect/Mail] Made Messages serializable.