outline of actions following receipt and sending of messages