-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message list too short after delete/move, old messages missing #4245
Comments
Comment by @alecpl on 18 Jun 2013 06:25 UTC Enable imap_debug and provide the log starting from the moment when you move/delete messages. Provide your config. |
Milestone changed by @alecpl on 18 Jun 2013 06:25 UTC later => 1.0-beta |
Comment by cepheid on 18 Jun 2013 06:33 UTC I don't know that this has to do with moving/deleting specifically... it's just that I know I moved some stuff, and now the message list appears shorter. One important thing to note, however, is that even if I delete the RC sqlite DB and start from scratch, the message view list remains too short, i.e. this problem does not appear to be resolved by delete the sqlite DB. (Deleting cookies also had no effect.) Config file and log coming up. |
Comment by cepheid on 18 Jun 2013 07:04 UTC IMAP debug log has been attached, along with config files. The IMAP debug log begins when I log into RC, into page 1 of the message list. I don't have caching enabled (at least, I don't think I do) but the log does not show any messages being loaded... this makes me thing RC is caching something. On the other hand, deleting the SQlite DB and starting from scratch doesn't change anything, so if anything is getting cached, I have no idea where. After logging in, I select a message; it is displayed in the preview pane. I delete the message and wait for the confirmation. The message list is now shorter by one message (and still well under 50 messages). Just in case, I now reload the message list (by clicking on the "Mail" icon in the top right). Message headers are fetched, but the message list still shows the same (reduced) number of messages... nothing close to 50. Anything pop out as incorrect? |
Comment by cepheid on 18 Jun 2013 07:13 UTC BTW, I've attached a second piece to the debug log... after the --- LAST PAGE --- line. Here, I clicked the >| button to get to the last page of the message list, i.e. what SHOULD show the very oldest messages in my INBOX. According to the message list, RC claims to display messages 7701 to 7715 (of 7715). The actual message list shows only three messages, and as you can see from the log, those are NOT messages #1-15, they are messages #868-870. Looking at the mailbox with pine confirms this is the case -- the three displayed messages are indeed 868-870 (date ascending order), so RC is very clearly missing a whole bunch of messages. |
Comment by @alecpl on 18 Jun 2013 07:14 UTC This is wrong:
You could fix this, if your server allows capabilities list modification, by disabling ESEARCH. |
Status changed by @alecpl on 18 Jun 2013 07:14 UTC new => closed |
Comment by cepheid on 18 Jun 2013 07:26 UTC I'll look into disabling this. Could you explain why it's wrong, and is there any other way to fix this or work around this within RC if I cannot disable ESEARCH? I hate to bring up SQmail again since I know RC isn't SQmail (which is exactly why I want to install RC =D), but somehow SQmail is not affected by this issue... does it not use ESEARCH or how else does it work around this? |
Comment by @alecpl on 18 Jun 2013 07:30 UTC There's no option, but you can modify rcube_imap_generic class code to not use ESEARCH capability features. |
Comment by cepheid on 18 Jun 2013 07:34 UTC Will that reduce or otherwise affect performance or usability? Could you also please explain why the ESEARCH response is wrong? As in, what is wrong about it? If we can file a bug report with uw-imap then it might be patchable. Thanks! |
Comment by @alecpl on 18 Jun 2013 07:36 UTC Replying to cepheid:
Yes, it has impact on performance, but not very big.
|
Comment by cepheid on 18 Jun 2013 07:45 UTC Replying to alec:
|
Comment by @alecpl on 18 Jun 2013 07:49 UTC It should not return a range, but message UIDs in compact form. |
Comment by @alecpl on 18 Jun 2013 07:51 UTC Hmm... maybe we could add a workaround. We can check if it returns more messages than EXISTS. |
Status changed by @alecpl on 18 Jun 2013 07:51 UTC closed => reopened |
Comment by cepheid on 18 Jun 2013 07:59 UTC Replying to alec:
Replying to alec:
Replying to alec:
|
Comment by @alecpl on 18 Jun 2013 08:22 UTC Replying to cepheid:
These must be range(s) without holes.
I think my idea might not work, if UW-IMAP also has a wrong response to searches with criteria. Here's my proposed patch:
So, I'm closer to wontfix now. |
Comment by cepheid on 18 Jun 2013 08:30 UTC Replying to alec:
When testing, should I apply this patch directly, or is there something else I should do before/during testing? Let me know if you change the code before I test tomorrow. =) |
Comment by @alecpl on 18 Jun 2013 08:32 UTC Test messages search in Roundcube. |
Comment by cepheid on 18 Jun 2013 08:36 UTC Er... not sure I understand. You mean, use the search box and search for something, e.g. an email address or keyword or some such? |
Comment by @alecpl on 18 Jun 2013 08:40 UTC Yes. |
Status changed by @alecpl on 2 Jul 2013 12:52 UTC reopened => closed |
Comment by cepheid on 3 Jul 2013 03:44 UTC Do you still want me to test that other patch, since it implements a different fix? That is, both methods avoid this issue, but one deactivates ESEARCH entirely, one only if ESEARCH returns invalid results. I can still test the other patch if you want (I apologize for not doing it yet, I got busy). |
Reported by cepheid on 18 Jun 2013 05:37 UTC as Trac ticket #1489184
I have RC set to display 50 rows per screen, i.e. 50 messages at a time in the message list. On the very first page, I've then moved/deleted a bunch of messages, so there are fewer than 50 messages in the list. When I refresh the list, there are STILL fewer than 50 messages... in fact, the list is the same sequence of messages it was before (minus the deleted ones).
Even if I compact the mailbox, logout, and log back in, the list for page 1 claims to be showing messages 1-50, but is actually showing far fewer messages. See attached screenshot #1.
The TOTAL message count is correct; the number it claims to be displaying is totally wrong.
Also, a (very probably) related problem: messages on later screens are also now misnumbered. For example, on the "final" page (see second screenshot), only one message is displayed even though it claims to be displaying 13 of them. Moreover, the message displayed is NOT #7801... it is actually #6951. On the "next to final" page, only 4 messages are displayed... they are correct in sequence (#6946-6950), but definitely NOT the messages #7751-7800 that RC claims to be showing.
Logging in with pine or Thunderbird confirms the above -- the messages are displayed in proper sequence but the message list is misbehaving. Likely due to the second bug, any messages older than the one displayed on the last page are also absolutely invisible to RC... pine/Thunderbird show that there are 863 older messages in the mailbox, but RC can't seem to pull them up.
The first error (message list too short) is mostly an interface issue... confusing and wrong, but no data loss. The second error is critical -- I can't access old mail that clearly exists in the mailbox, is visible to other IMAP clients, but is not visible to RC.
Please let me know what kind of IMAP logs you need to diagnose this (as in, after enabling the log, what sequence of steps/clicks you want to see in the log).
Migrated-From: http://trac.roundcube.net/ticket/1489184
The text was updated successfully, but these errors were encountered: