You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "james (JIRA)" <se...@james.apache.org> on 2012/10/26 10:15:13 UTC

[jira] [Created] (JAMES-1440) Imap receive mail when there are many mails

james created JAMES-1440:
----------------------------

             Summary: 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: Test
          Components: IMAPServer
    Affects Versions: 3.0-beta4
         Environment: linux
            Reporter: james


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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1440) Imap receive mail when there are many mails

Posted by "james (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487647#comment-13487647 ] 

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

Test both of  file and db using jpa. No other configure change.
                
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1440) Imap receive mail when there are many mails

Posted by "james (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13485921#comment-13485921 ] 

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

hi,all
          I just tested the rate of searching mail used javamail api ,with imap. it is intolerable when i search unread mails in 30000 mails.But with pop3,it is quickly. Why is it so? Is not imap faster than pop3 when receiving and searching mails?
                
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1440) Imap receive mail when there are many mails

Posted by "james (JIRA)" <se...@james.apache.org>.
    [ 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Updated] (JAMES-1440) Imap receive mail when there are many mails

Posted by "james (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

james updated JAMES-1440:
-------------------------

    Issue Type: Bug  (was: Test)
    
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1440) Imap receive mail when there are many mails

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487658#comment-13487658 ] 

Eric Charles commented on JAMES-1440:
-------------------------------------

Thx for the details.

I will be happy to track this down. To help, would you mind packaging a maven module in a zip with the code that feeds the 30000 mails and the code that reads via pop3/imap. I would like to integrate this in the james src so we can fix this.

I you need help to start the james server, just tell me, there is some sample code in the postage trunk project.

Thx again for your help, Eric
                
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


[jira] [Commented] (JAMES-1440) Imap receive mail when there are many mails

Posted by "Eric Charles (JIRA)" <se...@james.apache.org>.
    [ https://issues.apache.org/jira/browse/JAMES-1440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487616#comment-13487616 ] 

Eric Charles commented on JAMES-1440:
-------------------------------------

Hi,

POP3 does not support search function.
Can you post the code you are using and also the details of your james installation (which store: db?,...)

Thx, Eric
                
> 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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org