A NOTE has been added to this issue.
======================================================================
http://www.dbmail.org/mantis/view.php?id=417
======================================================================
Reported By: johnke
Assigned To:
======================================================================
Project: DBMail
Issue ID: 417
Category: IMAP daemon
Reproducibility: always
Severity: minor
Priority: normal
Status: new
target:
======================================================================
Date Submitted: 26-Sep-06 16:13 CEST
Last Modified: 26-Sep-06 22:38 CEST
======================================================================
Summary: Erratic "Select" command creating non-existent
folders
Description:
When logging into a new account (no messages in Inbox, no sub-folders),
running the SELECT command on non-existent folders causes dbmail to create
an all-uppercase folder of the same name and report the non-existent folder
as existing. After creating the all-uppercase folder, it then reports the
folder of the correct name as not existing.
======================================================================
----------------------------------------------------------------------
aaron - 26-Sep-06 22:38
----------------------------------------------------------------------
Problem appears to be in dbmail-imapsession.c:
int dbmail_imap_session_mailbox_open(struct ImapSession * self, const char
* mailbox)
{
int result;
u64_t mailbox_idnr;
imap_userdata_t *ud = (imap_userdata_t *) self->ci->userData;
char *tmp;
/* get the mailbox_idnr */
mailbox_idnr = dbmail_imap_session_mailbox_get_idnr(self,
mailbox);
if ((! mailbox_idnr ) && (strncasecmp(mailbox,"INBOX",5)==0)) {
/* create missing INBOX for this authenticated user */
tmp = g_ascii_strup(mailbox,-1);
result = db_createmailbox(tmp, ud->userid,
&mailbox_idnr);
g_free(tmp);
}
This chunk of code will create the upper case version of anything that
begins with INBOX. Not so good!
I'm not sure why you aren't getting case-insensitive behavior. Perhaps
this was broken in 2.1.6, I don't recall when I fixed up the case
sensitivity code. I don't see that half of the bug in current SVN.
Issue History
Date Modified Username Field Change
======================================================================
26-Sep-06 16:13 johnke New Issue
26-Sep-06 18:16 jasb Issue Monitored: jasb
26-Sep-06 22:38 aaron Note Added: 0001418
======================================================================