If IMAP cache is enabled then the command to directly delete message in Junk folder ("Empty") is greyed out even if the option is enabled in preferences. Is this a bug? If it is intended then the option in server settings shouldn't be shown.
Works for me or I don't understand your problem.
Please look at attached screenshots. There are no plugins enabled. It is a default Roundcube 1.0 stable.
Screenshot 1 (wo_cache.png): 'imap_cache' and 'messages_cache' is disabled => "Empty" command is enabled
Screenshot 2 (w_cache.png): 'imap_cache' and 'messages_cache' is enabled => "Empty" command is greyed out (disabled)
In bove screenshots "Junk" mailbox is selected and option to directly delete messages in Junk folder is enabled (Settings -> Server Settings).
On 05/10/2014 04:41 AM, Rosali wrote:
Screenshot 1 (wo_cache.png): 'imap_cache' and 'messages_cache' is disabled => "Empty" command is enabled
Screenshot 2 (w_cache.png): 'imap_cache' and 'messages_cache' is enabled => "Empty" command is greyed out (disabled)
Here on screenshot I see that Inbox is selected, but let's assume "Empty" is not active also on Junk. I'm still unable to reproduce.
The "directly delete messages in Junk" option is irrelevant.
Try with disabled plugins. Do some debug in purge_mailbox_test() method in app.js. Do some debug on $exists variable in steps/mail/list.inc. Imap_debug log might be needed.
Screenshot 1 (wo_cache.png): 'imap_cache' and 'messages_cache' is disabled => "Empty" command is enabled
Screenshot 2 (w_cache.png): 'imap_cache' and 'messages_cache' is enabled => "Empty" command is greyed out (disabled)
Here on screenshot I see that Inbox is selected, but let's assume "Empty" is not active also on Junk. I'm still unable to reproduce.
The "directly delete messages in Junk" option is irrelevant.
Try with disabled plugins. Do some debug in purge_mailbox_test() method in app.js. Do some debug on $exists variable in steps/mail/list.inc. Imap_debug log might be needed.
Will do. All plugins were already disabled. Corrected screenshot (Junk selected is attached).
On 05/10/2014 10:24 AM, Rosali wrote:
Will do. All plugins were already disabled. Corrected screenshot (Junk selected is attached).
and the folder is not empty, right?
On 10.05.2014 16:00, A.L.E.C wrote:
On 05/10/2014 10:24 AM, Rosali wrote:
Will do. All plugins were already disabled. Corrected screenshot (Junk selected is attached).
and the folder is not empty, right?
Yes, the folder is not empty.
On 05/10/2014 10:24 AM, Rosali wrote:
Will do. All plugins were already disabled. Corrected screenshot (Junk selected is attached).
and the folder is not empty, right?
$exists in steps/mail/list.inc was zero even if Junk folder contained messages. I have deleted the database cache manually and issue disappeared. So it looks like it has cached a message count of zero which was never updated. I don't have an answer yet why this happened.
On 05/12/2014 06:19 AM, Rosali wrote:
$exists in steps/mail/list.inc was zero even if Junk folder contained messages. I have deleted the database cache manually and issue disappeared. So it looks like it has cached a message count of zero which was never updated. I don't have an answer yet why this happened.
This should fix the issue.
https://github.com/roundcube/roundcubemail/commit/9eda939676fe4a027a229e76d4...
$exists in steps/mail/list.inc was zero even if Junk folder contained messages. I have deleted the database cache manually and issue disappeared. So it looks like it has cached a message count of zero which was never updated. I don't have an answer yet why this happened.
This should fix the issue.
https://github.com/roundcube/roundcubemail/commit/9eda939676fe4a027a229e76d4...
As far as I can see it should really fix it definitely. Thank you! I'll keep you posted.