Results 1 to 3 of 3

Thread: how to find the propertyName list ?

  1. #1
    Join Date
    Sep 2010
    Rep Power

    Default how to find the propertyName list ?

    I had search the wiki: Zimlet JavaScript Class - Zimbra :: Wiki

    4.4.11 setUserProperty
    This method sets the value of a user property. It defines the following formal parameters:
    propertyName - This is the name of the property whose value is to be returned. For example: “someUserProperty”
    value - The value to which to set the property
    save - If true, then the property will be saved (along with any other modified properties) Return void

    I want to change the "Sent" folder in zimlet, but how can i find the propertyName of "Sent" folder?

    Please help.

  2. #2
    Join Date
    Sep 2010
    Rep Power


    Finally, i got the property name with command zmprov:

    zmprov ga admin | grep -i sent
    zimbraPrefSaveToSent: TRUE
    zimbraPrefSentLifetime: 0
    zimbraPrefSentMailFolder: sent

    How can i change the value in zimlet? I want to disable the "save to sent" in zimlet, my code here:

    appCtxt.set(ZmSetting.SAVE_TO_SENT, false);
    appCtxt.set(ZmSetting.SAVE_TO_IMAP_SENT, false);
    var appsent = appCtxt.get(ZmSetting.SAVE_TO_SENT);
    var imapsent = appCtxt.get(ZmSetting.SAVE_TO_IMAP_SENT);
    appCtxt.setStatusMsg("APPSENT: " + appsent, ZmStatusView.LEVEL_INFO);
    appCtxt.setStatusMsg("IMAPSENT: " + imapsent, ZmStatusView.LEVEL_INFO);

    the value of SAVE_TO_SENT have been changed in appCtxt, but it is not working, the messages still save in "sent" folder.
    Last edited by chengkinhung; 10-06-2010 at 09:37 PM.

  3. #3
    Join Date
    Sep 2010
    Rep Power


    I also tried:

    var settings = appCtxt.getSettings();
    var sent = settings.getSetting("SAVE_TO_SENT");

    But probem is same.

Similar Threads

  1. [SOLVED] Sudden problem synching with gmail
    By bouchardpie in forum Error Reports
    Replies: 8
    Last Post: 09-09-2010, 09:50 AM
  2. remove zimbra accounts using the scripts
    By jayanth in forum Developers
    Replies: 5
    Last Post: 07-07-2010, 02:39 AM
  3. How to find list of users in COS
    By ohm_g7 in forum Administrators
    Replies: 1
    Last Post: 04-22-2009, 08:41 PM
  4. Error using Zimbra Desktop with all folders
    By randhirv in forum Error Reports
    Replies: 3
    Last Post: 01-24-2009, 12:01 AM
  5. Problem syncing all folders
    By mark_the_chain in forum Error Reports
    Replies: 0
    Last Post: 11-23-2008, 03:59 PM

Posting Permissions

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