POP3 to IMAP4

Since POP3 didn't work out as I wanted, I changed the protocol used to retrieve the emails to IMAP4 using the S22.Imap library.