On Sun, 1 Feb 2004, Nick Birren wrote:
> Cool. Any recommended reading material for writing c-client drivers?

I would start with using the latest sources (imap-2004 RC6) instead of
the release version (imap-2002e).

Inside the imap-2004/docs/ directory there is a file called internal.txt
which contains some information about c-client programming.  Look towards
the end under "Driver Interface".  Note that this document was written in
1996 and so should be used as a guideline to understand rather than an
authoritative reference.

Also, look at how existing drivers work.  I suggest looking at the NNTP,
POP3, and IMAP drivers.  Note how some methods are mandatory-to-implement
while others are not; e.g. open is a mandatory method, but search is not.

Sometimes, you have a choice of which method(s) to implement.  For
example, the IMAP driver implements the msgdata method but not header or
text, whereas the other drivers implement header and text but not msgdata.
This is because the IMAP server does message parts, whereas in other
drivers c-client has to do it internally.

There's a bit of a steep learning curve, which is why I recommend looking
at how existing drivers work.  The good news is that once you climb that
curve it's a fairly straightforward task to do the job.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.

Reply via email to