Re: IMAP extensions

DINH Viet Hoa <[email protected]> Tue, 11 Apr 2006 13:27:07 +0200
Newsgroups gmane.mail.libetpan.user
Message-ID <etPan.443b928b.4b0a7dc7.9bb@utopia>
Michael Leupold wrote :

> during the last few days I've been extending libetpan with the annotatemore 
> imap-extension. With the current low-level imap-stuff I had to plug it into 
> the mailimap-files directly which makes them quite cluttered (adding to 
> structs and the parser).
> The problem mostly arouses when you have to extend one of the tokens the 
> parser already knows. Eg. annotatemore extends response-data /= 
> annotate-data. If you add it you have to change at least 
> mailimap_reponse_data_parse, struct mailimap_response_data and 
> resp_data_store).
> So I thought it might be nice to have some api to add extensions without 
> changing the core of mailimap for every extension you code while being able 
> to keep extensions separate from the "clean" imaprev1 code.

First, I would be interested in the code you wrote to extend IMAP
implementation (as a unified diff (-u)).
Then, what kind of API do you propose ?
You may provide a patch for this.

I think that this will introduce some global variable unless you have a
better solution for this.

-- 
DINH V. Hoa,

"emmène-là au ciné, c'est là que la plupart des ados concluent" -- jul
signature.asc (application/pgp-signature, 0 B)