From 9d173c7a05381f8f7abcbc00e901248c2bb6f0ed Mon Sep 17 00:00:00 2001 From: Stephan Helma Date: Wed, 21 Aug 2019 09:56:21 +0200 Subject: [PATCH] * First step to TB60 compatibility. * But preferences do not work. --- .../content/replyManagerComposeOverlay.js | 10 +-- .../content/replyManagerComposeOverlay.xul | 13 ++-- .../chrome/content/replyManagerDateDialog.js | 2 +- .../chrome/content/replyManagerDateDialog.xul | 3 + .../content/replyManagerMailWindowOverlay.js | 23 +++--- .../content/replyManagerMsgHdrViewOverlay.js | 12 ++-- .../chrome/content/replyManagerPreferences.js | 6 +- .../content/replyManagerPreferences.xul | 72 +++++++++---------- .../content/replyManagerShowAddressDialog.xul | 3 + .../defaults/preferences/prefs.js | 2 +- replymonitor@lin.han/install.rdf | 2 +- replymonitor@lin.han/manifest.json | 19 +++++ .../modules/replyManagerCalendar.jsm | 16 ++--- .../modules/replyManagerUtils.jsm | 16 ++--- 14 files changed, 115 insertions(+), 84 deletions(-) create mode 100644 replymonitor@lin.han/manifest.json diff --git a/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.js b/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.js index 4a6b109..318efc8 100644 --- a/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.js +++ b/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.js @@ -1,10 +1,10 @@ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -Components.utils.import("resource://replymanager/modules/replyManagerUtils.jsm"); -Components.utils.import("resource://replymanager/modules/calUtils.jsm"); -Components.utils.import("resource:///modules/gloda/indexer.js"); -Components.utils.import("resource://gre/modules/Preferences.jsm"); +var { replyManagerUtils } = ChromeUtils.import("resource://replymanager/modules/replyManagerUtils.jsm"); +var { calUtils } = ChromeUtils.import("resource://replymanager/modules/calUtils.jsm"); +var { indexer } = ChromeUtils.import("resource:///modules/gloda/indexer.js"); +var { Preferences } = ChromeUtils.import("resource://gre/modules/Preferences.jsm"); function onLoad() { // We need both ReplyManager and Gloda indexer enabled to make this feature work. @@ -75,7 +75,7 @@ replyManagerComposeStateListener.prototype = { NotifyComposeBodyReady: function() {}, ComposeProcessDone: function(aResult) { - let folder = MailUtils.getFolderForURI(gMsgCompose.savedFolderURI); + let folder = MailUtils.getExistingFolder(gMsgCompose.savedFolderURI); let msgDB = folder.msgDatabase; let savedMsgHdr = msgDB.getMsgHdrForMessageID(this.msgID); let toggle = document.getElementById("other-elements-toggle").checked; diff --git a/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.xul b/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.xul index 77175f0..94b05ee 100644 --- a/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.xul +++ b/replymonitor@lin.han/chrome/content/replyManagerComposeOverlay.xul @@ -2,9 +2,12 @@ - - - + + + + + + %replyManagerDTD; @@ -16,6 +19,8 @@