A NOTE has been added to this issue. ====================================================================== http://www.dbmail.org/mantis/view.php?id=978 ====================================================================== Reported By: fabiangergely Assigned To: ====================================================================== Project: DBMail Issue ID: 978 Category: IMAP daemon Reproducibility: always Severity: minor Priority: normal Status: new target: ====================================================================== Date Submitted: 26-Jul-12 17:18 CEST Last Modified: 26-Jul-12 17:44 CEST ====================================================================== Summary: List command returns folder with \Noselect when it has no such flag saved Description: If I create a specific hierarchy of folders (below), and mailboxes_by_regex() returns matching folders in a given order (depends on database, and the exact data), then the "target folder" will be returned with the \Noselect flag, even though it does not have this flag saved in the database. This is reproducible just if I use the '%' wildcard.
Example: .. list "Test another/" "%" * LIST (\noselect \haschildren) "/" "Test another/test" .. OK LIST completed ====================================================================== ---------------------------------------------------------------------- (0003464) fabiangergely (reporter) - 26-Jul-12 17:44 http://www.dbmail.org/mantis/view.php?id=978#c3464 ---------------------------------------------------------------------- The attached patch is one solution to the problem. It orders the folders returned by dm_db.c/mailboxes_by_regex(), so that parent folders always appear before their children. Then the bug cannot be reproduced. An alternative solution would be to give folder names originating from partial matches a lower "priority", so that they wouldn't mask out real folders (with priority queue or two lists). Issue History Date Modified Username Field Change ====================================================================== 26-Jul-12 17:18 fabiangergely New Issue 26-Jul-12 17:18 fabiangergely File Added: 0001-Imapcommands.c-debugging.patch 26-Jul-12 17:40 fabiangergely File Added: 0001-IMAP-fix-unexpected-Noselect-in-list-command-respons.patch 26-Jul-12 17:44 fabiangergely Note Added: 0003464 ====================================================================== _______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev