[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    [Kde-pim] [Akonadi] Protocol/Parser differences?
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2009-07-26 18:40:44
Message-ID: 200907262040.51276.kevin.krammer () gmx ! at
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


Hi all,

in order to better understand the needs of developers doing alternative client 
libraries, I started to experiment with one written in Java [1].

Other than usual I have intially been testing with the Akonadi server 
installed from distribution packages and today tried again with my trunk based 
development environment.

During that switch I discovered a couple of differences in how the server 
behaves or parses my input.

For example my commands to the server looked like this in Akonadiconsole's 
debugger:

2 X-AKLIST 0 INF "()"

The old server reponds with a list of all collections, the new server responds 
like this

2 NO ImapParserException: Stream not at a beginning of a list

I managed to change the sent string so the old Akonadiconsole prints this:

2 X-AKLIST 0 INF ()

The old server still responds as expected, the new server does so "sometimes".
Sometimes meaning that when I repeatedly run the test application, it 
sometimes get the expected listing, but most of the times I get again

4 X-AKLIST 0 INF 
4 NO ImapParserException: Stream not at a beginning of a list 

Like if the () part didn't arrive or was somehow removed [2].

Any ideas?

Cheers,
Kevin

[1] Taking parts of the parsing/formatting code from an appropriately licenced 
Java IMAP client

[2] At a new test run I saw this:

0xb5002c60 0 LOGIN 
0xb5002c60 0 OK User logged in 
0xb5002c60 1 X-AKLIST 
0xb5002c60 1 NO ImapParserException: Stream not at a beginning of a list 

i.e. even the parameter of LOGIN is missing. should be
0 LOGIN CollectionFetchJobTest
-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring


["signature.asc" (application/pgp-signature)]

_______________________________________________
KDE PIM mailing list kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic