During the zimlet initialization, they do something like this.
Code: Select all
if (appCtxt.get(ZmSetting.MAIL_ENABLED)) {
AjxPackage.require({name:"MailCore", callback:new AjxCallback(this, this._applyRequestHeaders)});
}
Code: Select all
ZmMailMsg.requestHeaders["X-Mailer"] = "X-Mailer";
ZmMailMsgView.displayAdditionalHdrsInMsgView[X-Mailer"] = this.getMessage("XMailerZimlet_label_sent");
Code: Select all
if(this._reloadRequired) {
window.onbeforeunload = null;
var url = AjxUtil.formatUrl({});
ZmZimbraMail.sendRedirect(url);
}
Is there a way of removing that header vs restarting this zimlet and all others? I was hoping to find a call to either update the requestHeaders or remove it completely without a browser refresh. I was looking inside zm-web-client/WebRoot/js/zimbraMail/mail/view for some ideas but could be in the wrong area. I am beginning to look at how zimbra is put together and thought these zimlets could be a great way to learn as I go. Stumped out of the gate.
My plan B is trying it via onMsgView but I am curious if there is a better or simpler way.
Thanks for any clues.
Jim