[Dovecot] Bug: Creating mbox folders
Hey,
I had trouble this morning creating a folder to contain sub-folders. I am using the mbox format. Turns out that the .imap directory in the new folder (directory) was not being created. Anytime I tried to view a sub-folder (using Thunderbird) dovecot would dump. Once I manually created the .imap directory, it works fine.
dovecot --version -> 2.0.9
dovecot -n # 2.0.9: /etc/dovecot/dovecot.conf # OS: Linux 2.6.35.11-83.fc14.i686 i686 Fedora release 14 (Laughlin) listen = * mbox_write_locks = fcntl passdb { driver = pam } protocols = imap ssl_cert =
The maillog dump...
Mar 16 08:50:22 brinn dovecot: imap(kms): Panic: file mailbox-list.c: line 324 (mailbox_list_get_unexpanded_path): assertion failed: (*location == SETTING_STRVAR_UNEXPAND ED[0]) Mar 16 08:50:22 brinn dovecot: imap(kms): Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0() [0x994051] -> /usr/lib/dovecot/libdovecot.so.0() [0x9940c0] -> /usr/lib /dovecot/libdovecot.so.0(i_fatal+0) [0x96a690] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_get_unexpanded_path+0x138) [0xa086d8] -> /usr/lib/dovecot/libdovec ot-storage.so.0(mailbox_list_mkdir+0x52) [0xa09b32] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_list_create_missing_index_dir+0x129) [0xa09fb9] -> /usr/lib/doveco t/libdovecot-storage.so.0(index_storage_mailbox_open+0xa4) [0xa23c24] -> /usr/lib/dovecot/libdovecot-storage.so.0() [0xa485de] -> /usr/lib/dovecot/libdovecot-storage.so.0 () [0xa04d25] -> dovecot/imap(cmd_select_full+0x1cf) [0x805310f] -> dovecot/imap(cmd_select+0x1a) [0x8053b3a] -> dovecot/imap() [0x80560ed] -> dovecot/imap() [0x80561ca] -> dovecot/imap(client_handle_input+0x12d) [0x805640d] -> dovecot/imap(client_input+0x60) [0x8056d10] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x52) [0x9a18e2] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xd3) [0x9a2b43] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0x9a1860] -> /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x2b) [0x98cfcb] -> dovecot/imap(main+0x33d) [0x805faad] -> /lib/libc.so.6(__libc_start_main+0xe6) [0x732e36] -> dovecot/imap() [0x804e111] Mar 16 08:50:22 brinn dovecot: master: Error: service(imap): child 9753 killed with signal 6 (core dumps disabled)
On Wed, 2011-03-16 at 09:20 -0500, Kelly Stephens wrote:
Hey,
I had trouble this morning creating a folder to contain sub-folders. I am using the mbox format. Turns out that the .imap directory in the new folder (directory) was not being created. Anytime I tried to view a sub-folder (using Thunderbird) dovecot would dump. Once I manually created the .imap directory, it works fine.
dovecot --version -> 2.0.9
I can't reproduce this. Maybe it's been fixed in v2.0.11.
On 03/16/2011 11:16 AM, Timo Sirainen wrote:
On Wed, 2011-03-16 at 09:20 -0500, Kelly Stephens wrote:
Hey,
I had trouble this morning creating a folder to contain sub-folders. I am using the mbox format. Turns out that the .imap directory in the new folder (directory) was not being created. Anytime I tried to view a sub-folder (using Thunderbird) dovecot would dump. Once I manually created the .imap directory, it works fine.
dovecot --version -> 2.0.9 I can't reproduce this. Maybe it's been fixed in v2.0.11.
I've upgraded to 2.0.11. The problem is still present.
dovecot-2.0.11-1.fc14.i686 thunderbird-3.1.9-1.fc14.i686
Kelly
On Wed, 2011-03-23 at 08:55 -0500, Kelly Stephens wrote:
I had trouble this morning creating a folder to contain sub-folders. I am using the mbox format. Turns out that the .imap directory in the new folder (directory) was not being created. Anytime I tried to view a sub-folder (using Thunderbird) dovecot would dump. Once I manually created the .imap directory, it works fine.
dovecot --version -> 2.0.9 I can't reproduce this. Maybe it's been fixed in v2.0.11.
I've upgraded to 2.0.11. The problem is still present.
Still crashes with same message? Try what happens if you do it manually:
mkdir -p /tmp/mail/foo touch /tmp/mail/foo/bar /usr/local/libexec/dovecot/imap -O -o mail=mbox:/tmp/mail a select foo/bar
On Wed, 2011-03-23 at 23:00 +0200, Timo Sirainen wrote:
On Wed, 2011-03-23 at 08:55 -0500, Kelly Stephens wrote:
I had trouble this morning creating a folder to contain sub-folders. I am using the mbox format. Turns out that the .imap directory in the new folder (directory) was not being created. Anytime I tried to view a sub-folder (using Thunderbird) dovecot would dump. Once I manually created the .imap directory, it works fine.
dovecot --version -> 2.0.9 I can't reproduce this. Maybe it's been fixed in v2.0.11.
I've upgraded to 2.0.11. The problem is still present.
Still crashes with same message? Try what happens if you do it manually:
Oh, I just realized the problem. You're relying on autodetection for mail location. The problem goes away if you set it explicitly:
mail_location = mbox:~/mail:INBOX=/var/mail/%u
(or without INBOX, depending on where it really is)
I'll of course fix the bug anyway.
participants (2)
-
Kelly Stephens
-
Timo Sirainen