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 09-27-2010, 09:24 PM
Member
 
Posts: 14
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.
Reply With Quote
  #2 (permalink)  
Old 10-03-2010, 06:32 PM
Member
 
Posts: 14
Default

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);
appCtxt.getCurrentController()._send();


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..
Reply With Quote
  #3 (permalink)  
Old 10-03-2010, 07:08 PM
Member
 
Posts: 14
Default

I also tried:

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

But probem is same.
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.