Re: [Evolution-hackers] [CAMEL] camel_url_set_param() not working as I thought it would?



On Sun, 2005-10-09 at 11:36 +0800, Not Zed wrote:
> Yes as jeff said, but basically, the CamelService url is just an
> in-memory object, in effect read-only, it is never ever saved.  Accounts
> are controlled and maintained completely separately, and that is where
> the opening uri comes from.

Hmm... Would I wreck havoc on that design if I figured out a way to save
the service->url during an Evolution session? I guess that would be
somewhere in gconf?? 

> Looks like you're using it to store persistent state, 

Not really, well.. yes, sort of...

MAPI operates with a concept of a MAPI Profile that is stored locally on
the physical client box, the Brutus server in this case. A client must
known the name of a profile to use before he can log onto an Exchange
account. Or create a Profile if one does not exist beforehand. 

The Profile name must therefore be equally accessible to mail and
calendar components during and across Evolution sessions.

It seems to me that it would be wrong to store the Profile name
somewhere Camel specific.

Any ideas?

Thanks,
  jules



> which is not
> related at all to the opening/account/uri.  Persistent state should be
> stored separately.  e.g. using a 'camelstoresummary', if you're already
> using one.  Or perhaps using a persistent camel-object property (&
> forcing the save/etc).
> 
> 
> 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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]