Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-03-2008, 06:07 AM
Active Member
 
Posts: 30
Default Restriction on size of folder ID used in Zimbra Client

Greetings,

Wishing all the known and unknown Zimbra users a very haapy and propserouse new year.

I have a query regarding the folder IDs allocated by Zimbra for default folders.For default folders IDs are of the type Integer for e.g
7-Contacts folder
13-Emailed contacts folder.

Does Zimbra Client have any restriction on the type and size of newly created folders like(created inside inbox etc).?

Can I use any type as a folder ID apart from Integer? e.g Folder id of the Type Hexadecimal.


Any help or pointers on this issue will be highly useful for Zimbra Client usage.

Please provide any help on this query.

Thanking in Advance.

-Sudhir
Reply With Quote
  #2 (permalink)  
Old 01-03-2008, 10:42 AM
Zimbra Employee
 
Posts: 1,434
Default

All folder IDs are assigned by the server, and so you cannot choose the ID for your folder.

Any type of folder can occur anywhere in the folder structure. So yes, you could put a calendar under Inbox. (I'm not sure if the web client allows this, but the server doesn't care.)

Folder names must be between 1 and 128 characters long. They may not contain control characters, tabs, carriage returns, linefeeds, or any of the three characters " and : and /
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 01-03-2008, 07:47 PM
Active Member
 
Posts: 30
Default

Hi ,

I really thank you for the prompt reply.
<<All folder IDs are assigned by the server, and so you cannot choose the ID for your folder>>.As you mentioned that all folder IDs are assigned by server.

Can I conclude that Zimbra folder IDs are controlled by Zimbra server and have a restriction that they should be of the type Integer(int).?

As this Id will be sent to Zimbra client in the response as a String and Zimbra client must be converting it gain back to Integer.

If this is incorrect,Can you please help me out in understanding the use case :
"How does Zimbra client Interprested the folder ID on the UI front if Id is not of the type Integer"?
Here It might have to consider browser compatibility ?(Just a thought)

Thanking you in anticipation.
Thanks
-Sudhir
Reply With Quote
  #4 (permalink)  
Old 01-03-2008, 08:09 PM
Zimbra Employee
 
Posts: 1,434
Default

If you are writing client code, you must consider the folder ID to be a string. For instance, folders owned by other users will appear to have IDs of the form "{other-user's-account-uid}:{numeric-folder-id}".
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 01-03-2008, 08:36 PM
Active Member
 
Posts: 30
Default

Thanks for the reply.

Can you please ellaborate it more ?

Do you mean to say Zimbra Client does not convert the IDs recived from server (In String form) to Integer form?
ie. It just uses them as it is.
Reply With Quote
  #6 (permalink)  
Old 01-03-2008, 10:08 PM
Zimbra Employee
 
Posts: 1,434
Default

Yes. Clients (including the Zimbra clients) must treat item IDs as strings. They are not always numeric.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.