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..
|