是POP3是不可能的
是IMAP是可能的

解决方案 »

  1.   

    Imap可以用Folder.create()来增加文件夹
    public abstract boolean create(int type)
                            throws MessagingExceptionCreate this folder on the Store. When this folder is created, any folders in its path that do not exist are also created. 
    If the creation is successful, a CREATED FolderEvent is delivered to any FolderListeners registered on this Folder and this Store.Parameters:
    type - The type of this folder.
    Returns:
    true if the creation succeeds, else false.
    Throws:
    MessagingException -  
    See Also: 
    HOLDS_FOLDERS, HOLDS_MESSAGES, FolderEvent
      

  2.   

    那怎样置这个文件夹的名呢比如我要建一个ABC文件夹??
      

  3.   

    我已解决了,谢谢各位的关注!
    代码如下:
     Folder cFolder = store.getFolder("abcd"); //获取一个文件夹
      if (!cFolder.exists()) //当文件夹不存在的时候就创建他
            cFolder.create(Folder.HOLDS_MESSAGES);