The following example shows you how to retrieve single message or all messages from specified folder.