How to connect to folders other than Inbox when using imap in JavaMail
I have just started using JavaMail. I use the store "imap" and connect to a Thunderbird client. The purpose of my code is to read attachments from a folder and download it to a location on my hard drive. This part is getting implemented successfully and I can read and save attachments from my inbox folder. I have read in the JavaMail API documentation that you can access folders other than Inbox when using IMAP. I have a folder called customers in my account which is a different folder than Inbox. I want to connect to this folder and read and save attachments, the same thing that I am doing currently. Can any one suggest a way to do this?
Also, because I am using ThunderBird, I can't make the customers folder a subfolder of Inbox.
Thanks and Regards,
Boulder, CO 80301