I constructed my base_url as:
provider://username@server/
In get_folder_info_online() I created a URL for each folder as:
provider://username@server/folder1
That URL is being created by camel_url_to_string().
In hash_folder_name(), I get:
provider://username@server/folder1;noselect=yes
but, I don't get ";noselect=yes" for all the folders, just some (I haven't looked into
what ";noselect=yes" means).
I'm not including any port number for the URL.
I should also mention that when I get called into my construct() the first time, the
path is set to "/", but when I click on a folder and it called construct(), the path
is now "/folder1".
On 5/1/2002 at 10:53 AM Dan Winship wrote:
>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
_______________________________________________
evolution-hackers maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers