SOGo - BTS - SOGo
View Issue Details
0000344SOGoWeb Mailpublic2010-01-19 16:302010-04-09 17:18
iongigi 
wsourdeau 
normalminoralways
resolvedfixed 
1.1.0 
1.2.21.2.2 
0000344: Sogo + Courier-Imap #shared namespace
Sogo does not display users shared folders.
In fact sogo does not even query imap server about "#shared" namespace as you can see from tcpflow below:
--
127.000.000.001.33265-127.000.000.001.00143: 1 login "test" "test"
127.000.000.001.33265-127.000.000.001.00143:

127.000.000.001.00143-127.000.000.001.33265: 1 OK LOGIN Ok.

127.000.000.001.33265-127.000.000.001.00143: 2 list "" ""
127.000.000.001.33265-127.000.000.001.00143:

127.000.000.001.00143-127.000.000.001.33265: * LIST (\Noselect) "." ""
2 OK LIST completed

127.000.000.001.33265-127.000.000.001.00143: 3 list "" "*"
127.000.000.001.33265-127.000.000.001.00143:

127.000.000.001.00143-127.000.000.001.33265: * LIST (\Unmarked \Noinferiors) "." "shared.Public.spam"
* LIST (\Unmarked \Noinferiors) "." "shared.Public.tt"
* LIST (\Unmarked \Noinferiors) "." "shared.Public.aaa"
* LIST (\Marked \Noinferiors) "." "INBOX.Sent"
* LIST (\Unmarked) "." "INBOX"
* LIST (\Unmarked \Noinferiors) "." "INBOX.Trash"
* LIST (\Marked \Noinferiors) "." "INBOX.test"
* LIST (\Unmarked \Noinferiors) "." "INBOX.Drafts"
* LIST (\Unmarked \Noinferiors) "." "INBOX.test1"
* LIST (\Noselect) "." "shared.Public"
* LIST (\Noselect) "." "shared"
3 OK LIST completed
----

If I use svn version still the same issue but tcpflow says:

----
082.078.062.003.43750-082.078.062.003.00143: 1 login "test" "test"
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: 1 OK LOGIN Ok.

082.078.062.003.43750-082.078.062.003.00143: 2 list "" ""
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: * LIST (\Noselect) "." ""
2 OK LIST completed

082.078.062.003.43750-082.078.062.003.00143: 3 select "INBOX"
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1263420848] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
3 OK [READ-WRITE] Ok

082.078.062.003.43750-082.078.062.003.00143: 4 status "INBOX" (UIDVALIDITY)
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: * STATUS "INBOX" (UIDVALIDITY 1263420848)
4 OK STATUS Completed.

082.078.062.003.43750-082.078.062.003.00143: 5 expunge

082.078.062.003.00143-082.078.062.003.43750: 5 OK EXPUNGE completed

082.078.062.003.43750-082.078.062.003.00143: 6 list "" "*"
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: * LIST (\Unmarked \HasNoChildren) "." "shared.Public.spam"
* LIST (\Unmarked \HasNoChildren) "." "shared.Public.tt"
* LIST (\Unmarked \HasNoChildren) "." "shared.Public.aaa"
* LIST (\Marked \HasNoChildren) "." "INBOX.Sent"
* LIST (\Unmarked \HasChildren) "." "INBOX"
* LIST (\Unmarked \HasNoChildren) "." "INBOX.Trash"
* LIST (\Marked \HasNoChildren) "." "INBOX.test"
* LIST (\Unmarked \HasNoChildren) "." "INBOX.Drafts"
* LIST (\Unmarked \HasNoChildren) "." "INBOX.test1"
* LIST (\Noselect \HasChildren) "." "shared.Public"
* LIST (\Noselect \HasChildren) "." "shared"
6 OK LIST completed

082.078.062.003.43750-082.078.062.003.00143: 7 list "INBOX." "*"
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: * LIST (\Marked \HasNoChildren) "." "INBOX.Sent"
* LIST (\Unmarked \HasNoChildren) "." "INBOX.Trash"
* LIST (\Marked \HasNoChildren) "." "INBOX.test"
* LIST (\Unmarked \HasNoChildren) "." "INBOX.Drafts"
* LIST (\Unmarked \HasNoChildren) "." "INBOX.test1"
7 OK LIST completed

082.078.062.003.43750-082.078.062.003.00143: 8 list "#shared." "*"
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: 8 OK LIST completed

082.078.062.003.43750-082.078.062.003.00143: 9 list "shared." "*"
082.078.062.003.43750-082.078.062.003.00143:

082.078.062.003.00143-082.078.062.003.43750: * LIST (\Unmarked \HasNoChildren) "." "shared.Public.spam"
* LIST (\Unmarked \HasNoChildren) "." "shared.Public.tt"
* LIST (\Unmarked \HasNoChildren) "." "shared.Public.aaa"
* LIST (\Noselect \HasChildren) "." "shared.Public"
9 OK LIST completed
----
The svn version is asking imap server about #shared namespace:
8 list "#shared." "*"
8 OK LIST completed

But if you want to get #shared namespace from courier imap :

telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a login testtest
a OK LOGIN Ok.
a list "" "#shared.*" (not list "#shared." "*")
* LIST (\Unmarked \HasNoChildren) "." "#shared.catalin.test"
* LIST (\Noselect \HasChildren) "." "#shared.catalin"
a OK LIST completed







No tags attached.
has duplicate 0000389resolved wsourdeau Sogo courier-imap shared folders 
related to 0000345resolved wsourdeau SOGo can't go directly to a particular directory 
Issue History
2010-01-19 16:30iongigiNew Issue
2010-01-19 16:44wsourdeauNote Added: 0000457
2010-01-19 17:15iongigiNote Added: 0000458
2010-01-19 17:24iongigiNote Added: 0000459
2010-01-20 13:38wsourdeauNote Added: 0000468
2010-01-21 04:19iongigiNote Added: 0000478
2010-02-15 11:50wsourdeauRelationship addedrelated to 0000345
2010-02-15 11:50wsourdeauRelationship addedhas duplicate 0000389
2010-03-16 16:50ludovicTarget Version => 1.2.2
2010-04-06 14:45wsourdeauNote Added: 0000875
2010-04-06 16:29iongigiNote Added: 0000876
2010-04-07 10:35wsourdeauNote Added: 0000880
2010-04-07 10:35wsourdeauAssigned To => wsourdeau
2010-04-07 10:35wsourdeauStatusnew => feedback
2010-04-07 18:00iongigiNote Added: 0000893
2010-04-08 12:26wsourdeauNote Added: 0000901
2010-04-08 12:26wsourdeauNote Added: 0000902
2010-04-09 07:12iongigiNote Added: 0000908
2010-04-09 16:18wsourdeauNote Added: 0000914
2010-04-09 17:18iongigiNote Added: 0000918
2010-04-09 17:18wsourdeauNote Added: 0000919
2010-04-09 17:18wsourdeauStatusfeedback => resolved
2010-04-09 17:18wsourdeauFixed in Version => 1.2.2
2010-04-09 17:18wsourdeauResolutionopen => fixed

Notes
(0000457)
wsourdeau   
2010-01-19 16:44   
This is likely a bug in Courier. The use of the PREFIX element of the LIST command is perfectly valid the way SOGo does it. Isn't there an updated version of Courier that you can use?
(0000458)
iongigi   
2010-01-19 17:15   
I use 4.5 on Gentoo.The 4.6 version has the same issue.I know that the last version is 4.7 but I don't have an ebuild for it.The change log on courier's site does not say anything about fixing such problem.Anyway I'm gonna try the last version to be sure.
(0000459)
iongigi   
2010-01-19 17:24   
by the way in Thunderbird I can see folders in #shared namespace
(0000468)
wsourdeau   
2010-01-20 13:38   
What would help is the result of the "NAMESPACE" command. Can you provide us with it?
(0000478)
iongigi   
2010-01-21 04:19   
mx1 ~ # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION] Courier-IMAP ready. Copyright 1998-2008 Double Precision, Inc. See COPYING for distribution information.
a login test test
a OK LOGIN Ok.
a namespace
* NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
a OK NAMESPACE completed.
(0000875)
wsourdeau   
2010-04-06 14:45   
By chance, have you tested by setting NGImap4ConnectionStringSeparator to "." ?
(0000876)
iongigi   
2010-04-06 16:29   
Yes, the same behaviour
(0000880)
wsourdeau   
2010-04-07 10:35   
Can you try with the latest nightlies (along with 0000389)
(0000893)
iongigi   
2010-04-07 18:00   
Still the same problem
Sogo use : list "#shared." "*" to get #shared

Courier likes this: list "" "#shared.*"
(0000901)
wsourdeau   
2010-04-08 12:26   
You probably haven't updated SOPE then. SOGo/SOPE should no longer issue such commands.
(0000902)
wsourdeau   
2010-04-08 12:26   
Therefore: can you make sure you use the very last version of the SOPE patchset?
(0000908)
iongigi   
2010-04-09 07:12   
You we're right about SOPE patchset.
Now I can see in webmail shared folders from other users.
But to see messages in those folders I need to have "a" flag set in ACls.
That means : "a - identifier may modify this folder's ACLs."
If SOGo can't get acl, does not display any messages and restarts itself.
With "a" flag messages are displayed, but then I can modify acl for that folder and this is not ok.
If I do not advertise ACl capabilities from Courier I can read any shared folder without administrative right "a" set, of course with read rights.
Same thing about 0000344 bug, except I can not see messages even with "a" flag set, but I can see them if I do not advertise ACl capabilities.
I believe that sogo must continue even getacl fails, or not ...

this log is from sogo:

082.078.062.003.39383-082.078.062.003.00143: 5 getacl "#shared.tataia.test1"
082.078.062.003.00143-082.078.062.003.39383: 5 NO Access denied for GETACL on #shared.tataia.test1 (ACL "a" required)


this is from thunderbird

192.168.124.101.02639-082.078.062.003.00143: 2 select "#shared.tataia.test1"

082.078.062.003.00143-192.168.124.101.02639: * FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1263845236] Ok
* OK [MYRIGHTS "lrs"] ACL
2 OK [READ-WRITE] Ok

192.168.124.101.02639-082.078.062.003.00143: 3 getquotaroot "#shared.tataia.test1"

082.078.062.003.00143-192.168.124.101.02639: * QUOTAROOT "#shared.tataia.test1" "PUBLIC"
* QUOTA "PUBLIC"
3 OK GETQUOTAROOT Ok.

192.168.124.101.02639-082.078.062.003.00143: 4 IDLE

082.078.062.003.00143-192.168.124.101.02639: + entering idle mode
(0000914)
wsourdeau   
2010-04-09 16:18   
Again, please test with the next nightlies (20100410).
(0000918)
iongigi   
2010-04-09 17:18   
It works! Thanks a lot! 0000389 also works.
Anyway still a minor problem with acls but I will open a new issue.
(0000919)
wsourdeau   
2010-04-09 17:18   
Fixed in previous commit.