The following issue has been RESOLVED. ====================================================================== http://www.dbmail.org/mantis/view.php?id=467 ====================================================================== Reported By: lkneschke Assigned To: aaron ====================================================================== Project: DBMail Issue ID: 467 Category: IMAP daemon Reproducibility: always Severity: major Priority: normal Status: resolved target: Resolution: fixed Fixed in Version: 2.2 branch ====================================================================== Date Submitted: 05-Dec-06 14:41 CET Last Modified: 07-Dec-06 09:52 CET ====================================================================== Summary: LIST "Sent" "%" fails only on one folder Description: Listing the information about the Sent folder fails. Other folders don't create this problem.
* OK dbmail imap (protocol version 4r1) server 2.2 ready to run a001 login username password a001 OK LOGIN completed A0006 LIST "Sent" "%" A0006 BAD reference name contains invalid characters That's the output from syslog: Dec 5 08:54:57 ubuntu dbmail/imap4d[18541]: Info:[imap] imap4.c,IMAPClientHandler(+200): COMMAND: [A0006 LIST "Sent" "%"] Dec 5 08:54:57 ubuntu dbmail/imap4d[18541]: Debug:[imapsession] dbmail-imapsession.c,build_args_array_ext(+2132): arg[0]: 'Sent' Dec 5 08:54:57 ubuntu dbmail/imap4d[18541]: Debug:[imapsession] dbmail-imapsession.c,build_args_array_ext(+2132): arg[1]: '%' Dec 5 08:54:57 ubuntu dbmail/imap4d[18541]: Info:[imap] imap4.c,IMAPClientHandler(+313): Executing command list... Dec 5 08:54:57 ubuntu dbmail/imap4d[18541]: Debug:[imapsession] dbmail-imapsession.c,dbmail_imap_session_printf(+1299): RESPONSE: [A0006 BAD reference name contains invalid characters^M ] Dec 5 08:54:57 ubuntu dbmail/imap4d[18541]: Info:[imap] imap4.c,IMAPClientHandler(+341): Finished command list [1] What could be the problem? ====================================================================== ---------------------------------------------------------------------- paul - 05-Dec-06 22:12 ---------------------------------------------------------------------- Lars, The LIST "Sent" "%" is not valid because it will never return anything. The mailbox separator is missing. However, the BAD response is also invalid. A bug indeed. ---------------------------------------------------------------------- lkneschke - 06-Dec-06 06:38 ---------------------------------------------------------------------- Hello Paul! I don't want to have the children of Sent, but want to check if Sent exists. From that point of view, the mailbox separator makes no sense. Right? And why does it work with the Drafts folder? Both folders exists. a002 List "Drafts" "%" * LIST (\hasnochildren) "/" "Drafts" a002 OK LIST completed a003 List "Sent" "%" a003 BAD reference name contains invalid characters a004 List "" "*" * LIST (\hasnochildren) "/" "Drafts" * LIST (\hasnochildren) "/" "INBOX" * LIST (\hasnochildren) "/" "Junk" * LIST (\hasnochildren) "/" "Sent" * LIST (\hasnochildren) "/" "Trash" ---------------------------------------------------------------------- aaron - 06-Dec-06 07:22 ---------------------------------------------------------------------- Please SELECT the relevant rows the dbmail_mailboxes and dbmail_acls tables and attach a level 5 log of running those two LIST commands. ---------------------------------------------------------------------- lkneschke - 06-Dec-06 08:16 ---------------------------------------------------------------------- Just have a look at the attached file. It should contain all requested informations. ---------------------------------------------------------------------- aaron - 06-Dec-06 09:34 ---------------------------------------------------------------------- What's in common here? If the string contains the letter located at the string's length + 1 in the alphabet, it fails. stridx in dm_imaputil.c is being misused from imapcommands.c (line 699). The slen value should be strlen(AcceptedMailboxnameChars) rather than the mailbox name argument's length. a02 list "DRAFTS" "%" a02 OK LIST completed a03 list "Sent" "%" a03 BAD reference name contains invalid characters a04 list "Draught" "%" a04 BAD reference name contains invalid characters a05 list "Mashup" "%" a05 OK LIST completed a05 list "Masgup" "%" a05 BAD reference name contains invalid characters ---------------------------------------------------------------------- aaron - 06-Dec-06 09:42 ---------------------------------------------------------------------- SVN 2387. ---------------------------------------------------------------------- lkneschke - 06-Dec-06 16:22 ---------------------------------------------------------------------- There is still another problem. The Sent folder is working now. But now i have problems with #Users (the namespace thing). Dec 5 13:07:25 ubuntu dbmail/imap4d[20413]: Info:[imap] imap4.c,IMAPClientHandler(+200): COMMAND: [A00014 LIST "#Users" "*"] Dec 5 13:07:25 ubuntu dbmail/imap4d[20413]: Debug:[imapsession] dbmail-imapsession.c,build_args_array_ext(+2132): arg[0]: '#Users' Dec 5 13:07:25 ubuntu dbmail/imap4d[20413]: Debug:[imapsession] dbmail-imapsession.c,build_args_array_ext(+2132): arg[1]: '*' Dec 5 13:07:25 ubuntu dbmail/imap4d[20413]: Info:[imap] imap4.c,IMAPClientHandler(+313): Executing command list... Dec 5 13:07:25 ubuntu dbmail/imap4d[20413]: Debug:[imapsession] dbmail-imapsession.c,dbmail_imap_session_printf(+1299): RESPONSE: [A00014 BAD reference name contains invalid characters^M ] Dec 5 13:07:25 ubuntu dbmail/imap4d[20413]: Info:[imap] imap4.c,IMAPClientHandler(+341): Finished command list [1] Dec 5 13:07:27 ubuntu dbmail/imap4d[20413]: Info:[imap] imap4.c,IMAPClientHandler(+200): COMMAND: [A00014 LIST "#Users/" "*"] Dec 5 13:07:27 ubuntu dbmail/imap4d[20413]: Debug:[imapsession] dbmail-imapsession.c,build_args_array_ext(+2132): arg[0]: '#Users/' Dec 5 13:07:27 ubuntu dbmail/imap4d[20413]: Debug:[imapsession] dbmail-imapsession.c,build_args_array_ext(+2132): arg[1]: '*' Dec 5 13:07:27 ubuntu dbmail/imap4d[20413]: Info:[imap] imap4.c,IMAPClientHandler(+313): Executing command list... Dec 5 13:07:27 ubuntu dbmail/imap4d[20413]: Debug:[imapsession] dbmail-imapsession.c,dbmail_imap_session_printf(+1299): RESPONSE: [A00014 BAD reference name contains invalid characters^M ] Dec 5 13:07:27 ubuntu dbmail/imap4d[20413]: Info:[imap] imap4.c,IMAPClientHandler(+341): Finished command list [1] ---------------------------------------------------------------------- aaron - 06-Dec-06 16:32 ---------------------------------------------------------------------- SVN 2388. ---------------------------------------------------------------------- lkneschke - 06-Dec-06 18:25 ---------------------------------------------------------------------- Now it works. Thanks! ---------------------------------------------------------------------- aaron - 07-Dec-06 09:52 ---------------------------------------------------------------------- Added # in SVN 2388 since we have #Users and #Public. Issue History Date Modified Username Field Change ====================================================================== 05-Dec-06 14:41 lkneschke New Issue 05-Dec-06 22:12 paul Note Added: 0001647 05-Dec-06 22:12 paul Status new => assigned 05-Dec-06 22:12 paul Assigned To => paul 06-Dec-06 06:38 lkneschke Note Added: 0001648 06-Dec-06 07:22 aaron Note Added: 0001649 06-Dec-06 08:15 lkneschke File Added: dbmail_bug_467.txt 06-Dec-06 08:16 lkneschke Note Added: 0001650 06-Dec-06 09:30 aaron Note Added: 0001651 06-Dec-06 09:34 aaron Note Edited: 0001651 06-Dec-06 09:41 aaron Assigned To paul => aaron 06-Dec-06 09:42 aaron Status assigned => resolved 06-Dec-06 09:42 aaron Fixed in Version => 2.2 branch 06-Dec-06 09:42 aaron Resolution open => fixed 06-Dec-06 09:42 aaron Note Added: 0001652 06-Dec-06 16:22 lkneschke Status resolved => feedback 06-Dec-06 16:22 lkneschke Resolution fixed => reopened 06-Dec-06 16:22 lkneschke Note Added: 0001653 06-Dec-06 16:32 aaron Note Added: 0001654 06-Dec-06 18:25 lkneschke Note Added: 0001655 07-Dec-06 09:52 aaron Status feedback => resolved 07-Dec-06 09:52 aaron Resolution reopened => fixed 07-Dec-06 09:52 aaron Note Added: 0001656 ======================================================================
