I’m currently in the process of fixing Claws’ IMAP code, which
- blocks
- sucks in a more general manner, especially wrt speed
Fixing blocking is painful but simple. I chose the multithread way, look at the big functions that freeze the interface and move their work into an helper thread (while the main thread does gtk_main_iteration()s). With help from Hoa I managed to get this working quite nice. Now there still are some functions to fix.
Fixing the suckage, on the other hand, is less simple. I actually have to try and understand the IMAP4 protocol, something I managed to keep away from since a long time.
This of course, takes time, especially when asking for tests, and so it’s been two evenings I spent almost only on my iBook. Which makes Clo unhappy – she hates going to bed alone. Such diplomatic incidents must be taken into account and the time needed to handle them should be substracted to the time spent in front of the computer – not added – or things could get worse. I love her anyway :-)
One of the well-known strategies for to handle life with someone and geekness is to go to bed with her and wake up some time later.
Speed issue could be solved by trying FETCH envelope, don’t know if it works on all IMAP server but for Cyrus, that’s fine.
for rebuild, of folder, fetch of all headers of all folders should also be avoided but for this architecture will have to be thought again.
fetch of message list should only be done on-demand (I mean, when opening the folder).
PS: where is alfons ?
PS 2: I should make a first useable version of etpanX.
Hoa, thanks! I thought I was the only one crazy enough to wake up at 4 AM and go hack instead of sleeping. I already discussed on the subject with one of my coworkers and he told me he does that too, that made two of us. Now we’re at least three, and I feel less alone. I may not be an alien after all :-)
Concerning rebuild, it’s a major PITA right now, especially since it can happen automatically after a crash. That must be painful for our IMAP users… Concerning IMAP in a more general manner, I have the feeling this code is slowly turning into spagetti code, but if at least it works it’ll still be better: it’s already crappy imho.
Alfons is offline since a few weeks, I don’t have details but he said he’s really busy with real life stuff. I hope we’ll see him again soon.
should we conclude that men sleep less, then caleçon ?
I think we proved here scientifically why men die earlier than women on this earth…