Hi,

When I create a mailbox (rev 2192) with latest Thundebird, I see in the logs that dbmail checks for the existance of the mailbox twice, so that it wouldn't create two mailboxes with the same name. But why twice? It does no harm, but I see no point in doing so either, the SQL is exactly the same.

Here's the trace level 5 syslog. Trimmed the dates and the subscribe part:

Info COMMAND: [12 create "Hellou"]
Debug arg[0]: 'Hellou'
Info imap4.c,IMAPClientHandler: Executing command create...
Debug db.c,db_findmailbox: looking for mailbox with FQN [Hellou].
Debug dbmysql.c,db_query: query [SELECT mailbox_idnr FROM dbmail_mailboxes WHERE name LIKE 'Hellou' AND owner_idnr='17']
Debug db.c,db_findmailbox_owner: no mailbox found
Debug checking for 'Hellou'...
Debug db.c,db_findmailbox: looking for mailbox with FQN [Hellou].
Debug dbmysql.c,db_query: query [SELECT mailbox_idnr FROM dbmail_mailboxes WHERE name LIKE 'Hellou' AND owner_idnr='17']
Debug db.c,db_findmailbox_owner: no mailbox found
Debug imapcommands.c,_ic_create: Checking if we have the right to create mailboxes under mailbox [0] Debug dbmysql.c,db_query: query [INSERT INTO dbmail_mailboxes (name, owner_idnr,seen_flag, answered_flag, deleted_flag, flagged_flag, recent_flag, draft_flag, permission) VALUES ('Hellou', '17', 1, 1, 1, 1, 1, 1, 2)] Debug db.c,db_createmailbox: created mailbox with idnr [13] for user [17] result [0]
Debug RESPONSE: [12 OK CREATE completed^M ]
Info imap4.c,IMAPClientHandler: Finished command create [0]

What gives?

Alex

Reply via email to