moved get_date() ahead of create_message_id()