Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: umount on December 20, 2010, 03:44:45 AM

Title: Embeded folder error
Post by: umount on December 20, 2010, 03:44:45 AM
I have embeded folder in Inbox - Redmine.

If i want check it i have error "Mailbox does not exist, or must be subscribed to"

On hard disk this folder exist. On previos roundcube version all work perfect.
after update trunk all broken.
Title: Embeded folder error
Post by: alec on December 20, 2010, 05:16:08 AM
Check imap_ns_* settings. Also enable imap_debug and show the log.
Title: Embeded folder error
Post by: umount on December 20, 2010, 06:31:01 AM
Quote from: alec;31888Check imap_ns_* settings. Also enable imap_debug and show the log.

in config
$rcmail_config['imap_ns_personal'] = null;
$rcmail_config['imap_ns_other']    = null;
$rcmail_config['imap_ns_shared']   = null;


imap_log
[20-Dec-2010 14:26:33 +0300]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc.  See COPYING for distribution information.
[20-Dec-2010 14:26:33 +0300]: C: A0001 CAPABILITY
[20-Dec-2010 14:26:33 +0300]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION
[20-Dec-2010 14:26:33 +0300]: S: A0001 OK CAPABILITY completed
[20-Dec-2010 14:26:33 +0300]: C: A0002 AUTHENTICATE PLAIN
[20-Dec-2010 14:26:33 +0300]: S: +
[20-Dec-2010 14:26:33 +0300]: C: Mzc0NzE3NDM4MTIxQHdta2VlcGVyLmNvbQAzNzQ3MTc0MzgxMjFAd21rZWVwZXIuY29tAE0yMGdZV2RR
[20-Dec-2010 14:26:33 +0300]: S: A0002 OK LOGIN Ok.
[20-Dec-2010 14:26:33 +0300]: C: A0003 LSUB "" "*"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.INBOX.Redmine"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.&BB8EPgQ0BDQENQRABDYEOgQw- &BD8EPgRHBEIEMA-"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.&BB8EPgQ0BDQENQRABDYEOgQw-"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.&BBAEQARFBDgEMg-"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\Marked \HasChildren) "." "INBOX"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Trash"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Sent"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Drafts"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Doubt"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\Noselect \HasChildren) "." "INBOX.INBOX"
[20-Dec-2010 14:26:33 +0300]: S: A0003 OK LSUB completed
[20-Dec-2010 14:26:33 +0300]: C: A0004 GETQUOTAROOT INBOX
[20-Dec-2010 14:26:33 +0300]: S: * QUOTAROOT "INBOX" "ROOT"
[20-Dec-2010 14:26:33 +0300]: S: * QUOTA "ROOT" (STORAGE 40820 488282)
[20-Dec-2010 14:26:33 +0300]: S: A0004 OK GETQUOTAROOT Ok.
[20-Dec-2010 14:26:33 +0300]: C: A0005 LOGOUT
[20-Dec-2010 14:26:33 +0300]: S: * BYE Courier-IMAP server shutting down
[20-Dec-2010 14:26:33 +0300]: S: A0005 OK LOGOUT completed
[20-Dec-2010 14:26:33 +0300]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc.  See COPYING for distribution information.
[20-Dec-2010 14:26:33 +0300]: C: A0001 CAPABILITY
[20-Dec-2010 14:26:33 +0300]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION
[20-Dec-2010 14:26:33 +0300]: S: A0001 OK CAPABILITY completed
[20-Dec-2010 14:26:33 +0300]: C: A0002 AUTHENTICATE PLAIN
[20-Dec-2010 14:26:33 +0300]: S: +
[20-Dec-2010 14:26:33 +0300]: C: Mzc0NzE3NDM4MTIxQHdta2VlcGVyLmNvbQAzNzQ3MTc0MzgxMjFAd21rZWVwZXIuY29tAE0yMGdZV2RR
[20-Dec-2010 14:26:33 +0300]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc.  See COPYING for distribution information.
[20-Dec-2010 14:26:33 +0300]: C: A0001 CAPABILITY
[20-Dec-2010 14:26:33 +0300]: S: A0002 OK LOGIN Ok.
[20-Dec-2010 14:26:33 +0300]: C: A0003 STATUS INBOX.Redmine (MESSAGES UNSEEN)
[20-Dec-2010 14:26:33 +0300]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PLAIN ACL ACL2=UNION
[20-Dec-2010 14:26:33 +0300]: S: A0001 OK CAPABILITY completed
[20-Dec-2010 14:26:33 +0300]: C: A0002 AUTHENTICATE PLAIN
[20-Dec-2010 14:26:33 +0300]: S: A0003 NO Mailbox does not exist, or must be subscribed to.
[20-Dec-2010 14:26:33 +0300]: S: +
[20-Dec-2010 14:26:33 +0300]: C: Mzc0NzE3NDM4MTIxQHdta2VlcGVyLmNvbQAzNzQ3MTc0MzgxMjFAd21rZWVwZXIuY29tAE0yMGdZV2RR
[20-Dec-2010 14:26:33 +0300]: C: A0004 LOGOUT
[20-Dec-2010 14:26:33 +0300]: S: * BYE Courier-IMAP server shutting down
[20-Dec-2010 14:26:33 +0300]: S: A0004 OK LOGOUT completed
[20-Dec-2010 14:26:33 +0300]: S: A0002 OK LOGIN Ok.
[20-Dec-2010 14:26:33 +0300]: C: A0003 LSUB "" "*"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.INBOX.Redmine"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.&BB8EPgQ0BDQENQRABDYEOgQw- &BD8EPgRHBEIEMA-"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.&BB8EPgQ0BDQENQRABDYEOgQw-"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.&BBAEQARFBDgEMg-"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\Marked \HasChildren) "." "INBOX"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Trash"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Sent"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Drafts"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\HasNoChildren) "." "INBOX.Doubt"
[20-Dec-2010 14:26:33 +0300]: S: * LSUB (\Noselect \HasChildren) "." "INBOX.INBOX"
[20-Dec-2010 14:26:33 +0300]: S: A0003 OK LSUB completed
[20-Dec-2010 14:26:33 +0300]: C: A0004 LOGOUT
[20-Dec-2010 14:26:33 +0300]: S: * BYE Courier-IMAP server shutting down
[20-Dec-2010 14:26:33 +0300]: S: A0004 OK LOGOUT completed
Title: Embeded folder error
Post by: umount on December 20, 2010, 06:34:54 AM
on hard disk

.&BB8EPgQ0BDQENQRABDYEOgQw-
.&BB8EPgQ0BDQENQRABDYEOgQw- &BD8EPgRHBEIEMA-
.&BBAEQARFBDgEMg-
courierimaphieracl
courierimapkeywords
courierimapsubscribed
courierimapuiddb
courierpop3dsizelist
cur
.Doubt
.Drafts
.INBOX.Redmine
maildirsize
mailfilter
new
.Sent
tmp
.Trash
Title: Embeded folder error
Post by: alec on December 20, 2010, 07:26:53 AM
A bug. http://trac.roundcube.net/ticket/1487637
Title: Embeded folder error
Post by: umount on December 29, 2010, 05:22:58 AM
Quote from: alec;31894A bug. #1487637 (Handling of folders that doesn't belong to any namespace) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1487637)

It is a not bug only trunk it a bug 0.5RC also.

Why Milestone:   0.6-beta ?

I can not use roundcube, 0.5 or svn version, while the given problem won't be solved

I'm use Courier-imap and it don't have altnamespace option
Title: Embeded folder error
Post by: alec on December 29, 2010, 06:32:59 AM
Read this #1487657 (imap folders wrong prefix) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1487657)
Title: Embeded folder error
Post by: umount on December 29, 2010, 07:18:02 AM
Quote from: alec;32061Read this #1487657 (imap folders wrong prefix) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1487657)

Im use  latest trunk version in config
$rcmail_config['imap_ns_personal'] = 'INBOX.';
$rcmail_config['imap_ns_other'] = null;
$rcmail_config['imap_ns_shared'] = null;

use patch from #1487657 (imap folders wrong prefix) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1487657)

Include folder not work

[29-Dec-2010 15:04:52 +0300]: S: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUT
H=PLAIN ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc.  See COPYING for distribution information.
[29-Dec-2010 15:04:52 +0300]: C: A0001 CAPABILITY
[29-Dec-2010 15:04:52 +0300]: S: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=PL
AIN ACL ACL2=UNION
[29-Dec-2010 15:04:52 +0300]: S: A0001 OK CAPABILITY completed
[29-Dec-2010 15:04:52 +0300]: C: A0002 AUTHENTICATE PLAIN
[29-Dec-2010 15:04:52 +0300]: S: +
[29-Dec-2010 15:04:52 +0300]: C: Mzc0NzE3NDM4MTIxQHdta2VlcGVyLmNvbQAzNzQ3MTc0MzgxMjFAd21rZWVwZXIuY29tAE0yMGdZV2RR
[29-Dec-2010 15:04:52 +0300]: S: A0002 OK LOGIN Ok.
[29-Dec-2010 15:04:52 +0300]: C: A0003 STATUS INBOX.Redmine (MESSAGES UNSEEN)
[29-Dec-2010 15:04:52 +0300]: S: A0003 NO Mailbox does not exist, or must be subscribed to.
[29-Dec-2010 15:04:52 +0300]: C: A0004 LOGOUT

Request should be  INBOX.INBOX.Redmine but it INBOX.Redmine

If I use
$rcmail_config['imap_ns_personal'] = null;
$rcmail_config['imap_ns_other'] = null;
$rcmail_config['imap_ns_shared'] = null;

All work but folder list look ugly.
Title: Embeded folder error
Post by: alec on December 29, 2010, 08:54:42 AM
Ahh, sorry, for INBOX.INBOX.* issue you'll need #1487637. And this is for 0.6 because this will be big and not backward compatible change.
Title: Embeded folder error
Post by: umount on December 29, 2010, 09:09:55 AM
Quote from: alec;32067Ahh, sorry, for INBOX.INBOX.* issue you'll need #1487637. And this is for 0.6 because this will be big and not backward compatible change.

All who use Courier-IMAP can't normal use roundcube 0.5 and trunk . It is a pity.
Title: Embeded folder error
Post by: alec on December 29, 2010, 01:49:35 PM
I think all except INBOX.INBOX (and it's subfolders) should work.
Title: Embeded folder error
Post by: umount on January 11, 2011, 02:35:23 AM
Quote from: alec;32073I think all except INBOX.INBOX (and it's subfolders) should work.

It is not enough of it for normal functioning of the mail server
Title: Embeded folder error
Post by: umount on January 11, 2011, 03:26:45 AM
If remove

                foreach ($this->namespace['personal'] as $ns) {
                    if ($ns[0] && strpos($mbox_name, $ns[0]) === 0) {
                        return $mbox_name;
                    }
                }

All work perfect.
Title: Embeded folder error
Post by: ericpepin on January 11, 2011, 06:19:55 AM
Great discussion comes out with a good result. Thank you all...
Title: Embeded folder error
Post by: pszemaz on January 15, 2011, 06:35:00 AM
Hi!

Exact the same problem with Dovecot and Maildirs.
Umount's fix helped.
Thx!

PS. I think this bug should be fixed as soon as possible and released new ver. of Roundcube.

pszemaz
Title: Embeded folder error
Post by: max on January 16, 2011, 12:57:52 PM
thanx umount, works
Title: Embeded folder error
Post by: milegrin on February 23, 2011, 03:14:46 PM
After spending all day struggling and pulling my hair out; I can confirm this fix works for RCW 0.5.1 and courier-imap 4.6.0 running on Ubuntu.

+1 for a permanent fix to be included in next release!

Thank you.