The program fetches 10 latest emails using IMAP protocol