fid2 = mail_get_folder(cfi->child->uri,0,export_mail_folder,&folder,mail_thread_new);
You also really don't want to do this. You'll fire off *concurrent* threads for all folders. i.e. lots of thrashing and a bad user experience. You want to serialise it.
Another way to serialise it is to use mail_thread_queued, or mail_thread_queued_slow.
--
|
<<attachment: zed-48.small.jpg>>
