Hello,
I'm currently thinking of implementing a IMAP Client module in pike, which will further in line be integrated in a roxen module. I have looked through several client module implementations, and also into Protocols.Line.imap_style.
I'm now trying to decide between whether it is smart to use callbacks internally or not. I've come up with a short list of pros and cons, and was wondering some of the more hardened developers could shed some light on the issue.
Pro's * The IMAP protocol per default sends out-of-band data (meaning data which was not requested by the client). This data needs to be handled. In a webenvirenmont the actual client can not easily be notified, but the client module needs to have this ready at least on a reload. Using callbacks the data can be handled module internally. * The module could use the new IMAP IDLE support which updates the selected mailbox out-of-band so reducing the need for polling.
Con's * The client needs to at least start the callback backend. If it doesn't the module will never work * Synchronisation. If a client wants to select a different mailbox, the pagereload needs to block until the server reports back with mailbox data.
Thanks for considering this,
Marc
On Tue, Nov 18, 2008 at 03:00:11PM +0100, Marc Dirix wrote:
I'm currently thinking of implementing a IMAP Client module in pike, which will further in line be integrated in a roxen module. I have looked through several client module implementations,
does that include existing implementations in pike?
greetings, martin.
which will further in line be integrated in a roxen module. I have looked through several client module implementations,
does that include existing implementations in pike?
To which are you referring? There are no current imap client modules in the pike tree.
If you are referring to camas or imho, they are not really useful and the reason I decided to write one myself.
Marc
Mikael Brandstrom wrote an asyncronous IMAP module that I've used on occasion. I'm not sure of the license status, but you might want to look at that.
Bill
On Tue, 18 Nov 2008, Marc Dirix wrote:
which will further in line be integrated in a roxen module. I have looked through several client module implementations,
does that include existing implementations in pike?
To which are you referring? There are no current imap client modules in the pike tree.
If you are referring to camas or imho, they are not really useful and the reason I decided to write one myself.
Marc
On Tue, Nov 18, 2008 at 03:55:37PM +0100, Marc Dirix wrote:
does that include existing implementations in pike?
If you are referring to camas or imho, they are not really useful and the reason I decided to write one myself.
yes, i meant that one. but apart from that (and michael brandstroms work) redax has also been working on an imap client.
greetings, martin.
pike-devel@lists.lysator.liu.se