The following issue has been UPDATED. ====================================================================== http://www.dbmail.org/mantis/view.php?id=987 ====================================================================== Reported By: fabiangergely Assigned To: paul ====================================================================== Project: DBMail Issue ID: 987 Category: IMAP daemon Reproducibility: always Severity: minor Priority: normal Status: resolved target: Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 26-Sep-12 17:21 CEST Last Modified: 25-Jul-13 16:02 CEST ====================================================================== Summary: Imap: Folder with subfolders and with Cyrillic name doesn't show \Haschildren flag in List answer Description: If you create a folder (eg. at root level) with Cyrillic name and create subfolders for it (don't need to be essentially in Cyrillic), then the main folder won't have \HasChildren flag in the LIST response.
Example: Create folder structure: Київ -> Майдан (transcription: Kyiv -> Majdan) .. list "" "%" * LIST (\hasnochildren) "/" "&BBoEOARXBDI-" .... [further folders listed] .. OK LIST completed If you specifically request for the folder's subfolders, then they are visible. .. list "&BBoEOARXBDI-/" "%" * LIST (\hasnochildren) "/" "&BBoEOARXBDI-/&BBwEMAQ5BDQEMAQ9-" * LIST (\hasnochildren) "/" "&BBoEOARXBDI-/&BCYENQRABDoEMgQw-" .. OK LIST completed ====================================================================== ---------------------------------------------------------------------- (0003491) fabiangergely (reporter) - 27-Sep-12 12:45 http://www.dbmail.org/mantis/view.php?id=987#c3491 ---------------------------------------------------------------------- The attached file (0001-Imap-Folder-in-Cyrillic-doesn-t-show-Haschildren-fla.patch) is my proposed solution for this bug. The '%' char should be excluded from replacement. Also another correction is made to correctly turn off the 'verbatim' state. In my understanding of the RFC the '-' char closing the Modified BASE64 data is still part of that data (however this won't make any big difference for the query). ---------------------------------------------------------------------- (0003492) fabiangergely (reporter) - 04-Oct-12 17:12 http://www.dbmail.org/mantis/view.php?id=987#c3492 ---------------------------------------------------------------------- I attached a test script in Ruby (test-bug-987.rb). You need to change the username and password (and eventually the server's host) before running it. Running it with the original version fails the test cases (it checks for the Hasnochildren flag). After applying my patch it passes. ---------------------------------------------------------------------- (0003503) fabiangergely (reporter) - 04-Oct-12 17:11 http://www.dbmail.org/mantis/view.php?id=987#c3503 ---------------------------------------------------------------------- Our fork's (https://github.com/moveone/dbmail) m1 branch contains a rebased version (with 9bed91b1, aka. origin/master~17; we could do just this due to an error in master) of the patch. It has also been extended with Python tests (testBug987() method in testimap.py). ---------------------------------------------------------------------- (0003548) paul (administrator) - 25-Jul-13 15:59 http://www.dbmail.org/mantis/view.php?id=987#c3548 ---------------------------------------------------------------------- Patch merged using the moveone github branch. One of the tests in check_dbmail_db.c fails. I've disabled that test for now. Issue History Date Modified Username Field Change ====================================================================== 26-Sep-12 17:21 fabiangergely New Issue 26-Sep-12 17:31 fabiangergely Note Added: 0003491 26-Sep-12 17:31 fabiangergely File Added: 0001-Imap-Folder-in-Cyrillic-doesn-t-show-Haschildren-fla.patch 26-Sep-12 17:32 fabiangergely Note Edited: 0003491 26-Sep-12 17:32 fabiangergely Note Edited: 0003491 27-Sep-12 12:45 fabiangergely Note Edited: 0003491 27-Sep-12 12:46 fabiangergely File Added: test-bug-987.rb 27-Sep-12 12:48 fabiangergely Note Added: 0003492 04-Oct-12 17:11 fabiangergely Note Added: 0003503 04-Oct-12 17:12 fabiangergely Note Edited: 0003492 25-Jul-13 15:59 paul Note Added: 0003548 25-Jul-13 15:59 paul Assigned To => paul 25-Jul-13 15:59 paul Status new => resolved 25-Jul-13 15:59 paul Resolution open => fixed ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev