[Kde-pim] [Akonadi] Protocol/Parser differences?

Kevin Krammer kevin.krammer at gmx.at
Sun Jul 26 19:40:44 BST 2009


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090726/f4d73c1d/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list