Page MenuHomePhorge

Parse error for LIST command
Closed, ResolvedPublic3 Story Points

Description

The following is a transcript of an IMAP session against a Guam instance:

[root@kolab closure-compiler.git]# imtest -s -u cyrus-admin -a cyrus-admin -w L3P7v-Wk5DLOWSg -p 993 localhost
verify error:num=18:self signed certificate
TLS connection established: TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)
S: * OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=PLAIN AUTH=LOGIN SASL-IR] kolab.example.org Cyrus IMAP 2.5.7-Kolab-2.5.7-1.2.el7.kolab_wf server ready
C: A01 AUTHENTICATE PLAIN Y3lydXMtYWRtaW4AY3lydXMtYWRtaW4ATDNQN3YtV2s1RExPV1Nn
S: A01 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE URLAUTH URLAUTH=BINARY X-NETSCAPE LOGINDISABLED COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] Success (tls protection) SESSIONID=<kolab.example.org-7632-1455904376-1-16633291316110035721>
Authenticated.
Security strength factor: 256
OCIJ3 LIST "" * 
* LIST (\HasChildren) "/" user/john.doe@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Archive@example.org
* LIST (\HasChildren) "/" user/john.doe/Calendar@example.org
* LIST (\HasNoChildren) "/" "user/john.doe/Calendar/Personal Calendar@example.org"
* LIST (\HasNoChildren) "/" user/john.doe/Configuration@example.org
* LIST (\HasChildren) "/" user/john.doe/Contacts@example.org
* LIST (\HasNoChildren) "/" "user/john.doe/Contacts/Personal Contacts@example.org"
* LIST (\HasNoChildren) "/" user/john.doe/Drafts@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Files@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Journal@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Notes@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Sent@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Spam@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Tasks@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Trash@example.org
OCIJ3 OK Completed (0.000 secs 16 calls)
OCIJ3 LIST "" "*"   
* LIST (\HasChildren) "/" user/john.doe@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Archive@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Drafts@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Files@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Sent@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Spam@example.org
* LIST (\HasNoChildren) "/" user/john.doe/Trash@example.org
OCIJ3 OK Completed (0.000 secs 16 calls)

Details

Ticket Type
Task

Event Timeline

vanmeeuwen edited a custom field.
vanmeeuwen moved this task from Backlog to Review on the Sprint 201608 board.
vanmeeuwen added a subscriber: seigo.

Assigning to @seigo for patch review in D87.

I've just installed a fresh version of guam from Winterfell repo:

rpm -qi guam

Name : guam
Version : 0.8
Release : 5.3.el7.kolab_wf
Architecture: x86_64
Install Date: Thu 25 Feb 2016 10:08:55 AM EET
Group : System Environment/Daemons
Size : 37230060
License : GPLv3+
Signature : RSA/SHA1, Wed 24 Feb 2016 01:33:14 PM EET, Key ID 830c2bcf446d5a45
Source RPM : guam-0.8-5.3.el7.kolab_wf.src.rpm
Build Date : Wed 24 Feb 2016 01:32:33 PM EET
Build Host : obs04.kolab.org
Relocations : (not relocatable)
Vendor : obs://Kolab/Kolab:Winterfell
URL : https://kolab.org/about/guam
Summary : A Smart Reverse IMAP Proxy
Description :
Guam is a smart, unjustly outcasted Reverse IMAP Proxy that lives at
the perimeter of your IMAP environment.

However I still observe the issue that commands
a1 LIST "" "*"
and
a2 LIST "" *
return diffrent results. One lists all the folders, while the other filters out groupware folders.
a1 LIST "" "*"

  • LIST (\Noinferiors \HasNoChildren) "/" INBOX
  • LIST (\HasNoChildren) "/" Drafts
  • LIST (\HasNoChildren) "/" Sent
  • LIST (\HasNoChildren) "/" Spam
  • LIST (\HasNoChildren) "/" Trash

a1 OK Completed (0.000 secs 14 calls)
a2 LIST "" *

  • LIST (\Noinferiors \HasNoChildren) "/" INBOX
  • LIST (\HasNoChildren) "/" Calendar
  • LIST (\HasNoChildren) "/" Configuration
  • LIST (\HasNoChildren) "/" Contacts
  • LIST (\HasNoChildren) "/" Drafts
  • LIST (\HasNoChildren) "/" Files
  • LIST (\HasNoChildren) "/" Freebusy
  • LIST (\HasNoChildren) "/" Journal
  • LIST (\HasNoChildren) "/" Notes
  • LIST (\HasNoChildren) "/" Sent
  • LIST (\HasNoChildren) "/" Spam
  • LIST (\HasNoChildren) "/" Tasks
  • LIST (\HasNoChildren) "/" Trash

a2 OK Completed (0.000 secs 14 calls)