This simple code gets and prints all mail from a string.