A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=987 ====================================================================== Reported By: fabiangergely Assigned To: ====================================================================== Project: DBMail Issue ID: 987 Category: IMAP daemon Reproducibility: always Severity: minor Priority: normal Status: new target: ====================================================================== Date Submitted: 26-Sep-12 17:21 CEST Last Modified: 04-Oct-12 17:11 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) - 27-Sep-12 12:48 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 Hasnoattachment 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). 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 ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev