Results 1 to 5 of 5

Thread: New Folder

  1. #1
    Join Date
    Jan 2007
    Posts
    31
    Rep Power
    8

    Thumbs up New Folder

    I want to add another Top Level Folder like "Inbox" to the folders section. I want to call this folder "My Folder" and then be able to add sub folders underneath it to match a directory structure of a Document Management system. Is there sample code to show how to create a new top level folder and add sub folders to it??

    Thanx Joe

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    There is no way via a Zimlet today to add a new System Folder. You'd have to make a core code change.... In general most folks add a zimlet that launches a new dialog that has the tree structure in there.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Jan 2007
    Posts
    31
    Rep Power
    8

    Default New Folder

    Kevin

    I the init method of the Zimlet, I have been able to call this to
    create a new Folder:

    // Create Folder
    soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("name", "Xythos");
    folderNode.setAttribute("l", top.id);
    folderNode.setAttribute("view", ZmOrganizer.VIEWS[ZmOrganizer.FOLDER]);
    command = new ZmCsfeCommand();
    var resp = command.invoke({soapDoc: soapDoc});
    var id = resp.Body.CreateFolderResponse.folder[0].id;


    However I am now trying to have my Zimlet called if a conversation is dropped into this folder. Is there a way to assign a listener to this??

    Thanx Joe

  4. #4
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by jfavero View Post
    Kevin

    I the init method of the Zimlet, I have been able to call this to
    create a new Folder:

    // Create Folder
    soapDoc = AjxSoapDoc.create("CreateFolderRequest", "urn:zimbraMail");
    var folderNode = soapDoc.set("folder");
    folderNode.setAttribute("name", "Xythos");
    folderNode.setAttribute("l", top.id);
    folderNode.setAttribute("view", ZmOrganizer.VIEWS[ZmOrganizer.FOLDER]);
    command = new ZmCsfeCommand();
    var resp = command.invoke({soapDoc: soapDoc});
    var id = resp.Body.CreateFolderResponse.folder[0].id;


    However I am now trying to have my Zimlet called if a conversation is dropped into this folder. Is there a way to assign a listener to this??

    Thanx Joe
    Part of the problem here is that folder content can come from other places then just the Zimbra web front end. You might be able to attach to the organizer to find out what's going on, but that won't help at all for other behavior.

    It would be nice to have a way to attach behavior to a particular folder, but I don't know of one.

  5. #5
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    Joe - That will create the folder (and btw may fail or error on the 2nd login) so in that case you need a listfolder request to get the ID.

    One idea would be to hook into the global notifications for the mailbox and then look for messages that match the folder you've created. It just doesn't seem very efficient to do it this way. If your trying to sync it may be better to write a client that interacts with the sync API and provide a way for the user to sync on-demand.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

Similar Threads

  1. Spam/Ham training under Outlook/Thunderbird/etc.
    By chuckm in forum Administrators
    Replies: 23
    Last Post: 03-18-2009, 11:01 AM
  2. .pst migration issues
    By jimklein in forum Migration
    Replies: 13
    Last Post: 02-16-2009, 12:55 AM
  3. Replies: 3
    Last Post: 08-11-2007, 12:40 PM
  4. zmmailbox and spaces in folder names
    By badrian in forum Administrators
    Replies: 2
    Last Post: 06-28-2007, 11:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •