Skip to content

Commit

Permalink
ZCS-13596: Create Classic UI Zimlet for mail recall functionality
Browse files Browse the repository at this point in the history
- added an option Recall message in the context menu for send folder.
  • Loading branch information
sandesh-telus committed Sep 5, 2023
1 parent e5e1876 commit 94c4f7d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions WebRoot/js/zimbraMail/share/controller/ZmListController.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,18 @@ function() {
return folder.nId == ZmFolder.ID_OUTBOX;
};

/**
* returns true if the search folder is sent
*/
ZmListController.prototype.isSentFolder =
function() {
var folder = this._getSearchFolder();
if (!folder) {
return false;
}
return folder.nId == ZmFolder.ID_SENT;
};

/**
* returns true if the search folder is sync failures
*/
Expand Down
5 changes: 4 additions & 1 deletion WebRoot/js/zimbraMail/share/model/ZmSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ ZmSetting.MAIL_UPSELL_ENABLED = "MAIL_UPSELL_ENABLED";
ZmSetting.SOCIAL_EXTERNAL_ENABLED = "SOCIAL_EXTERNAL_ENABLED";
ZmSetting.SOCIAL_EXTERNAL_URL = "SOCIAL_EXTERNAL_URL";
ZmSetting.VOICE_UPSELL_ENABLED = "VOICE_UPSELL_ENABLED";
ZmSetting.SHARING_ENABLED = "SHARING_ENABLED";
ZmSetting.SHARING_ENABLED = "SHARING_ENABLED";

ZmSetting.MAIL_RECALL_ENABLED = "MAIL_RECALL_ENABLED";
ZmSetting.MAIL_RECALL_TIME = "MAIL_RECALL_TIME";

//user selected font
ZmSetting.FONT_CLASSIC = "classic";
Expand Down
2 changes: 2 additions & 0 deletions WebRoot/js/zimbraMail/share/model/ZmSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,8 @@ function() {
this.registerSetting("RESET_PASSWORD_RECOVERY_CODE_EXPIRY", {name:"zimbraResetPasswordRecoveryCodeExpiry", type:ZmSetting.T_COS, dataType:ZmSetting.D_STRING});
this.registerSetting("PASSWORD_RECOVERY_CODE_VALIDITY", {name:"zimbraRecoveryAccountCodeValidity", type:ZmSetting.T_COS, dataType:ZmSetting.D_STRING});
this.registerSetting("PASSWORD_RECOVERY_SUSPENSION_TIME", {name:"zimbraFeatureResetPasswordSuspensionTime", type:ZmSetting.T_COS, dataType:ZmSetting.D_STRING});
this.registerSetting("MAIL_RECALL_ENABLED", {name:"zimbraFeatureMailRecallEnabled", type: ZmSetting.T_COS, dataType: ZmSetting.D_BOOLEAN, defaultValue:false});
this.registerSetting("MAIL_RECALL_TIME", {name:"zimbraFeatureMailRecallTime", type:ZmSetting.T_COS, dataType:ZmSetting.D_INT, defaultValue:30});

// user metadata (included with COS since the user can't change them)
this.registerSetting("LICENSE_STATUS", {type:ZmSetting.T_COS, defaultValue:ZmSetting.LICENSE_GOOD});
Expand Down
4 changes: 2 additions & 2 deletions WebRoot/js/zimbraMail/share/view/ZmActionMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function(id, params, elementId) {
};

ZmActionMenu.prototype.addOp =
function(id) {
ZmOperation.addOperation(this, id, this._menuItems);
function(id, index) {
ZmOperation.addOperation(this, id, this._menuItems, index);
};

ZmActionMenu.prototype.removeOp =
Expand Down

0 comments on commit 94c4f7d

Please sign in to comment.