Re: [Evolution-hackers] [Camel] Folder names



On Fri, 2005-09-16 at 11:36 +0800, Not Zed wrote:
> > I just got another idea. Is trailing whitespace ever removed from a name
> > being it full or not?
> > 
> > I could then add one or more trailing ' 's to any name to make it unique
> > among other folders with identical display name. Like this:
> > 
> > fi_a = {
> > 	.name = "evolution ";
> > 	.full_name = "Inbox /evolution ";
> > };
> > 
> > fi_b = {
> > 	.name = "evolution  ";
> > 	.full_name = "Inbox /evolution  ";
> > };
> 
> You dont need to add it to name, only full_name is used to uniquely
> identify folders.

OK.

> > and keep an internal mapping table that gives me the entryid for any
> > given full name.
> > 
> > These name are as unique as any other string could be, you can strcpy()
> > it without any ill effects  and you can strip off the /* for any given
> > path to get the parent name.
> >  
> > A folder name without any trailing ' ' would indicate that the folder
> > hasn't got an entryid yet. This won't happen on Exchange before it is
> > committed to db. 
> > 
> > This scheme has the added advantage of producing names that looks
> > identical to the human eye as we are prone to overlook ' ' characters,
> > especially the trailing ones. 
> 
> Hmm, i dunno it's up to you!

;-) 

Thanks a lot,
  jules




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