Bug 1487572 - Rename mailServices.js to MailServices.jsm. r=mkmelin

--HG--
rename : mailnews/base/util/mailServices.js => mailnews/base/util/MailServices.jsm
extra : rebase_source : 7ecd648075015c893ae9c8e4860541744261557c
This commit is contained in:
Geoff Lankow 2018-08-31 12:43:20 +12:00
Родитель 40bbbccc92
Коммит 3e7829922b
313 изменённых файлов: 404 добавлений и 383 удалений

Просмотреть файл

@ -2,7 +2,7 @@
* 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/. */
const { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "cal", "resource://calendar/modules/calUtils.jsm", "cal");

Просмотреть файл

@ -5,7 +5,7 @@
ChromeUtils.import("resource://gre/modules/Preferences.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
const { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
XPCOMUtils.defineLazyModuleGetter(this, "cal", "resource://calendar/modules/calUtils.jsm", "cal");

Просмотреть файл

@ -2,7 +2,7 @@
* 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/. */
const { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Preferences.jsm");

Просмотреть файл

@ -2,7 +2,7 @@
* 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/. */
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
var { cal } = ChromeUtils.import("resource://calendar/modules/calUtils.jsm", null);
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

Просмотреть файл

@ -15,7 +15,7 @@
// XXX Need to determine which of these we really need here.
var { cal } = ChromeUtils.import("resource://calendar/modules/calUtils.jsm", null);
ChromeUtils.import("resource://gre/modules/Services.jsm");
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
// gTabmail is null if we are in a dialog window and not in a tab.
var gTabmail = document.getElementById("tabmail") || null;

Просмотреть файл

@ -7,7 +7,7 @@
*/
var { fixIterator } = ChromeUtils.import("resource:///modules/iteratorUtils.jsm", null);
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
var { cal } = ChromeUtils.import("resource://calendar/modules/calUtils.jsm", null);
/**

Просмотреть файл

@ -5,7 +5,7 @@
const { cal } = ChromeUtils.import("resource://calendar/modules/calUtils.jsm", null);
const { recurrenceRule2String } = ChromeUtils.import("resource://calendar/modules/calRecurrenceUtils.jsm", null);
ChromeUtils.import("resource://gre/modules/Preferences.jsm");
const { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
this.EXPORTED_SYMBOLS = ["ltn"]; /* exported ltn */
var ltn = {};

Просмотреть файл

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
const { ltn } = ChromeUtils.import("resource://calendar/modules/ltnInvitationUtils.jsm", null);
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Preferences.jsm");
function run_test() {

Просмотреть файл

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource:///modules/ABQueryUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -5,7 +5,7 @@
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var gFilterListMsgWindow = null;

Просмотреть файл

@ -3,7 +3,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var editContactInlineUI = {

Просмотреть файл

@ -9,7 +9,7 @@
ChromeUtils.import("resource:///modules/folderUtils.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource:///modules/IOUtils.js");
ChromeUtils.import("resource:///modules/FeedUtils.jsm");

Просмотреть файл

@ -18,7 +18,7 @@
</content>
<implementation>
<constructor><![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
]]></constructor>
<!-- Indicate that we are based on a fulltext search-->
<method name="setFulltext">
@ -1507,7 +1507,7 @@
</content>
<implementation>
<constructor><![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
this.build();
]]></constructor>
<method name="build">

Просмотреть файл

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
// Load and add the menu item to the OS X Dock icon menu.
addEventListener("load", function() {

Просмотреть файл

@ -7,7 +7,7 @@
* consisting of folder pane, thread pane and message pane.
*/
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");

Просмотреть файл

@ -3,7 +3,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/MailUtils.js");
/**

Просмотреть файл

@ -4,7 +4,7 @@
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var mailtolength = 7;

Просмотреть файл

@ -17,7 +17,7 @@ ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/CharsetMenu.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
XPCOMUtils.defineLazyGetter(this, "gViewSourceUtils", function() {
let scope = {};

Просмотреть файл

@ -1301,7 +1301,7 @@
</method>
<constructor>
<![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
]]>
</constructor>
</implementation>
@ -1629,7 +1629,7 @@
</property>
<constructor>
<![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
initializeTermFromId(this.id);
]]>
@ -1703,7 +1703,7 @@
</property>
<constructor>
<![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
]]>
</constructor>
@ -2118,7 +2118,7 @@
</method>
<constructor>
<![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
// initialize strings
@ -2610,7 +2610,7 @@
</method>
<constructor>
<![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
]]>
</constructor>

Просмотреть файл

@ -3,7 +3,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/appIdleManager.js");
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -6,7 +6,7 @@
ChromeUtils.import("resource:///modules/FeedUtils.jsm");
ChromeUtils.import("resource:///modules/gloda/dbview.js");
ChromeUtils.import("resource:///modules/MailConsts.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");

Просмотреть файл

@ -10,7 +10,7 @@
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/displayNameUtils.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/gloda/utils.js");
var {Status: statusUtils} =
ChromeUtils.import("resource:///modules/imStatusUtils.jsm");

Просмотреть файл

@ -11,7 +11,7 @@ ChromeUtils.import("resource:///modules/jsTreeSelection.js");
ChromeUtils.import("resource:///modules/MailConsts.js");
ChromeUtils.import("resource:///modules/mailInstrumentation.js");
ChromeUtils.import("resource:///modules/mailnewsMigrator.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/msgDBCacheManager.js");
ChromeUtils.import("resource:///modules/sessionStoreManager.js");
ChromeUtils.import("resource:///modules/summaryFrameManager.js");

Просмотреть файл

@ -7,7 +7,7 @@ ChromeUtils.import("resource:///modules/gloda/gloda.js");
ChromeUtils.import("resource:///modules/gloda/connotent.js");
ChromeUtils.import("resource:///modules/gloda/mimemsg.js");
ChromeUtils.import("resource:///modules/displayNameUtils.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/templateUtils.js");
var gMessenger = Cc["@mozilla.org/messenger;1"]

Просмотреть файл

@ -4,7 +4,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var dialog;

Просмотреть файл

@ -6,7 +6,7 @@ var EXPORTED_SYMBOLS = ["MailUtils"];
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/MailConsts.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");

Просмотреть файл

@ -4,7 +4,7 @@
this.EXPORTED_SYMBOLS = ['DBViewWrapper', 'IDBViewWrapperListener'];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/mailViewManager.js");
ChromeUtils.import("resource:///modules/searchSpec.js");
ChromeUtils.import("resource:///modules/virtualFolderWrapper.js");

Просмотреть файл

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/StringBundle.js");
var EXPORTED_SYMBOLS = [

Просмотреть файл

@ -14,7 +14,7 @@ var nsIMFNService = Ci.nsIMsgFolderNotificationService;
ChromeUtils.import("resource:///modules/errUtils.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
Cu.importGlobalProperties(["XMLHttpRequest"]);

Просмотреть файл

@ -12,7 +12,7 @@
var EXPORTED_SYMBOLS = ["MailMigrator"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/IOUtils.js");
ChromeUtils.defineModuleGetter(this, "LoginHelper",

Просмотреть файл

@ -11,7 +11,7 @@ ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/errUtils.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/searchSpec.js");
var nsMsgSearchAttrib = Ci.nsMsgSearchAttrib;

Просмотреть файл

@ -5,7 +5,7 @@
this.EXPORTED_SYMBOLS = ['SearchSpec'];
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var nsMsgSearchScope = Ci.nsMsgSearchScope;

Просмотреть файл

@ -1,5 +1,5 @@
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://testing-common/mailnews/mailTestUtils.js");

Просмотреть файл

@ -4,7 +4,7 @@
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource:///modules/activity/alertHook.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://testing-common/mailnews/MockFactory.js");
alertHook.init();

Просмотреть файл

@ -16,7 +16,7 @@ load("../../../../mailnews/resources/messageInjection.js");
load("resources/viewWrapperTestUtils.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
initViewWrapperTestUtils({mode: "imap", offline: false});

Просмотреть файл

@ -14,7 +14,7 @@ ChromeUtils.import("resource://gre/modules/Troubleshoot.jsm");
ChromeUtils.import("resource://gre/modules/ResetProfile.jsm");
ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
// added for TB
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
// end of TB addition
ChromeUtils.defineModuleGetter(this, "PluralForm",

Просмотреть файл

@ -6,7 +6,7 @@
"use strict";
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -12,7 +12,7 @@
* @return - the account created.
*/
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
/* eslint-disable complexity */

Просмотреть файл

@ -3,7 +3,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/hostnameUtils.jsm");
ChromeUtils.import("resource:///modules/OAuth2Providers.jsm");

Просмотреть файл

@ -9,7 +9,7 @@
* Params @see fetchConfigFromISP()
*/
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/JXON.js");

Просмотреть файл

@ -29,7 +29,7 @@
* The ex.message will contain a user-presentable message.
*/
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/OAuth2Providers.jsm");
if (typeof gEmailWizardLogger == "undefined") {

Просмотреть файл

@ -9,7 +9,7 @@ var nsActWarning = Components.Constructor("@mozilla.org/activity-warning;1",
"nsIActivityWarning", "init");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
// This module provides a link between the send later service and the activity

Просмотреть файл

@ -14,7 +14,7 @@ var nsActWarning = Components.Constructor("@mozilla.org/activity-warning;1",
var nsMsgFolderFlags = Ci.nsMsgFolderFlags;
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource:///modules/gloda/log4moz.js");

Просмотреть файл

@ -13,7 +13,7 @@ var nsActWarning = Components.Constructor("@mozilla.org/activity-warning;1",
"nsIActivityWarning", "init");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource:///modules/gloda/log4moz.js");

Просмотреть файл

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource://gre/modules/Services.jsm");
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
var kNonVcardFields =
["NickNameContainer", "SecondaryEmailContainer", "ScreenNameContainer",

Просмотреть файл

@ -18,7 +18,7 @@
// toolkit/content/globalOverlay.js
/* globals goUpdateCommand */
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/IOUtils.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/FileUtils.jsm");

Просмотреть файл

@ -13,7 +13,7 @@
*/
ChromeUtils.import("resource://gre/modules/Services.jsm");
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/IOUtils.js");
// Tree Sort helper methods.

Просмотреть файл

@ -27,7 +27,7 @@
// Ensure the activity modules are loaded for this window.
ChromeUtils.import("resource:///modules/activity/activityModules.js");
ChromeUtils.import("resource:///modules/ABQueryUtils.jsm");
var { MailServices } = ChromeUtils.import("resource:///modules/mailServices.js", null);
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource://gre/modules/Preferences.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -14,7 +14,7 @@ ChromeUtils.import("resource:///modules/mimeParser.jsm");
ChromeUtils.import("resource:///modules/errUtils.js");
ChromeUtils.import("resource:///modules/folderUtils.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource://gre/modules/InlineSpellChecker.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");

Просмотреть файл

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
top.MAX_RECIPIENTS = 1; /* for the initial listitem created in the XUL */

Просмотреть файл

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource:///modules/imServices.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var PREF_EXTENSIONS_GETMOREPROTOCOLSURL = "extensions.getMoreProtocolsURL";

Просмотреть файл

@ -4,7 +4,7 @@
ChromeUtils.import("resource:///modules/imServices.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/DownloadUtils.jsm");
// This is the list of notifications that the account manager window observes

Просмотреть файл

@ -6,7 +6,7 @@ this.EXPORTED_SYMBOLS = ["allContacts", "onlineContacts", "ChatCore"];
ChromeUtils.import("resource:///modules/imServices.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var allContacts = {};
var onlineContacts = {};

Просмотреть файл

@ -12,7 +12,7 @@ ChromeUtils.import("resource:///modules/gloda/indexer.js");
ChromeUtils.import("resource:///modules/imServices.jsm");
ChromeUtils.import("resource:///modules/imXPCOMUtils.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/FileUtils.jsm");
ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -7,7 +7,7 @@ ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
ChromeUtils.import("resource://gre/modules/PluralForm.jsm");
ChromeUtils.import("resource:///modules/StringBundle.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/gloda/log4moz.js");
// Get a configured logger for this component.

Просмотреть файл

@ -6,7 +6,7 @@
ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var nsISupports = Ci.nsISupports;

Просмотреть файл

@ -4,7 +4,7 @@
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
window.addEventListener("load", function () {
let prefWindow = document.getElementById("MailPreferences");

Просмотреть файл

@ -18,7 +18,7 @@
ChromeUtils.import("resource:///modules/gloda/log4moz.js");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -1,5 +1,5 @@
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://testing-common/mailnews/mailTestUtils.js");

Просмотреть файл

@ -2,7 +2,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/mailViewManager.js");
// these constants are now authoritatively defined in mailViewManager.js (above)

Просмотреть файл

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
// Account encryption policy values:
// const kEncryptionPolicy_Never = 0;

Просмотреть файл

@ -9,7 +9,7 @@ var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers",
"account-manager-helpers", "keyboard-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);

Просмотреть файл

@ -15,7 +15,7 @@ var MODULE_REQUIRES = ['address-book-helpers', 'folder-display-helpers',
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var abController = null;
var addrBook1, addrBook2, addrBook3, addrBook4;

Просмотреть файл

@ -13,7 +13,7 @@ var RELATIVE_ROOT = '../shared-modules';
var MODULE_REQUIRES = ['address-book-helpers',
'folder-display-helpers',];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
function setupModule(module) {
collector.getModule('folder-display-helpers').installInto(module);

Просмотреть файл

@ -17,7 +17,7 @@ var MODULE_REQUIRES = ['folder-display-helpers',
'window-helpers'];
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import('resource:///modules/mailServices.js');
ChromeUtils.import('resource:///modules/MailServices.jsm');
var kUploadedFile = "attachment-uploaded";
var kHtmlPrefKey = "mail.identity.default.compose_html";

Просмотреть файл

@ -18,7 +18,7 @@ var MODULE_REQUIRES = ["folder-display-helpers",
"keyboard-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var kBoxId = "attachmentNotificationBox";
var kNotificationId = "attachmentReminder";

Просмотреть файл

@ -21,7 +21,7 @@ var MODULE_REQUIRES = [
var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/osfile.jsm");
var gOutboxFolder;

Просмотреть файл

@ -18,7 +18,7 @@ var MODULE_REQUIRES = ["folder-display-helpers", "compose-helpers",
var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/mimeParser.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);

Просмотреть файл

@ -15,7 +15,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers", "compose-helpers"];
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var gDrafts;
var gOutbox;

Просмотреть файл

@ -15,7 +15,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers",
"compose-helpers", "notificationbox-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
var gDrafts;

Просмотреть файл

@ -16,7 +16,7 @@ var MODULE_REQUIRES = ["folder-display-helpers", "compose-helpers",
"window-helpers", "notificationbox-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var kBoxId = "msgNotificationBar";
var draftsFolder;

Просмотреть файл

@ -15,7 +15,7 @@ var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers", "compose-help
var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);

Просмотреть файл

@ -15,7 +15,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "compose-helpers", "window-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);

Просмотреть файл

@ -14,7 +14,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "compose-helpers", "window-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);
var os = {};

Просмотреть файл

@ -15,7 +15,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers",
"compose-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);

Просмотреть файл

@ -16,7 +16,7 @@ var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers", "compose-help
var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/mimeParser.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);

Просмотреть файл

@ -13,7 +13,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers",
"window-helpers", "compose-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var gInbox;
var gDrafts;

Просмотреть файл

@ -25,7 +25,7 @@ var myEmail2 = "otherme@example.com";
var identity;
var identity2;
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
function setupModule(module) {
collector.getModule("folder-display-helpers").installInto(module);

Просмотреть файл

@ -14,7 +14,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "compose-helpers", "window-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);

Просмотреть файл

@ -33,7 +33,7 @@ var os = {};
ChromeUtils.import("chrome://mozmill/content/stdlib/os.js", os);
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var folder = null;
var gMsgNo = 0;

Просмотреть файл

@ -16,7 +16,7 @@ var MODULE_REQUIRES = ["folder-display-helpers",
"window-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/IOUtils.js");
var statusHeader = "X-Mozilla-Status: ";

Просмотреть файл

@ -8,7 +8,7 @@
* don't get updated when we archive.
*/
ChromeUtils.import("resource:///modules/MailUtils.js");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var MODULE_NAME = 'test-recent-menu';

Просмотреть файл

@ -12,7 +12,7 @@ var RELATIVE_ROOT = '../shared-modules';
var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers",
"nntp-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var nntpAccount;

Просмотреть файл

@ -13,7 +13,7 @@ var MODULE_NAME = 'test-folder-pane';
var RELATIVE_ROOT = '../shared-modules';
var MODULE_REQUIRES = ['folder-display-helpers'];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
function setupModule(module) {
collector.getModule('folder-display-helpers').installInto(module);

Просмотреть файл

@ -28,7 +28,7 @@ function setupFolderMode(aWindow) {
let testFolderTreeMode = {
__proto__: aWindow.IFolderTreeMode,
generateMap: function(aFTV) {
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
// Pick the tinderbox@foo.invalid inbox and use it as the only folder
let server = MailServices.accounts.FindServer("tinderbox", "tinderbox123", "pop3");
let item = new aWindow.ftvItem(server.rootFolder.getChildNamed("Inbox"));

Просмотреть файл

@ -17,7 +17,7 @@ var MODULE_REQUIRES = ['folder-display-helpers', 'window-helpers',
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var folder, folderMore;

Просмотреть файл

@ -7,7 +7,7 @@ var MODULE_NAME = "test-commands";
var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);
var os = {};

Просмотреть файл

@ -11,7 +11,7 @@ var MODULE_NAME = "test-display-names";
var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "address-book-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var folder;

Просмотреть файл

@ -20,7 +20,7 @@ var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import('resource:///modules/iteratorUtils.jsm');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("chrome://mozmill/content/stdlib/httpd.js");
// RELATIVE_ROOT messes with the collector, so we have to bring the path back

Просмотреть файл

@ -8,7 +8,7 @@ var RELATIVE_ROOT = '../shared-modules';
var MODULE_REQUIRES = ['folder-display-helpers', 'window-helpers'];
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
// Our global folder variables...

Просмотреть файл

@ -7,7 +7,7 @@ var MODULE_NAME = "address-book-helpers";
var RELATIVE_ROOT = "../shared-modules";
var MODULE_REQUIRES = ["folder-display-helpers", "window-helpers"];
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
var ABMDB_PREFIX = "moz-abmdbdirectory://";

Просмотреть файл

@ -23,7 +23,7 @@ ChromeUtils.import("resource:///modules/gloda/log4moz.js");
var nsMsgViewIndex_None = 0xffffffff;
ChromeUtils.import('resource:///modules/MailConsts.js');
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import('resource:///modules/MailUtils.js');
ChromeUtils.import('resource:///modules/mailViewManager.js');
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -12,7 +12,7 @@ var elib = {};
ChromeUtils.import("chrome://mozmill/content/modules/elementslib.js", elib);
ChromeUtils.import('resource://gre/modules/Services.jsm');
ChromeUtils.import('resource:///modules/iteratorUtils.jsm');
ChromeUtils.import('resource:///modules/mailServices.js');
ChromeUtils.import('resource:///modules/MailServices.jsm');
ChromeUtils.import('resource://gre/modules/XPCOMUtils.jsm');
var mc, fdh, kbh, dh;

Просмотреть файл

@ -8,7 +8,7 @@ var RELATIVE_ROOT = "../shared-modules";
var MODULES_REQUIRES = ["folder-display-helpers", "window-helpers"];
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
var kSimpleNewsArticle =
"From: John Doe <john.doe@example.com>\n"+

Просмотреть файл

@ -2,7 +2,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");

Просмотреть файл

@ -22,7 +22,7 @@
<constructor>
<![CDATA[
ChromeUtils.import("resource:///modules/mailServices.js", this);
ChromeUtils.import("resource:///modules/MailServices.jsm", this);
ChromeUtils.import("resource:///modules/iteratorUtils.jsm", this);
ChromeUtils.import("resource:///modules/StringBundle.js", this);
this._stringBundle = new this

Просмотреть файл

@ -5,7 +5,7 @@
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/hostnameUtils.jsm");
ChromeUtils.import("resource:///modules/iteratorUtils.jsm");

Просмотреть файл

@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
// Listener to refresh the list items if something changes. In all these
// cases we just rebuild the list as it is easier than searching/adding in the

Просмотреть файл

@ -2,7 +2,7 @@
* 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/. */
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
function nsAbAutoCompleteMyDomain() {}

Просмотреть файл

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource:///modules/mailServices.js");
ChromeUtils.import("resource:///modules/MailServices.jsm");
ChromeUtils.import("resource:///modules/ABQueryUtils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше