From e0f5be5381c7fd529f87330c36d4535eddc1a401 Mon Sep 17 00:00:00 2001 From: Babu Vincent Date: Thu, 6 Nov 2014 20:24:57 +0530 Subject: [PATCH] New invities are marked tentative automatically and mails are sent to the organizer #41 ::: #19 --- chrome/content/exchangeSettings.js | 5 +++++ chrome/content/exchangeSettings.xul | 11 +++++++++-- interfaces/exchangeCalendar/mivExchangeCalendar.js | 10 +++++++--- locale/exchangecalendar/en-US/exchangeSettings.dtd | 3 ++- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/chrome/content/exchangeSettings.js b/chrome/content/exchangeSettings.js index 565682a4..f1894277 100644 --- a/chrome/content/exchangeSettings.js +++ b/chrome/content/exchangeSettings.js @@ -263,6 +263,7 @@ exchExchangeSettings.prototype = { .getBranch("extensions.exchangecalendar@extensions.1st-setup.nl."+calId+"."); this._document.getElementById("exchWebService-poll-calendar-interval").value = this.globalFunctions.safeGetIntPref(exchWebServicesCalPrefs, "ecCalendarPollInterval", 60); this._document.getElementById("exchWebService-autoprocessingproperties-deletecancelleditems").checked = this.globalFunctions.safeGetBoolPref(exchWebServicesCalPrefs, "ecautoprocessingdeletecancelleditems", true); + this._document.getElementById("exchWebService-autoprocessingproperties-markeventtentative").checked = this.globalFunctions.safeGetBoolPref(exchWebServicesCalPrefs, "ecautoprocessingmarkeventtentative", false); /* this._document.getElementById("exchWebService-poll-inbox").checked = this.globalFunctions.safeGetBoolPref(exchWebServicesCalPrefs, "ecPollInbox", true); this._document.getElementById("exchWebService-poll-inbox-interval").value = this.globalFunctions.safeGetIntPref(exchWebServicesCalPrefs, "ecPollInboxInterval", 180); @@ -316,6 +317,10 @@ exchExchangeSettings.prototype = { if ( this._document.getElementById("exchWebService-autoprocessingproperties-deletecancelleditems").checked != this.globalFunctions.safeGetBoolPref(exchWebServicesCalPrefs, "ecautoprocessingdeletecancelleditems",null) ) { exchWebServicesCalPrefs.setBoolPref("ecautoprocessingdeletecancelleditems", this._document.getElementById("exchWebService-autoprocessingproperties-deletecancelleditems").checked); + } + if ( this._document.getElementById("exchWebService-autoprocessingproperties-markeventtentative").checked != this.globalFunctions.safeGetBoolPref(exchWebServicesCalPrefs, "ecautoprocessingmarkeventtentative",null) ) + { + exchWebServicesCalPrefs.setBoolPref("ecautoprocessingmarkeventtentative", this._document.getElementById("exchWebService-autoprocessingproperties-markeventtentative").checked); } this.doAutoProcessing(); diff --git a/chrome/content/exchangeSettings.xul b/chrome/content/exchangeSettings.xul index a271afbe..692192f9 100644 --- a/chrome/content/exchangeSettings.xul +++ b/chrome/content/exchangeSettings.xul @@ -386,14 +386,21 @@ - + - + + + + + + + diff --git a/interfaces/exchangeCalendar/mivExchangeCalendar.js b/interfaces/exchangeCalendar/mivExchangeCalendar.js index 1bde143f..49e8b9c1 100644 --- a/interfaces/exchangeCalendar/mivExchangeCalendar.js +++ b/interfaces/exchangeCalendar/mivExchangeCalendar.js @@ -3367,7 +3367,11 @@ try{ }, get deleteCancelledInvitation() { - return this.globalFunctions.safeGetBoolPref(this.prefs, "ecautoprocessingdeletecancelleditems", false); + return this.globalFunctions.safeGetBoolPref(this.prefs, "ecautoprocessingdeletecancelleditems", true); + }, + + get markEventasTentative() { + return this.globalFunctions.safeGetBoolPref(this.prefs, "ecautoprocessingmarkeventtentative", false); }, checkInbox: function _checkInbox() @@ -7189,9 +7193,9 @@ dump("\n== removed ==:"+aCalendarEvent.toString()+"\n"); this.itemCount++; isOldCacheItem=false; - if (this.debug) this.logInfo("updateCalendar2: setTentative:"+ item.title); - if ( isEvent(aItem) ) + if ( isEvent(aItem) && this.markEventasTentative ) { + if (this.debug) this.logInfo("updateCalendar2: setTentative:"+ item.title); this.setTentative(aItem,aItems[index],isOldCacheItem); } if (this.debug) this.logInfo("updateCalendar2: onAddItem:"+ item.title); diff --git a/locale/exchangecalendar/en-US/exchangeSettings.dtd b/locale/exchangecalendar/en-US/exchangeSettings.dtd index 2d807305..10188ce4 100644 --- a/locale/exchangecalendar/en-US/exchangeSettings.dtd +++ b/locale/exchangecalendar/en-US/exchangeSettings.dtd @@ -45,4 +45,5 @@ - + +