Fix and format sent and unsent messages