require the sending of unsent messages before retrieving new ones

after each unsent message is successfully sent, we delete the unsent message so that when we retrieve, we get the “real” (sent) copy of the message, with the correct id.