Results 1 to 3 of 3
  1. #1
    minujj is offline Member
    Join Date
    Aug 2009
    Posts
    3
    Rep Power
    0

    Smile How to connect to folders other than Inbox when using imap in JavaMail

    Hello,
    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,
    Minotee Joshi
    Support Engineer
    ProStor Systems
    Boulder, CO 80301

  2. #2
    cyberhitesh is offline Member
    Join Date
    Aug 2009
    Posts
    1
    Rep Power
    0

    Default Reading IMAP Folder

    Hi,
    Try changing the folder name:
    Example:
    // Retrieve the "Inbox"
    folder = folder.getFolder("inbox");

  3. #3
    minujj is offline Member
    Join Date
    Aug 2009
    Posts
    3
    Rep Power
    0

    Default

    I am retrieving the Inbox in the same way. Infact, Inbox with a capital I throws an exception and I read somewhere that use inbox to retrieve the inbox folder. I have a customers folder that is not a subfolder of inbox. How do I access that?:confused:

Similar Threads

  1. Lots of my folders have become read-only
    By Manoeuvre in forum Eclipse
    Replies: 5
    Last Post: 12-02-2008, 01:48 PM
  2. Folders instead of packages after OS crashed
    By Kubuntek in forum Eclipse
    Replies: 0
    Last Post: 08-03-2008, 03:26 PM
  3. PM Inbox Limit Increased
    By JavaBean in forum Suggestions & Feedback
    Replies: 7
    Last Post: 01-17-2008, 09:48 PM
  4. Replies: 2
    Last Post: 11-27-2007, 02:45 PM
  5. URGENTTT...zip folders in java
    By rach in forum New To Java
    Replies: 3
    Last Post: 08-13-2007, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •