Author Topic: Problem with SubFolders  (Read 3386 times)

Offline niculin

  • Newbie
  • *
  • Posts: 5
Problem with SubFolders
« on: February 07, 2012, 06:01:07 PM »
Hi,
first of all, congratulations for your project! very good..
But i've some problem with configuration, when i try to make a sub-folder of inbox folder i get error, i think that is a problem of configuration, infact my hosting provided to me an installation of roundcube where subfolder of Inbox are admitted.. In my personal configuration of Roundcube  instead i can't create a sub-folder of Inbox..

My configuration


best regards,
nicola.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,165
Problem with SubFolders
« Reply #1 on: February 08, 2012, 02:58:37 AM »
Enable imap_debug in Roundcube and provide the log from the moments when you: log in, list folders in Settings/Folders and create subfolder of INBOX.

Offline niculin

  • Newbie
  • *
  • Posts: 5
Problem with SubFolders
« Reply #2 on: February 08, 2012, 10:37:33 AM »
here the log, i clean up a little bit

pastebin: roundcube_log - Pastebin.com

or code here:
Code: [Select]
[08-Feb-2012 07:19:18 -0700]: [7912] S: A0001 OK ID completed.
[08-Feb-2012 07:19:18 -0700]: [7912] C: A0002 AUTHENTICATE PLAIN XXXXXXX
[08-Feb-2012 07:19:18 -0700]: [7912] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[08-Feb-2012 07:19:18 -0700]: [7912] C: A0003 LIST "" INBOX
[08-Feb-2012 07:19:18 -0700]: [7912] S: * LIST (\HasChildren) "." "INBOX"
[08-Feb-2012 07:19:18 -0700]: [7912] S: A0003 OK List completed.
[08-Feb-2012 07:19:18 -0700]: [7912] C: A0004 CREATE INBOX.prova1
[08-Feb-2012 07:19:18 -0700]: [7912] S: A0004 OK Create completed.
[08-Feb-2012 07:19:18 -0700]: [7912] C: A0005 SUBSCRIBE INBOX.prova1
[08-Feb-2012 07:19:18 -0700]: [7912] S: A0005 OK Subscribe completed.
[08-Feb-2012 07:19:18 -0700]: [7912] C: A0006 LOGOUT
[08-Feb-2012 07:19:18 -0700]: [7912] S: * BYE Logging out
[08-Feb-2012 07:19:18 -0700]: [7912] S: A0006 OK Logout completed.
[08-Feb-2012 07:19:26 -0700]: [7195] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[08-Feb-2012 07:19:26 -0700]: [7195] C: A0001 ID ("name" "Roundcube Webmail" "version" "0.7.1" "php" "5.2.17" "os" "Linux" "command" "/mail/")
[08-Feb-2012 07:19:26 -0700]: [7195] S: * ID NIL
[08-Feb-2012 07:19:26 -0700]: [7195] S: A0001 OK ID completed.
[08-Feb-2012 07:19:26 -0700]: [7195] C: A0002 AUTHENTICATE PLAIN bmljb2xhQHBpZ3JlLmNvAG5pY29sYUBwaWdyZS5jbwAqPnt1c3V9XVsqYWI=
[08-Feb-2012 07:19:26 -0700]: [7195] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[08-Feb-2012 07:19:26 -0700]: [7195] C: A0003 LIST (SUBSCRIBED) "" "*"
[08-Feb-2012 07:19:26 -0700]: [7195] S: * LIST (\Subscribed) "." "INBOX.prova"
[08-Feb-2012 07:19:26 -0700]: [7195] S: * LIST (\Subscribed) "." "INBOX.provaaa"
[08-Feb-2012 07:19:26 -0700]: [7195] S: * LIST (\Subscribed) "." "INBOX.prova1"
[08-Feb-2012 07:19:26 -0700]: [7195] S: A0003 OK List completed.
[08-Feb-2012 07:19:26 -0700]: [7195] C: A0004 GETQUOTAROOT INBOX
[08-Feb-2012 07:19:26 -0700]: [7195] S: * QUOTAROOT "INBOX"
[08-Feb-2012 07:19:26 -0700]: [7195] S: A0004 OK Getquotaroot completed.
[08-Feb-2012 07:19:26 -0700]: [7195] C: A0005 LOGOUT
[08-Feb-2012 07:19:26 -0700]: [7195] S: * BYE Logging out
[08-Feb-2012 07:19:26 -0700]: [7195] S: A0005 OK Logout completed.
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[08-Feb-2012 07:19:29 -0700]: [FC1E] C: A0001 ID ("name" "Roundcube Webmail" "version" "0.7.1" "php" "5.2.17" "os" "Linux" "command" "/mail/?_task=mail&_action=list&_mbox=INBOX&_refresh=1&_remote=1&_unlock=loading1328710767743&_=1328710767747")
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * ID NIL
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: A0001 OK ID completed.
[08-Feb-2012 07:19:29 -0700]: [FC1E] C: A0002 AUTHENTICATE PLAIN xxxxxxxxxxxx
[08-Feb-2012 07:19:29 -0700]: [359A] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[08-Feb-2012 07:19:29 -0700]: [359A] C: A0001 ID ("name" "Roundcube Webmail" "version" "0.7.1" "php" "5.2.17" "os" "Linux" "command" "/mail/?_task=mail&_action=getunread&&_remote=1&_unlock=0&_=1328710767753")
[08-Feb-2012 07:19:29 -0700]: [359A] S: * ID NIL
[08-Feb-2012 07:19:29 -0700]: [359A] S: A0001 OK ID completed.
[08-Feb-2012 07:19:29 -0700]: [359A] C: A0002 AUTHENTICATE PLAIN bxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[08-Feb-2012 07:19:29 -0700]: [FC1E] C: A0003 STATUS INBOX (MESSAGES UNSEEN)
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * STATUS "INBOX" (MESSAGES 65 UNSEEN 63)
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: A0003 OK Status completed.
[08-Feb-2012 07:19:29 -0700]: [FC1E] C: A0004 SELECT INBOX
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * 65 EXISTS
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * 0 RECENT
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * OK [UNSEEN 1] First unseen.
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * OK [UIDVALIDITY 1327280160] UIDs valid
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * OK [UIDNEXT 66] Predicted next UID
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * OK [HIGHESTMODSEQ 1] Highest
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: A0004 OK [READ-WRITE] Select completed.
[08-Feb-2012 07:19:29 -0700]: [FC1E] C: A0005 FETCH 65 (UID)
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * 65 FETCH (UID 65)
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: A0005 OK Fetch completed.
[08-Feb-2012 07:19:29 -0700]: [FC1E] C: A0006 FETCH 26:65 (UID RFC822.SIZE FLAGS INTERNALDATE BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO X-PRIORITY)])
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: * 26 FETCH (UID 26 RFC822.SIZE 7486 FLAGS () INTERNALDATE "28-Jan-2012 12:31:58 -0700" BODY[HEADER.FIELDS (DATE FROM TO SUBJECT CONTENT-TYPE CC REPLY-TO LIST-POST DISPOSITION-NOTIFICATION-TO X-PRIORITY)] {339}
[08-Feb-2012 07:19:29 -0700]: [FC1E] S: Date: Sat, 28 Jan 2012 11:31:57 -0800

[08-Feb-2012 07:19:30 -0700]: [FC1E] S: )
[08-Feb-2012 07:19:30 -0700]: [359A] S: * LIST (\Subscribed) "." "INBOX.prova"
[08-Feb-2012 07:19:30 -0700]: [359A] S: * LIST (\Subscribed) "." "INBOX.provaaa"
[08-Feb-2012 07:19:30 -0700]: [359A] S: * LIST (\Subscribed) "." "INBOX.prova1"
[08-Feb-2012 07:19:30 -0700]: [359A] S: A0003 OK List completed.
[08-Feb-2012 07:19:30 -0700]: [359A] C: A0004 STATUS INBOX (MESSAGES UNSEEN)
[08-Feb-2012 07:19:30 -0700]: [359A] S: * STATUS "INBOX" (MESSAGES 65 UNSEEN 63)
[08-Feb-2012 07:19:30 -0700]: [359A] S: A0004 OK Status completed.
[08-Feb-2012 07:19:30 -0700]: [359A] C: A0005 STATUS INBOX.prova1 (MESSAGES UNSEEN)


[08-Feb-2012 07:19:30 -0700]: [FC1E] S: )
[08-Feb-2012 07:19:30 -0700]: [FC1E] S: A0006 OK Fetch completed.
[08-Feb-2012 07:19:30 -0700]: [359A] S: * STATUS "INBOX.prova1" (MESSAGES 0 UNSEEN 0)
[08-Feb-2012 07:19:30 -0700]: [359A] S: A0005 OK Status completed.
[08-Feb-2012 07:19:30 -0700]: [359A] C: A0006 LOGOUT
[08-Feb-2012 07:19:30 -0700]: [359A] S: * BYE Logging out
[08-Feb-2012 07:19:30 -0700]: [359A] S: A0006 OK Logout completed.
[08-Feb-2012 07:19:30 -0700]: [FC1E] C: A0007 LOGOUT
[08-Feb-2012 07:19:30 -0700]: [FC1E] S: * BYE Logging out
[08-Feb-2012 07:19:30 -0700]: [FC1E] S: A0007 OK Logout completed.
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[08-Feb-2012 07:27:21 -0700]: [7BD9] C: A0001 ID ("name" "Roundcube Webmail" "version" "0.7.1" "php" "5.2.17" "os" "Linux" "command" "/mail/?_task=mail&_action=list&_mbox=INBOX.prova1&_page=1&_refresh=1&_remote=1&_unlock=loading1328711240407&_=1328711240409")
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: * ID NIL
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: A0001 OK ID completed.
[08-Feb-2012 07:27:21 -0700]: [7BD9] C: A0002 AUTHENTICATE PLAIN bxxxxxxxxxxxxxxxxxxxxxxx
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[08-Feb-2012 07:27:21 -0700]: [7BD9] C: A0003 STATUS INBOX.prova1 (MESSAGES UNSEEN)
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: * STATUS "INBOX.prova1" (MESSAGES 0 UNSEEN 0)
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: A0003 OK Status completed.
[08-Feb-2012 07:27:21 -0700]: [7BD9] C: A0004 LOGOUT
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: * BYE Logging out
[08-Feb-2012 07:27:21 -0700]: [7BD9] S: A0004 OK Logout completed.

Offline alec

  • Hero Member
  • *****
  • Posts: 1,165
Problem with SubFolders
« Reply #3 on: February 08, 2012, 12:40:19 PM »
I don't see NAMESPACE command and server response, but the rest of the log looks fine.

Offline niculin

  • Newbie
  • *
  • Posts: 5
Problem with SubFolders
« Reply #4 on: February 10, 2012, 12:05:20 PM »
the log it's complete, but i don't understand.. why the folder is not listed as subfolder? in the graphic i mean..


prova and provaaaa are sub-folders of INBOX but are not listed as subfolder :(

Offline alec

  • Hero Member
  • *****
  • Posts: 1,165
Problem with SubFolders
« Reply #5 on: February 10, 2012, 01:57:02 PM »
Find NAMESPACE command in your log (it is invoked on log in to Roundcube), also what are your imap_ns_* settings?

Offline niculin

  • Newbie
  • *
  • Posts: 5
Problem with SubFolders
« Reply #6 on: February 12, 2012, 03:34:36 PM »
i found namespace command ;)

Code: [Select]
[08-Feb-2012 07:27:14 -0700]: [C400] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[08-Feb-2012 07:27:14 -0700]: [C400] C: A0001 ID ("name" "Roundcube Webmail" "version" "0.7.1" "php" "5.2.17" "os" "Linux" "command" "/mail/")
[08-Feb-2012 07:27:14 -0700]: [C400] S: * ID NIL
[08-Feb-2012 07:27:14 -0700]: [C400] S: A0001 OK ID completed.
[08-Feb-2012 07:27:14 -0700]: [C400] C: A0002 AUTHENTICATE PLAIN XxxxXXxxXXX=
[08-Feb-2012 07:27:14 -0700]: [C400] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[08-Feb-2012 07:27:14 -0700]: [C400] C: A0003 NAMESPACE
[08-Feb-2012 07:27:14 -0700]: [C400] S: * NAMESPACE (("INBOX." ".")) NIL NIL
[08-Feb-2012 07:27:14 -0700]: [C400] S: A0003 OK Namespace completed.
[08-Feb-2012 07:27:14 -0700]: [C400] C: A0004 LOGOUT
[08-Feb-2012 07:27:14 -0700]: [C400] S: * BYE Logging out
[08-Feb-2012 07:27:14 -0700]: [C400] S: A0004 OK Logout completed.
[08-Feb-2012 07:27:15 -0700]: [1D0C] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[08-Feb-2012 07:27:15 -0700]: [1D0C] C: A0001 ID ("name" "Roundcube Webmail" "version" "0.7.1" "php" "5.2.17" "os" "Linux" "command" "/mail/?_task=mail")
[08-Feb-2012 07:27:15 -0700]: [1D0C] S: * ID NIL
[08-Feb-2012 07:27:15 -0700]: [1D0C] S: A0001 OK ID completed.
[08-Feb-2012 07:27:15 -0700]: [1D0C] C: A0002 AUTHENTICATE PLAIN XXxxXXxXXxxxXXXxx=
[08-Feb-2012 07:27:15 -0700]: [1D0C] S: A0002 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[08-Feb-2012 07:27:16 -0700]: [1D0C] C: A0003 LIST (SUBSCRIBED) "" "*"
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: * LIST (\Subscribed) "." "INBOX.prova"
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: * LIST (\Subscribed) "." "INBOX.provaaa"
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: * LIST (\Subscribed) "." "INBOX.prova1"
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: A0003 OK List completed.
[08-Feb-2012 07:27:16 -0700]: [1D0C] C: A0004 GETQUOTAROOT INBOX
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: * QUOTAROOT "INBOX"
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: A0004 OK Getquotaroot completed.
[08-Feb-2012 07:27:16 -0700]: [1D0C] C: A0005 LOGOUT
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: * BYE Logging out
[08-Feb-2012 07:27:16 -0700]: [1D0C] S: A0005 OK Logout completed.


My settings in main.inc.php
Code: [Select]

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

Offline alec

  • Hero Member
  • *****
  • Posts: 1,165
Problem with SubFolders
« Reply #7 on: February 13, 2012, 02:26:24 AM »
So, INBOX. is your namespace prefix. It means that Roundcube presents subfolders of INBOX at the same level. I think it's not possible to change that. Maybe Roundcube shouldn't present INBOX as possible parent for new folder to eliminate confusion.