View Issue Details

IDProjectCategoryView StatusLast Update
0000344SOGoWeb Mailpublic2010-04-09 21:18
Reporteriongigi Assigned Towsourdeau 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.1.0 
Target Version1.2.2Fixed in Version1.2.2 
Summary0000344: Sogo + Courier-Imap #shared namespace
Description

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
TagsNo tags attached.

Relationships

has duplicate 0000389 resolvedwsourdeau Sogo courier-imap shared folders 
related to 0000345 resolvedwsourdeau SOGo can't go directly to a particular directory 

Activities

wsourdeau

wsourdeau

2010-01-19 21:44

viewer   ~0000457

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?

iongigi

iongigi

2010-01-19 22:15

reporter   ~0000458

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.

iongigi

iongigi

2010-01-19 22:24

reporter   ~0000459

by the way in Thunderbird I can see folders in #shared namespace

wsourdeau

wsourdeau

2010-01-20 18:38

viewer   ~0000468

What would help is the result of the "NAMESPACE" command. Can you provide us with it?

iongigi

iongigi

2010-01-21 09:19

reporter   ~0000478

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.
wsourdeau

wsourdeau

2010-04-06 18:45

viewer   ~0000875

By chance, have you tested by setting NGImap4ConnectionStringSeparator to "." ?

iongigi

iongigi

2010-04-06 20:29

reporter   ~0000876

Yes, the same behaviour

wsourdeau

wsourdeau

2010-04-07 14:35

viewer   ~0000880

Can you try with the latest nightlies (along with 0000389)

iongigi

iongigi

2010-04-07 22:00

reporter   ~0000893

Still the same problem
Sogo use : list "#shared." "*" to get #shared

Courier likes this: list "" "#shared.*"

wsourdeau

wsourdeau

2010-04-08 16:26

viewer   ~0000901

You probably haven't updated SOPE then. SOGo/SOPE should no longer issue such commands.

wsourdeau

wsourdeau

2010-04-08 16:26

viewer   ~0000902

Therefore: can you make sure you use the very last version of the SOPE patchset?

iongigi

iongigi

2010-04-09 11:12

reporter   ~0000908

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

wsourdeau

wsourdeau

2010-04-09 20:18

viewer   ~0000914

Again, please test with the next nightlies (20100410).

iongigi

iongigi

2010-04-09 21:18

reporter   ~0000918

It works! Thanks a lot! 0000389 also works.
Anyway still a minor problem with acls but I will open a new issue.

wsourdeau

wsourdeau

2010-04-09 21:18

viewer   ~0000919

Fixed in previous commit.

Issue History

Date Modified Username Field Change
2010-01-19 21:30 iongigi New Issue
2010-01-19 21:44 wsourdeau Note Added: 0000457
2010-01-19 22:15 iongigi Note Added: 0000458
2010-01-19 22:24 iongigi Note Added: 0000459
2010-01-20 18:38 wsourdeau Note Added: 0000468
2010-01-21 09:19 iongigi Note Added: 0000478
2010-02-15 16:50 wsourdeau Relationship added related to 0000345
2010-02-15 16:50 wsourdeau Relationship added has duplicate 0000389
2010-03-16 20:50 ludovic Target Version => 1.2.2
2010-04-06 18:45 wsourdeau Note Added: 0000875
2010-04-06 20:29 iongigi Note Added: 0000876
2010-04-07 14:35 wsourdeau Note Added: 0000880
2010-04-07 14:35 wsourdeau Assigned To => wsourdeau
2010-04-07 14:35 wsourdeau Status new => feedback
2010-04-07 22:00 iongigi Note Added: 0000893
2010-04-08 16:26 wsourdeau Note Added: 0000901
2010-04-08 16:26 wsourdeau Note Added: 0000902
2010-04-09 11:12 iongigi Note Added: 0000908
2010-04-09 20:18 wsourdeau Note Added: 0000914
2010-04-09 21:18 iongigi Note Added: 0000918
2010-04-09 21:18 wsourdeau Note Added: 0000919
2010-04-09 21:18 wsourdeau Status feedback => resolved
2010-04-09 21:18 wsourdeau Fixed in Version => 1.2.2
2010-04-09 21:18 wsourdeau Resolution open => fixed