Re: [Evolution-hackers] [CAMEL] camel_url_set_param() not working as I thought it would?
- From: Jeffrey Stedfast <fejj novell com>
- To: Jules Colding <colding omesc com>
- Cc: Evolution Hackers <evolution-hackers gnome org>
- Subject: Re: [Evolution-hackers] [CAMEL] camel_url_set_param() not working as I thought it would?
- Date: Fri, 07 Oct 2005 10:54:11 -0400
you need to re-save the url from wherever you're getting it from
originally would be my guess
CamelURL's do not serialise themselves to disk between sessions (across
evolution restarts).
Jeff
On Fri, 2005-10-07 at 15:42 +0200, Jules Colding wrote:
> Hi,
>
> I am using "camel_url_set_param()" to store a short string. The stored
> string does not survive a restart of Evolution. I am doing something
> like:
>
>
> mapi_profile = camel_url_get_param(service->url, "mapi_profile");
> if (!mapi_profile || !strlen(mapi_profile)) {
> char guid_str[37] = { 0 };
> uuid_t guid = { 0 };
>
> uuid_generate(guid);
> uuid_unparse(guid, guid_str);
> must_free = g_strdup(guid_str);
> mapi_profile = (const char*)must_free;
>
> camel_url_set_param(service->url, "mapi_profile", mapi_profile);
> }
>
>
> The problem is that the retrieved mapi_profile never is the one that was
> previously saved with camel_url_set_param().
>
> Any ideas?
>
> Thanks,
> jules
>
> _______________________________________________
> Evolution-hackers mailing list
> Evolution-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers
>
--
Jeffrey Stedfast
Evolution Hacker - Novell, Inc.
fejj ximian com - www.novell.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]