Ticket #1485146 (new Bugs)

Opened 4 months ago

Last modified 10 hours ago

Incorrect "No messages found in this mailbox" message

Reported by: etechweb Owned by:
Priority: 5 Milestone: 0.2-stable
Component: IMAP connection Version: 0.2-alpha
Severity: major Keywords:
Cc:

Description

Loading mailboxes with a large number of messages fails: a message "No messages found in this mailbox" is displayed in the upper region of the browser window, the message list is empty but the count of messages displayed is correct.

Thunderbird can see all the messages in the mailbox, and the message count are the same between RoundCube and Thunderbird. Going to the last page of this mailbox displays the messages, however going back to the first page gives again the message "No messages found in this mailbox".

I'm attaching a screenshot and a capture of the HTTP traffic done with Fiddler (I've changed the hostname of my server to a bogus one).

Change History

Changed 4 months ago by etechweb

For whatever reason I cannot attach my screenshot, I'm getting "OSError: [Errno 13] Permission denied: '/var/www/trac.roundcube.net/attachments/ticket/1485146'". I'm pasting below the HTTP traffic capture:

HTTP REQUEST ============ GET /webmail/?_task=mail&_action=list&_mbox=Archiveopteryx&_page=1&_refresh=1&_remote=1 HTTP/1.1 Accept: */* Accept-Language: en-us Referer: https://www.myserver.invalid/webmail/?_task=mail x-roundcube-referer: 6491e2ba1cc2c3c037b0e16d13a22d9f UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648) Host: www.myserver.invalid Connection: Keep-Alive Cookie: roundcube_sessid=6491e2ba1cc2c3c037b0e16d13a22d9f

HTTP RESPONSE ============= HTTP/1.1 200 OK X-Powered-By: PHP/5.2.6 Expires: Fri, 20 Jun 2008 14:43:50 GMT Last-Modified: Fri, 20 Jun 2008 14:43:50 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-Type: application/x-javascript; charset=UTF-8 Vary: Accept-Encoding Date: Fri, 20 Jun 2008 14:43:50 GMT Server: lighttpd/1.4.19 Content-Length: 418

/** ajax response [20/Jun/2008 04:43:50 +0200] **/ this.set_env({mailbox:'Archiveopteryx',quota:,trash_mailbox:'Trash',drafts_mailbox:'Drafts',junk_mailbox:'Junk',messagecount:1868,pagecount:47}); this.set_pagetitle('RoundCube Webmail :: Archiveopteryx'); this.set_rowcount('Messages 1 to 40 of 1868'); this.display_message('No messages found in this mailbox','notice'); this.set_unread_count('Archiveopteryx',0,0);

Changed 4 months ago by alec

  • milestone changed from later to 0.2-beta

Changed 4 months ago by alec

  • component changed from Core functionality to IMAP connection

What IMAP server? Anything in the logs?

Changed 4 months ago by etechweb

IMAP server is Archiveopteryx 2.10 http://www.archiveopteryx.org/

I've set

$rcmail_config['debug_level']=8;

and in roundcube/logs/console I find several repetition of the following:

[30-Jun-2008 17:01:40 +0200]: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 AUTH=PLAIN ACL ANNOTATE BINARY CATENATE CHILDREN COMPRESS=DEFLATE CONDSTORE ENABLE ESEARCH ID IDL
E LITERAL+ NAMESPACE RIGHTS=ekntx SASL-IR SORT STARTTLS UIDPLUS UNSELECT URLAUTH WITHIN
cp01 OK done
Trying CRAM-MD5
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
Got challenge: + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
Tried CRAM-MD5:
Tried PLAIN: Resource id #40

