[ 
https://issues.apache.org/jira/browse/JAMES-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487642#comment-13487642
 ] 

james commented on JAMES-1440:
------------------------------

hi,
        i used codes  as follows to test  pop3 and imap‘s  capability of 
james.it is so slow when use imap to connect server and get unread mail count 
when there are more than  30000 mails. it is also slow to connect server with 
pop3 when the count of mail attain  to 100000.
 



public static void main(String[]args){
      Properties pop=new Properties();
    //set pop
    //.................
    Session session=Session.getDefaultInstance(pop);
    String host="",username="", password="";
     Store store= session.getStore("imap");

      //it is slow when using imap protocol
      store.connect(host,username, password);
      Folder folder = store.getFolder("INBOX");
      folder.open(Folder.READ_ONLY);
      int count = folder.getMessageCounts();
      //it is slow when using imap protocol
      int uncount = folder.getUnreadMessageCounts();
}
                
> Imap receive mail  when there are many mails
> --------------------------------------------
>
>                 Key: JAMES-1440
>                 URL: https://issues.apache.org/jira/browse/JAMES-1440
>             Project: JAMES Server
>          Issue Type: Bug
>          Components: IMAPServer
>    Affects Versions: 3.0-beta4
>         Environment: linux
>            Reporter: james
>              Labels: IMAP, mail
>
> hi,all
>         i have received mail from james that there are 30 thousand mails in 
> inbox,using javamail api with imap protocol. But it consumed 22s time to open 
> inbox mailbox,just open, not get messages.Then i changed the protocol to 
> pop3,it only cost 40ms. Why? Do imap  not support good when lagre of mails?
>                                                                               
>                                                 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to