On Wed, 2002-05-01 at 09:28, Shawn Walker wrote: > Why is Camel keep calling my construct() routine multiple times? I > have the callback setup to call into my connect() function and I do > my own connection, return TRUE. Camel then calls my > get_folder_info() and I return the folder tree. I select a folder > that I want to show the messages, Camel then calls my construct() > and connect() again when I already have a connection.
Most likely, the URLs you're returning from get_folder_info do not compare as equal to the URL that was used to build the folder tree, and so it's creating a new store object. Eg, if the URL you configured in the config dialog is "foobar://server:999", and get_folder_info returns "foobar://server/folder1", "foobar://server/folder2", etc, and your url hash and compare functions look at the port number, then it would create a new store "foobar://server" to fetch the folders from. Likewise with the other URL components. -- Dan _______________________________________________ evolution-hackers maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution-hackers
