[Dovecot] Problem use localized prefix in namespace

(Dovecot) Sergey Sidlyarenko tresh_dovecot at lefoyer.ru
Fri Aug 17 21:37:08 EEST 2012


dovecot --version
2.1.7

uname -a
Linux ns 3.2.0-2-amd64 #1 SMP Mon Jun 11 17:24:18 UTC 2012 x86_64 
GNU/Linux
Debian sid

Problem with localized prefix in namespace.
Create namespace

namespace {
   hidden = no
   ignore_on_failure = no
   inbox = no
   list = yes
   location = 
maildir:/var/mail/%d%n/test1:LAYOUT=fs:DIRNAME=maildirfolder:UTF-8
   mailbox next {
     auto = subscribe
     special_use =
   }
   prefix = Тест1/
   separator = /
   subscriptions = yes
   type = private
}
namespace {
   hidden = no
   ignore_on_failure = no
   inbox = no
   list = yes
   location = 
maildir:/var/mail/%d%n/test2:LAYOUT=fs:DIRNAME=maildirfolder:UTF-8
   mailbox next {
     auto = subscribe
     special_use =
   }
   prefix = &BCIENQRBBEI-2/
   separator = /
   subscriptions = yes
   type = private
}

result

A0002 NAMESPACE
* NAMESPACE (("" "/")("links/" "/")({10}
Тест1/ "/")("&BCIENQRBBEI-2/" "/")) NIL NIL
A0002 OK Namespace completed.

A0003 LIST "" "*"
... cut
* LIST (\Noselect \HasChildren) "/" "&BCIENQRBBEI-1"
* LIST (\HasNoChildren) "/" "&BCIENQRBBEI-1/next"
* LIST (\Noselect \HasChildren) "/" "&-BCIENQRBBEI-2"
* LIST (\HasNoChildren) "/" "&-BCIENQRBBEI-2/next"
* LIST (\HasNoChildren) "/" "&BCIENQRBBEI-1/next"
* LIST (\HasNoChildren) "/" "&-BCIENQRBBEI-2/next"
A0002 OK List completed.

A0003 LSUB "" "*"
... cut
* LSUB () "/" "&-BCIENQRBBEI-2/next"
* LSUB () "/" "&BCIENQRBBEI-1/next"
* LSUB () "/" "&BCIENQRBBEI-1/next"
* LSUB () "/" "&-BCIENQRBBEI-2/next"
A0003 OK Lsub completed.

A0004 SELECT "&BCIENQRBBEI-1/next"
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] 
Flags permitted.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1344240572] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
* OK [NOMODSEQ] No permanent modsequences
A0004 OK [READ-WRITE] Select completed.


A0005 SELECT "&BCIENQRBBEI-2/next"
Connection closed by foreign host.

in error log

2012-08-17 22:19:17 imap(admin at lefoyer.ru): Panic: file mail-storage.c: 
line 791 (mailbox_check_mismatching_separators): assertion failed: 
(strncmp(vname, ns->prefix, ns->prefix_len-1) == 0)
2012-08-17 22:19:17 imap(admin at lefoyer.ru): Error: Raw backtrace: 
/usr/lib/dovecot/libdovecot.so.0(+0x4413a) [0x7f8d6bcc613a] -> 
/usr/lib/dovecot/libdovecot.so.0(+0x4417e) [0x7f8d6bcc617e] -> 
/usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f8d6bc9d82a] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(+0x7e506) [0x7f8d6bf8e506] -> 
/usr/lib/dovecot/libdovecot-storage.so.0(mailbox_open+0x18) 
[0x7f8d6bf8e538] -> dovecot/imap(cmd_select_full+0x13e) [0x40ddbe] -> 
dovecot/imap(command_exec+0x3c) [0x4118dc] -> dovecot/imap() [0x4109ae] 
-> dovecot/imap() [0x410a5a] -> dovecot/imap(client_handle_input+0x11d) 
[0x410cad] -> dovecot/imap(client_input+0x62) [0x411552] -> 
/usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x36) [0x7f8d6bcd2ff6] 
-> /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xa7) 
[0x7f8d6bcd3ca7] -> /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x28) 
[0x7f8d6bcd2a08] -> 
/usr/lib/dovecot/libdovecot.so.0(master_service_run+0x13) 
[0x7f8d6bcbf483] -> dovecot/imap(main+0x285) [0x409265] -> 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f8d6b919ead] 
-> dovecot/imap() [0x4093d5]
2012-08-17 22:19:17 imap(admin at lefoyer.ru): Fatal: master: 
service(imap): child 20040 killed with signal 6 (core dumps disabled)


-- 
Best regards,     Sidlyarenko Sergey Aleksandrovish
                         +7(495)509-42-07
tresh_dovecot at lefoyer.ru    mailto:tresh_dovecot at lefoyer.ru



More information about the dovecot mailing list