This is my IMAP code:
imap = Net::IMAP.new(\'outlook.office365.com\', 993, true) imap.login(\'USERNAME\', \'PASSWORD\') imap.examine("FOLDER1") imap