The code below uses javamail API to access gmail,
String host = \"pop.gmail.com\"; int port = 995; Properties properties = new Properties();
Don't use POP, use IMAP if you want labels/folders.
As noted in the javamail docs, due to the nature of the POP protocol, a POP message store always
Contains only one folder, "INBOX".