Author Topic: fail to list mail when number of mail in folder is huge  (Read 3451 times)

Offline Napoleon Lam

  • Newbie
  • *
  • Posts: 6
fail to list mail when number of mail in folder is huge
« on: August 29, 2017, 05:20:05 AM »
Hi,
  I had problem with roundcubemail now. i found out when no of mail is large enough, around (200,000). there is no mail list, and log files did not indicate a failure.

below is the log from /var/mail/maillog
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] C: A0029 STATUS Archives/2012 (MESSAGES UNSEEN)
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * STATUS Archives/2012 (MESSAGES 217328 UNSEEN 216283)
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: A0029 OK Status completed (0.177 + 0.000 + 0.176 secs).
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] C: A0030 SELECT Archives/2012
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * OK [CLOSED] Previous mailbox closed.
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft unknown-0 unknown-1 unknown-2 unknown-4)
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft unknown-0 unknown-1 unknown-2 unknown-4 \*)] Flags permitted.
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * 217328 EXISTS
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * 0 RECENT
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * OK [UNSEEN 1] First unseen.
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * OK [UIDVALIDITY 1279354523] UIDs valid
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * OK [UIDNEXT 218643] Predicted next UID
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: A0030 OK [READ-WRITE] Select completed (0.001 + 0.000 secs).
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] C: A0031 UID SEARCH 217328
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: * SEARCH 218642
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: A0031 OK Search completed (0.001 + 0.000 secs).
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] C: A0032 GETQUOTAROOT Archives/2012
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] S: A0032 OK No quota (0.001 + 0.000 secs).
Aug 29 17:08:42 ct-openldap roundcube: <pod91mur> [4C5F] C: A0033 UID THREAD REFS US-ASCII ALL

please help.
Napoleon

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: fail to list mail when number of mail in folder is huge
« Reply #1 on: August 30, 2017, 02:09:00 AM »
As you see the IMAP server is not responding in time. So, you should be looking in the IMAP server configuration to make it faster. All you can do in Roundcube is to not use threaded mode.

Offline Napoleon Lam

  • Newbie
  • *
  • Posts: 6
Re: fail to list mail when number of mail in folder is huge
« Reply #2 on: August 30, 2017, 03:52:21 AM »
Hi Alec,

   how?

Thanks
Napoleon

Offline alec

  • Hero Member
  • *****
  • Posts: 1,365
Re: fail to list mail when number of mail in folder is huge
« Reply #3 on: August 30, 2017, 04:44:53 AM »
There are two icon/buttons in the footer of the messages list, on the left.

Offline Napoleon Lam

  • Newbie
  • *
  • Posts: 6
Re: fail to list mail when number of mail in folder is huge
« Reply #4 on: August 30, 2017, 05:16:53 AM »
Thanks, it solved the listing.

I also like to look at the imap configuration on how to make it faster and also able to successfully list the mail by configuring the timeout to make it list all the time.

do you had any information of what setting need to be concern on dovecot?

Offline Napoleon Lam

  • Newbie
  • *
  • Posts: 6
Re: fail to list mail when number of mail in folder is huge
« Reply #5 on: August 31, 2017, 02:29:34 AM »
Hi Alec
  i could not find how to configure imap server to make it faster on the web. could you show me the link?

Thanks
Napoleon

Offline Napoleon Lam

  • Newbie
  • *
  • Posts: 6
Re: fail to list mail when number of mail in folder is huge
« Reply #6 on: September 01, 2017, 02:22:11 AM »
Hi,
could I know what is the maximum number of mail in a folder? should not be because of number of mail on the list?

Thanks
Napoleon

Offline Napoleon Lam

  • Newbie
  • *
  • Posts: 6
Re: fail to list mail when number of mail in folder is huge
« Reply #7 on: September 01, 2017, 03:00:31 AM »
and below is the dovecot.log

Sep  1 14:54:41 ct-openldap dovecot: imap(master@xxx.com): Debug: acl vfile: file /var/vmail/vmail1/xxx.com/master/Maildir/.&V4NXPpD1TvY-/dovecot-acl not found
Sep  1 14:54:41 ct-openldap dovecot: imap(master@xxx.com): Debug: acl vfile: file /var/vmail/vmail1/xxx.com/master/Maildir/.&UiqWZHaEkPVO9g-/dovecot-acl not found
Sep  1 14:54:41 ct-openldap dovecot: imap(master@xxx.com): Debug: acl vfile: file /var/vmail/vmail1/xxx.com/master/Maildir/.&W8RO9lCZTv0-/dovecot-acl not found

the cache file is relative big for those failed one

dovecot.index.cache is very huge in size compare to the success one, below is failed one

-rw-r--r--   1 vmail vmail        12 Aug 31 16:52 dovecot-keywords
-rwxr-xr-x   1 vmail vmail  20185791 Aug 31 16:52 dovecot-uidlist
-rw-r--r--   1 vmail vmail        17 Sep  1 14:46 dovecot-uidlist.lock
-rw-------   1 vmail vmail   4637480 Aug 31 17:27 dovecot.index
-rw-------   1 vmail vmail 136794336 Sep  1 14:47 dovecot.index.cache
-rw-r--r--   1 vmail vmail        72 Aug 31 17:27 dovecot.index.log
-rw-r--r--   1 vmail vmail   4637572 Aug 31 17:14 dovecot.index.log.2