(I've put the "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" myself, the actual authentication fragments are different).

There's nothing however in roundcube/logs/errors (no line is written to that file).

Changed 2 months ago by tom

same problem here, my web server is courier, squirrelmail used on the same account is able to show the messages.

Changed 2 days ago by alec

Please, check with svn-trunk version. Also check with disabled cache. Also debug IMAP communication (ie. uncomment console() colls in lib/imap.inc)

Changed 22 hours ago by etechweb

What do you mean by "disabled cache"? If the browser cache, disabling the browser's cache has no effect, the incorrect message is still present. If you mean the

rcmail_config['enable_caching']

configuration setting, it has always been set to false in my installation

I tried today with trunk (revision 1976, on Oct 13th): there is no change, the message is still displayed.

The following is the trace for the IMAP communication, after uncommenting the console(): this is one of the "problematic" mailboxes, Thunderbird reports 2249 messages in it and it looks to me that the right information is sent by the IMAP server.

[13-Oct-2008 20:12:28 +0200]: S: a000 OK [CAPABILITY IMAP4rev1 ACL ANNOTATE BINARY CATENATE CHILDREN COMPRESS=DEFLATE CONDSTORE ENABLE ESEARCH ID IDLE LITERAL+ NAMESPACE RIGHTS=ekntx SORT STARTTLS UIDPLUS UNSELECT URLAUTH WITHIN] done
[13-Oct-2008 20:12:28 +0200]: C: cp01 CAPABILITY
[13-Oct-2008 20:12:28 +0200]: S: * CAPABILITY IMAP4rev1 AUTH=CRAM-MD5 AUTH=DIGEST-MD5 AUTH=PLAIN ACL ANNOTATE BINARY CATENATE CHILDREN COMPRESS=DEFLATE CONDSTORE ENABLE ESEARCH ID IDLE LITERAL+ NAMESPACE RIGHTS=ekntx SASL-IR SORT STARTTLS UIDPLUS UNSELECT URLAUTH WITHIN
[13-Oct-2008 20:12:28 +0200]: S: cp01 OK done
[13-Oct-2008 20:12:28 +0200]: C: ns1 NAMESPACE
[13-Oct-2008 20:12:28 +0200]: S: * NAMESPACE (("" "/")) (("/users/" "/")) (("/" "/"))
[13-Oct-2008 20:12:28 +0200]: S: ns1 OK done
[13-Oct-2008 20:12:28 +0200]: C: ghd LIST "" ""
[13-Oct-2008 20:12:28 +0200]: S: * LIST () "/" ""
[13-Oct-2008 20:12:28 +0200]: S: ghd OK done
[13-Oct-2008 20:12:28 +0200]: C: sel1 SELECT "Archiveopteryx"
[13-Oct-2008 20:12:28 +0200]: S: * 2249 EXISTS
[13-Oct-2008 20:12:28 +0200]: S: * 0 RECENT
[13-Oct-2008 20:12:28 +0200]: S: * OK [UIDNEXT 2623] next uid
[13-Oct-2008 20:12:28 +0200]: S: * OK [UIDVALIDITY 1] uid validity
[13-Oct-2008 20:12:28 +0200]: S: * FLAGS (\Deleted \Answered \Flagged \Draft \Seen NonJunk Junk $MDNSent)
[13-Oct-2008 20:12:28 +0200]: S: * OK [PERMANENTFLAGS (\Deleted \Answered \Flagged \Draft \Seen NonJunk Junk $MDNSent \*)] permanent flags
[13-Oct-2008 20:12:28 +0200]: S: sel1 OK [READ-WRITE] done
[13-Oct-2008 20:12:28 +0200]: C: s SORT (DATE) US-ASCII ALL
[13-Oct-2008 20:12:29 +0200]: S: * SORT 1159 1158 1157 1155 1154 1156 1153 1151 1152 1150 1149 1148 1147 1146 1145 1144 1143 1142 1141 1140 1139 1138 1137 1135 1136 1134 1133 1132 1131 1129 1130 1128 1127 1126 1125 1124 1123 1122 1121 1120 1119 1118 1117 1116 1115 1114 1113 1112 1111 1109 1110 1107 1108 1106 1105 1102 1100 1099 1098 1097 1096 1095 1094 1093 1092 1101 1091 1090 1089 1088 1087 1086 1085 1084 1083 1076 1075 1082 1081 1080 1079 1078 1077 1074 1073 1072 1071 1067 1070 1069 1060 1068 1066 1065 1064 1063 1062 1061 1059 1058 1057 1056 1055 1054 1053 1052 1051 1050 1049 1047 1048 1046 1045 1044 1043 1042 1041 1040 1038 1037 1036 1035 1034 1033 1032 1031 1030 1029 1028 1027 1026 1039 1104 1103 1025 1024 1023 1022 1021 1020 1019 1018 1017 1013 1012 1016 1015 1014 1010 1009 1008 1007 1006 1005 1004 1003 1002 996 997 1001 1000 999 998 995 1011 994 993 992 988 991 990 987 986 985 984 989 983 981 982 980 979 976 975 974 978 973 977 972 971 970 968 967 966 965 958 964 963 962 957 955 954 953 952 961 949 948 960 947 959 946 951 944 943 942
[13-Oct-2008 20:12:29 +0200]: S: 941 950 969 938 940 939 945 935 937 936 933 932 924 931 922 921 920 918 919 917 927 925 916 915 913 912 914 911 910 909 906 904 903 902 901 900 899 897 905 934 898 908 926 930 896 895 923 894 893 892 890 889 885 888 887 884 886 883 882 907 929 928 881 880 879 878 877 875 876 874 873 891 869 872 868 867 865 871 864 866 870 863 862 861 852 860 850 859 849 858 857 848 856 851 847 846 855 854 853 845 843 841 844 842 840 839 837 838 836 835 834 833 832 831 830 829 828 827 817 816 803 815 814 813 794 793 792 791 790 789 802 812 801 788 800 811 810 809 804 808 806 807 805 787 826 786 785 784 783 782 781 780 779 825 824 823 820 819 818 775 757 756 755 754 753 822 752 821 751 774 773 772 799 778 771 798 777 797 776 796 770 769 768 767 766 765 764 763 750 749 748 795 747 725 745 737 724 746 716 736 762 744 743 735 715 741 714 740 742 723 734 733 732 731 730 729 728 713 712 711 710 761 709 703 702 708 707 706 705 739 738 701 700 698 699 697 696 691 695 694 693 689 688 687 686 685 684 722 721 690 720 719 678 718 717 727
[13-Oct-2008 20:12:29 +0200]: S:  726 676 675 674 673 672 671 692 670 657 655 653 647 656 652 651 646 645 644 643 642 641 650 637 634 636 629 654 640 635 628 627 669 668 649 648 625 624 704 623 956 760 759 758 622 633 632 621 683 619 682 681 680 679 631 630 618 620 616 617 615 614 613 607 606 605 612 667 666 665 664 663 662 661 660 659 658 611 610 598 597 592 596 595 593 594 591 609 608 604 603 602 590 589 588 587 584 583 571 570 582 569 568 581 580 579 576 578 575 574 577 573 572 566 565 564 567 563 562 601 600 599 561 560 559 558 557 556 555 554 553 552 626 677 551 550 549 548 546 545 586 585 544 540 539 538 543 547 532 531 530 529 528 527 526 525 524 523 522 521 519 520 518 516 515 517 514 513 537 536 512 511 510 542 541 509 508 506 507 505 504 503 502 501 497 496 495 494 499 498 500 492 485 484 493 483 480 482 491 490 487 486 481 489 488 461 460 458 457 459 455 454 452 453 451 450 449 446 448 447 445 444 443 432 435 425 434 431 430 429 428 424 427 433 426 418 423 422 415 414 479 478 413 417 412 477 476 442 441 440 436 439 437 438 475 47
[13-Oct-2008 20:12:29 +0200]: S: 4 473 411 410 409 406 405 404 403 408 402 407 401 400 399 398 472 471 470 469 397 396 468 395 394 393 387 386 383 391 390 392 389 385 388 382 456 384 421 416 420 419 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 347 345 344 535 343 340 333 348 346 332 342 339 534 341 338 328 331 327 326 325 324 337 323 322 318 314 321 336 313 312 320 335 319 334 311 317 316 315 639 638 467 330 466 465 464 463 329 462 310 309 308 307 306 305 304 303 302 301 298 297 300 296 295 299 293 294 292 291 290 289 288 286 287 285 284 283 282 281 280 279 278 277 276 275 274 273 255 254 272 271 270 269 267 266 265 264 268 263 262 261 260 259 253 252 258 251 249 247 250 248 246 245 242 241 240 239 238 233 232 237 231 236 235 234 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 213 206 212 205 201 204 203 211 210 209 208 207 202 257 256 200 199 198 193 197 196 195 192 191 190 189 194 188 187 186 185 180 179 184 183 182 181 176 175 174 166 173 1
[13-Oct-2008 20:12:29 +0200]: S: 72 165 164 163 171 170 169 168 167 162 533 161 160 159 178 158 157 215 177 156 155 152 145 154 144 151 150 149 148 147 146 244 243 143 153 142 141 140 139 134 133 132 131 130 129 128 121 120 119 124 127 126 125 118 117 116 214 138 137 136 135 123 122 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 96 95 99 98 97 94 93 92 91 90 89 88 87 86 85 84 83 80 82 81 79 100 78 77 76 73 72 71 70 69 68 67 65 66 75 64 63 62 61 60 59 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 24 23 22 29 28 37 27 26 36 31 30 35 34 33 32 74 58 57 25 21 19 20 18 14 17 16 15 13 12 11 10 9 8 7 6 5 4 3 2 1 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651
[13-Oct-2008 20:12:29 +0200]: S: 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1708 1705 1706 1707 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1807 1806 1805 1804 1803 1802 1801 1800 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 185
[13-Oct-2008 20:12:29 +0200]: S: 7 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1922 1918 1923 1919 1920 1924 1921 1925 1926 1927 1928 1929 1930 1931 1932 1934 1933 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2
[13-Oct-2008 20:12:29 +0200]: S: 062 2063 2064 2065 2066 2068 2069 2067 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2105 2103 2104 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2182 2181 2179 2180 2183 2185 2184 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249
[13-Oct-2008 20:12:29 +0200]: S: s OK done
[13-Oct-2008 20:12:29 +0200]: C: srch1 SEARCH ALL UNSEEN
[13-Oct-2008 20:12:29 +0200]: S: * SEARCH
[13-Oct-2008 20:12:29 +0200]: S: srch1 OK done
[13-Oct-2008 20:12:29 +0200]: C: I LOGOUT

From the look of it, it seems much more an UI bug rather than an IMAP communication issue. This would explain why it happens for tom above who's using Courier.

Changed 10 hours ago by alec

Communication looks good, but there's some reason that _list_headers() (include/rcube_imap.php) returns empty result, because "no messages" notice is displayed when this happens. I have no problems with big mailboxes, maybe it's some php config issue. You should debug _list_headers() function (e.g. using console($somevar) calls).
To tom: some currier issues was fixed, try with svn-trunk version.

Note: See TracTickets for help on using tickets.