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.
- In Search API sent parameter recip:3, in order to get CC and BCC data in response from BE to display the correct count above when the type is the message.
  • Loading branch information
sandesh-telus authored and sakshirawat0247 committed Dec 27, 2024
1 parent 7fdaf96 commit dbc327a
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 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
2 changes: 1 addition & 1 deletion WebRoot/js/zimbraMail/share/model/ZmSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function(params) {
if (this.types.contains(ZmItem.MSG) || this.types.contains(ZmItem.CONV)) {
// special handling for showing participants ("To" instead of "From")
var folder = this.folderId && appCtxt.getById(this.folderId);
request.recip = (folder && folder.isOutbound()) ? "2" : "0";
request.recip = (folder && folder.isOutbound()) ? (this.types.contains(ZmItem.MSG) ? "3" : "2") : "0";
}

if (this.types.contains(ZmItem.CONV)) {
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 @@ -267,7 +267,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("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("SHARED_FOLDER_MOBILE_SYNC_ENABLED", {name:"zimbraFeatureSharedFolderMobileSyncEnabled", type:ZmSetting.T_COS, dataType:ZmSetting.D_BOOLEAN});
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 dbc327a

Please sign in to comment.