Retrieval of sent messages: code complete and tested