Граф коммитов

340 Коммитов

Автор SHA1 Сообщение Дата
Martin Giger 69907a5a50 Bug 1696659 - Replace uses of OS.* with IOUtils and friends. r=mkmelin
Except for chat's logger.jsm (and test), ext-compose.js (no IOUtils in extension API implementations)
and converterWorker (uses OS.File.open to read and write big files).

Differential Revision: https://phabricator.services.mozilla.com/D111298

--HG--
extra : moz-landing-system : lando
2021-04-12 22:54:06 +00:00
Geoff Lankow 4ff10d2825 No bug - Remove obsolete test invocation comments. rs=me
Needed something to kick off a build.
2021-04-12 11:03:31 +12:00
Magnus Melin b02c872895 Bug 1678109 - get rid of the mailnews IOUtils.jsm module. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D108933

--HG--
extra : rebase_source : d8bd49f8dd04b4b142c9975fe18a422da89587e9
2021-03-18 14:28:05 +02:00
Ping Chen de59c7ca6f Bug 1698993 - Support Delivery Status Notification in SmtpService.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D109295

--HG--
extra : amend_source : bac73487e4d035add61835fa426f07a14c2df21c
2021-03-23 12:18:43 +02:00
Ping Chen 2ebf654a54 Bug 1696893 - Fix crash in nsMsgMdnGenerator::SendMdnMsg. r=mkmelin
Seems when an idl function is implemented in JS, the out param can't be nullptr in C++.

Differential Revision: https://phabricator.services.mozilla.com/D108732

--HG--
extra : amend_source : f9824a2343663ca3d62bef84fa650f166c7702d8
2021-03-17 12:06:03 +02:00
Ping Chen 5664f19831 Bug 1690977 - Enable test_smtpProxy for SmtpService.jsm. r=mkmelin
SOCKS proxy support was added to TCPSocket in bug 902346.
2021-02-19 12:59:16 +02:00
Ping Chen 522e934644 Bug 1690957 - Fix text wrapping in MessageSend.jsm when mailnews.wraplength is 0. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D105571

--HG--
extra : amend_source : 57692b5d8efc1006f6cc6e573f5904902ee9f95e
2021-02-18 12:26:40 +02:00
Ping Chen 6fceb90f16 Bug 1692484 - Make sending bcc mail more efficent in MessageSend.jsm. r=mkmelin
Only parse the MIME head part in _createDeliveryFile.

Differential Revision: https://phabricator.services.mozilla.com/D105160

--HG--
extra : amend_source : fabca553740f9a42766524dfb2d205003d394922
2021-02-15 12:56:46 +02:00
Ping Chen af1bf36d0b Bug 1679730 - Clear cached password in SmtpServer.jsm if password manager changed. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D104794

--HG--
extra : amend_source : 1f3a531872d0757f4bbb184d468aecf65a6d3a70
2021-02-11 23:19:50 +02:00
Alfred Peters add8e2c3e3 Bug 1689804 - Save a space to the previous line on a quoted printable soft line break. r=benc 2021-02-05 12:55:09 +02:00
Ping Chen 6fb06f0901 Bug 1686181 - Support CRAM-MD5 authentication in SmtpClient.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D102524

--HG--
extra : amend_source : 9c7ec255161366f412f503a8bfdbc357dbfa6420
2021-01-21 12:48:35 +02:00
Ping Chen 4d31c10aa0 Bug 1686636 - Fix _createDeliveryFile in MessageSend.jsm. r=mkmelin
Forgot to use await. Test message body in test_bcc.js.
2021-01-19 12:56:44 +02:00
Ping Chen 63a72a6773 Bug 1686636 - Save bcc header when doing copy operation in MessageSend.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D101710

--HG--
extra : amend_source : a15c66857d8ed47d53558b7768e75a6a5c35c860
2021-01-18 12:42:05 +02:00
Ping Chen bfd657b943 Bug 1679730 - Part 5: Enable more unit tests for SmtpService.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D101443
2021-01-13 12:48:36 +02:00
Ping Chen 76c81fad32 Bug 1679730 - Part 4: Try another auth if current auth failed in SmtpClient.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D101127

--HG--
extra : amend_source : 85acc685338b4d240d38a572f89fa9924d3cae04
2021-01-12 12:31:38 +02:00
Ping Chen 7ef1ff1956 Bug 1679730 - Part 3: Enable some unit tests for SmtpService.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D100068

--HG--
extra : amend_source : 15d9e8e4bf0e9e4a65506be52951b4f13575b8d7
2020-12-20 12:58:40 +02:00
Ben Campbell 49deaec6f2 Bug 1682943 - Remove nsISimpleEnumerator use in nsISmtpService.idl. r=mkmelin 2020-12-17 10:02:30 +13:00
Ping Chen 9c43578bf9 Bug 1680189 - Implement createRFC822Message in MessageSend.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D98708

--HG--
extra : moz-landing-system : lando
2020-12-07 09:29:56 +00:00
Ben Campbell a09229121a Bug 1612239 - Remove nsIArray usage from nsIMsgFolder. r=mkmelin
--HG--
extra : amend_source : 5c6bd195120cd6ded0571a3ec88a6575020f9ed2
2020-12-03 13:41:57 +13:00
Ping Chen 47359f1d9b Bug 522450 - Fix fccReplyFollowsParent handling for ReplyToList compose type. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D96815

--HG--
extra : amend_source : 735f87ce84a48ac7dfc506e254b7c68a3fa103c4
2020-11-12 12:52:14 +02:00
Rob Lemley 74c6535302 Bug 1672798 - Run black formatting on mozbuild and mozconfigure files. r=mkmelin
Bringing some sanity to our Python scripts.

Differential Revision: https://phabricator.services.mozilla.com/D95402

--HG--
extra : rebase_source : 7eed46d79663fa1f261bd64d9bc1c83c4867bfc4
extra : histedit_source : b8b700c76ab2fee92eb426b5a5b69dc86376e60f
2020-10-30 14:28:33 -04:00
Ping Chen 2bf6b461b8 Bug 1211292 - Fix sendDeliveryCallback and doFcc in MessageSend.jsm. r=mkmelin 2020-10-29 12:09:40 +02:00
Ping Chen 2a81e59e7b Bug 1211292 - Fix QP encoding for MessageSend.jsm. r=mkmelin DONTBUILD 2020-10-22 13:50:33 +03:00
Ping Chen 669d477f95 Bug 1211292 - Enable test_sendMailAddressIDN.js for MessageSend.jsm. r=mkmelin 2020-10-21 13:18:55 +03:00
Ping Chen 517cc93771 Bug 1656594 - RFC2231 encode the name param in X-Mozilla-Cloud-Part header. r=mkmelin 2020-10-20 12:39:10 +03:00
Ping Chen 9632f42ffd Bug 1211292 - Return Promise in nsIMsgSend and nsIMsgCompose. r=mkmelin 2020-10-16 13:36:07 +03:00
Magnus Melin 10eba65ee2 Backed out changeset 5c87be1d969d (bug 1211292) for windows build failures. r=me DONTBUILD 2020-10-15 13:57:12 +03:00
Ping Chen cf55b5ae33 Bug 1211292 - Return Promise in nsIMsgSend and nsIMsgCompose. r=mkmelin DONTBUILD 2020-10-15 12:28:44 +03:00
Ping Chen 200f067816 Bug 1211292 - Show a warning dialog for large message file in MessageSend.jsm. r=mkmelin 2020-10-13 13:00:49 +03:00
Ping Chen a84d75c133 Bug 1211292 - Support message encryption in MessageSend.jsm. r=mkmelin 2020-10-13 13:00:31 +03:00
Ping Chen 7d89b771b9 Bug 1211292 - Support retrying on copy failure and support fcc2 in MessageSend.jsm. r=mkmelin 2020-10-02 17:20:53 +09:00
Ben Campbell 8289753749 Bug 1665577 - Add nsIMsgSendListener.onTransportSecurityError to handle NSS errors (e.g. bad certs) during sending. r=mkmelin 2020-09-26 08:24:30 +12:00
Ping Chen 59cf3b9e75 Bug 1211292 - Disable four tests for MessageSend.jsm. r=mkmelin 2020-09-30 20:17:08 +09:00
Ping Chen dcb83bbdf8 Bug 1211292 - Enable remaining composition mochitests for MessageSend.jsm. r=mkmelin 2020-09-28 10:13:52 +09:00
Ping Chen 63ba40df16 Bug 1211292 - Enable browser_attachmentReminder and browser_emlActions for MessageSend.jsm. r=mkmelin 2020-09-23 13:56:36 +03:00
Ping Chen b6bada6567 Bug 1211292 - Enable test_temporaryFilesRemoved for MessageSend.jsm. r=mkmelin 2020-09-20 13:55:06 +03:00
Gene Smith afa5bda3ca Bug 1665652 - Fix to avoid failure in and updates to test_sendMailAddressIDN.js r=mkmelin
Also includes corrections to comments.
2020-09-20 13:52:06 +03:00
Magnus Melin e617b978ea Bug 1563891 - followup to fix linting. rs=eslint DONTBUILD
--HG--
extra : amend_source : e5255401e054a8a1c4304ef5cf29d974b9f35d96
2020-09-16 15:00:45 +03:00
Gene Smith 6468a137f5 Bug 1563891 - Add support for SMTPUTF8 (allow valid UTF-8 characters in recipient addresses, RFC 6531) r=mkmelin DONTBUILD 2020-09-16 13:51:25 +03:00
Ping Chen abd622ea34 Bug 1211292 - Enable test_sendMessageFile and test_autoReply for MessageSend.jsm. r=mkmelin DONTBUILD 2020-09-13 13:08:22 +03:00
Ping Chen 8c1b234f0f Bug 1211292 - Enable test_sendBackground and test_sendMessageLater for MessageSend.jsm. r=mkmelin 2020-09-13 13:08:13 +03:00
Ping Chen 9deec9dc1b Bug 1211292 - Enable test_attachment for MessageSend.jsm. r=mkmelin 2020-09-08 22:51:33 +03:00
Ping Chen f85c4e3ebe Bug 1211292 - Enable test_saveDraft and test_detectAttachmentCharset for MessageSend.jsm. r=mkmelin DONTBUILD 2020-09-07 13:54:52 +03:00
Ping Chen 26e48b9545 Bug 1211292 - Enable test_messageHeaders for MessageSend.jsm. r=mkmelin 2020-09-07 13:54:34 +03:00
Geoff Lankow 86c28861f5 Bug 1660126 - Dismantle remains of the Mork address book provider. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D88752

--HG--
extra : rebase_source : b9eb6cba00d121c4da132eac5f78a525f71405e4
2020-08-28 20:08:26 +12:00
Ping Chen b9e582ccc7 Bug 862292 followup - Fix newline character in test_longLines. r=mkmelin DONTBUILD
--HG--
extra : amend_source : 3eeea9c9f8b231e228c5554c817c0f147d185fe7
2020-08-26 17:14:11 +09:00
Ping Chen b5a07fc993 Bug 862292 - Use UTF-8 for all outgoing email. r=mkmelin
--HG--
extra : amend_source : 74c7415aa16fbeecc4c01403747f0bef5c435549
2020-08-10 13:51:54 +09:00
Jorg K 93db6b3c14 Bug 1647104 - Fix typos in chat, common, db, editor, mail, mailnews found with codespell. rs=comment-only,typo-fix r=mkmelin DONTBUILD
This excludes OpenPGP code in mail/extensions.
2020-06-21 20:27:10 +02:00
Kai Engert 6c7626bd9a Bug 1647104 - Backed out changeset 9ca3551392f6. a=mkmelin 2020-06-22 14:09:32 +02:00
Jorg K 1a94f7447e Bug 1647104 - Fix typos in chat, common, db, editor, mail, mailnews found with codespell. rs=comment-only,typo-fix DONTBUILD 2020-06-21 20:27:10 +02:00
Ping Chen 46068cbb5d Bug 1615989 - Collect how many mails are sent. r=mkmelin
--HG--
extra : rebase_source : cdfc57ac41cd73ad04c06daaa84214fa067f2fc9
2020-05-26 13:30:23 +03:00
Ping Chen b4c234eb75 Bug 1615996 - Add telemetry to count use of message compose type. r=mkmelin,jorgk DONTBUILD 2020-05-21 13:56:18 +03:00
Magnus Melin 29f6f7d029 Bug 1610124 - fix linting error in test_smtpProxy.js. rs=eslint DONTBUILD 2020-02-06 12:45:40 +02:00
Magnus Melin eba104eee0 Bug 1610124 - remove unneeded run_test() from test_smtpProxy.js. r=darktrojan 2020-02-05 10:36:33 +02:00
Ben Campbell a478160c6a Bug 1584889 - Add telemetry to count use of HTML vs plaintext message composition. r=mkmelin 2020-02-05 22:24:19 +02:00
Magnus Melin b54ce4f72b Bug 1529583 - rename all Thunderbird related modules to .jsm, capitalize names and fix some namings. r=pmorris,Fallen DONTBUILD
grep -rEl EXPORTED_SYMBOLS --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --include="*.js" --exclude=".*" . | xargs -I '{}' bash -c 'oldpath=$1; oldname=$(basename $1); newname="${oldname/\.js/.jsm}";newname="${newname^}"; newname=$(sed -E "s/(.*)[_-](.)(.*)/\1\U\2\L\3/g" <<< $newname); newpath="${oldpath%/*}/$newname"; echo "$newname $oldpath $newpath"; hg mv $oldpath $newpath; grep -rEl $oldname --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --exclude-dir=chat/protocols/matrix/ . | xargs sed -E -i "s/( |\\\"|'\''|\/)${oldname/./\\.}/\1$newname/g"' -- {}

hg revert calendar/test/modules/CalendarUtils.jsm
hg revert chat/protocols/matrix/

hg revert chat/protocols/xmpp/xmpp-authmechs.jsm

# change Utils.jsm to utils.jsm
sed -i -e 's/Utils.jsm/utils.jsm/g' mail/test/browser/shared-modules/moz.build

# there's the mozmill/utils.js file
find . -type f -not -path "*.hg/*" -not -path "suite/*" -not -path "editor/*" -exec sed -i 's#mozmill/Utils.jsm*"#mozmill/utils.jsm#g' {} \;

correct sorting in
/home/magnus/Code/tb/mozilla/comm/mailnews/db/gloda/modules/moz.build

* * *
Bug 1529583 - fix linting errors discovered by js -> jsm renaming.

TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/base/util/JXON.jsm:217:21 | 'document' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/base/util/JsTreeSelection.jsm:7:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/base/util/TraceHelper.jsm:7:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Connotent.jsm:14:5 | 'LOG' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Databind.jsm:9:5 | 'DBC_LOG' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Datamodel.jsm:17:9 | 'MailServices' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Datamodel.jsm:24:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Dbview.jsm:14:9 | 'Gloda' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Dbview.jsm:15:9 | 'GlodaMsgSearcher' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Everybody.jsm:8:5 | 'LOG' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Explattr.jsm:19:9 | 'GlodaUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Explattr.jsm:19:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Explattr.jsm:26:5 | 'EXT_BUILTIN' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Fundattr.jsm:12:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Fundattr.jsm:14:9 | 'GlodaDatastore' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Fundattr.jsm:20:9 | 'MimeType' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Gloda.jsm:22:9 | 'GlodaDatabind' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Gloda.jsm:34:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexAb.jsm:10:9 | 'GlodaDatastore' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexAb.jsm:21:9 | 'GlodaUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexAb.jsm:21:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexMsg.jsm:17:9 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexMsg.jsm:30:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/IndexMsg.jsm:84:5 | 'JUNK_HAM_SCORE_STR' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Indexer.jsm:15:9 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Indexer.jsm:22:43 | Replace `"resource:///modules/gloda/Utils.jsm"` with `⏎··"resource:///modules/gloda/Utils.jsm"⏎` (prettier/prettier)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Log4moz.jsm:9:5 | 'MODE_RDONLY' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Log4moz.jsm:13:5 | 'MODE_TRUNCATE' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Log4moz.jsm:16:5 | 'PERMS_DIRECTORY' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Mimemsg.jsm:15:9 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Mimemsg.jsm:19:5 | 'EMITTER_MIME_CODE' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Suffixtree.jsm:42:5 | 'print' is not defined. (no-undef)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/db/gloda/modules/Suffixtree.jsm:388:10 | 'examplar' is defined but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/fakeserver/Imapd.jsm:500:5 | 'IMAP_FLAG_CASE_INSENSITIVE' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/fakeserver/Imapd.jsm:516:5 | 'IMAP_NAMESPACE_OTHER_USERS' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/fakeserver/Imapd.jsm:517:5 | 'IMAP_NAMESPACE_SHARED' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:20:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:29:7 | 'AuthPLAIN' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:29:18 | 'AuthLOGIN' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/IMAPpump.jsm:29:29 | 'AuthCRAM' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/MailTestUtils.jsm:12:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/MessageGenerator.jsm:805:10 | 'addMessagesToFolder' is defined but never used. (no-unused-vars)
TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/comm/mailnews/test/resources/MockFactory.jsm:7:7 | 'XPCOMUtils' is assigned a value but never used. (no-unused-vars)
* * *
Bug 1529583 - part tree, cleanup and improve some module namings

declare -A x
x["Bond.jsm"]="BondOpenPGP.jsm"
x["Gnupg.jsm"]="GnuPGCryptoAPI.jsm"
x["RnpCryptoapi.jsm"]="RNPCryptoAPI.jsm"
x["Connotent.jsm"]="GlodaContent.jsm"
x["Databind.jsm"]="GlodaDatabind.jsm"
x["Datamodel.jsm"]="GlodaDataModel.jsm"
x["Datastore.jsm"]="GlodaDatastore.jsm"
x["Dbview.jsm"]="GlodaSyntheticView.jsm"
x["Explattr.jsm"]="GlodaExplicitAttr.jsm"
x["Fundattr.jsm"]="GlodaFundAttr.jsm"
x["IndexAb.jsm"]="GlodaMsgIndexer.jsm"
x["Indexer.jsm"]="GlodaIndexer.jsm"
x["Mimemsg.jsm"]="MimeMessage.jsm"
x["MsgSearch.jsm"]="GlodaMsgSearcher.jsm"
x["Public.jsm"]="GlodaPublic.jsm"
x["Query.jsm"]="GlodaQueryClassFactory.jsm"
x["Suffixtree.jsm"]="SuffixTree.jsm"
#x["Utils.js"]="GlodaUtils.jsm"

for f in "${!x[@]}"; do
  export newname=${x[$f]}
  find . -type f -not -path "*.hg/*" -name $f | xargs -I '{}' bash -c 'oldpath=$1; oldname=$(basename $1); newpath="${oldpath%/*}/$newname"; echo " newname=$newname $oldpath -> $newpath"; hg mv $oldpath $newpath; grep -rEl $oldname --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor --exclude-dir=chat/protocols/matrix/ . | xargs sed -E -i "s/( |\\\"|'\''|\/)${oldname/./\\.}/\1$newname/g"' -- {}
done;

hg mv mailnews/db/gloda/modules/Utils.jsm mailnews/db/gloda/modules/GlodaUtils.jsm
grep -rEl --exclude-dir=.hg --exclude-dir=suite --exclude-dir=editor "gloda/Utils.jsm" . | xargs sed -i 's#gloda/Utils.jsm#gloda/GlodaUtils.jsm#g'

# manually sort mailnews/db/gloda/modules/moz.build

# manually update some ical.js references to be that as it's the project name

--HG--
rename : calendar/base/modules/ical.js => calendar/base/modules/Ical.jsm
rename : mail/components/appIdleManager.js => mail/components/AppIdleManager.jsm
rename : mail/components/about-support/aboutSupportMac.js => mail/components/about-support/AboutSupportMac.jsm
rename : mail/components/about-support/aboutSupportUnix.js => mail/components/about-support/AboutSupportUnix.jsm
rename : mail/components/about-support/aboutSupportWin32.js => mail/components/about-support/AboutSupportWin32.jsm
rename : mail/components/wintaskbar/windowsJumpLists.js => mail/components/wintaskbar/WindowsJumpLists.jsm
rename : mail/extensions/openpgp/content/bond.js => mail/extensions/openpgp/content/BondOpenPGP.jsm
rename : mail/extensions/openpgp/content/modules/cryptoAPI/gnupg.js => mail/extensions/openpgp/content/modules/cryptoAPI/GnuPGCryptoAPI.jsm
rename : mail/extensions/openpgp/content/modules/cryptoAPI/rnp-cryptoAPI.js => mail/extensions/openpgp/content/modules/cryptoAPI/RNPCryptoAPI.jsm
rename : mailnews/base/src/virtualFolderWrapper.js => mailnews/base/src/VirtualFolderWrapper.jsm
rename : mailnews/base/util/errUtils.js => mailnews/base/util/ErrUtils.jsm
rename : mailnews/base/util/IOUtils.js => mailnews/base/util/IOUtils.jsm
rename : mailnews/base/util/JXON.js => mailnews/base/util/JXON.jsm
rename : mailnews/base/util/jsTreeSelection.js => mailnews/base/util/JsTreeSelection.jsm
rename : mailnews/base/util/mailnewsMigrator.js => mailnews/base/util/MailnewsMigrator.jsm
rename : mailnews/base/util/msgDBCacheManager.js => mailnews/base/util/MsgDBCacheManager.jsm
rename : mailnews/base/util/StringBundle.js => mailnews/base/util/StringBundle.jsm
rename : mailnews/base/util/templateUtils.js => mailnews/base/util/TemplateUtils.jsm
rename : mailnews/base/util/traceHelper.js => mailnews/base/util/TraceHelper.jsm
rename : mailnews/db/gloda/modules/collection.js => mailnews/db/gloda/modules/Collection.jsm
rename : mailnews/db/gloda/modules/everybody.js => mailnews/db/gloda/modules/Everybody.jsm
rename : mailnews/db/gloda/modules/facet.js => mailnews/db/gloda/modules/Facet.jsm
rename : mailnews/db/gloda/modules/gloda.js => mailnews/db/gloda/modules/Gloda.jsm
rename : mailnews/db/gloda/modules/connotent.js => mailnews/db/gloda/modules/GlodaContent.jsm
rename : mailnews/db/gloda/modules/datamodel.js => mailnews/db/gloda/modules/GlodaDataModel.jsm
rename : mailnews/db/gloda/modules/databind.js => mailnews/db/gloda/modules/GlodaDatabind.jsm
rename : mailnews/db/gloda/modules/datastore.js => mailnews/db/gloda/modules/GlodaDatastore.jsm
rename : mailnews/db/gloda/modules/explattr.js => mailnews/db/gloda/modules/GlodaExplicitAttr.jsm
rename : mailnews/db/gloda/modules/fundattr.js => mailnews/db/gloda/modules/GlodaFundAttr.jsm
rename : mailnews/db/gloda/modules/indexer.js => mailnews/db/gloda/modules/GlodaIndexer.jsm
rename : mailnews/db/gloda/modules/index_ab.js => mailnews/db/gloda/modules/GlodaMsgIndexer.jsm
rename : mailnews/db/gloda/modules/msg_search.js => mailnews/db/gloda/modules/GlodaMsgSearcher.jsm
rename : mailnews/db/gloda/modules/public.js => mailnews/db/gloda/modules/GlodaPublic.jsm
rename : mailnews/db/gloda/modules/query.js => mailnews/db/gloda/modules/GlodaQueryClassFactory.jsm
rename : mailnews/db/gloda/modules/dbview.js => mailnews/db/gloda/modules/GlodaSyntheticView.jsm
rename : mailnews/db/gloda/modules/utils.js => mailnews/db/gloda/modules/GlodaUtils.jsm
rename : mailnews/db/gloda/modules/index_msg.js => mailnews/db/gloda/modules/IndexMsg.jsm
rename : mailnews/db/gloda/modules/log4moz.js => mailnews/db/gloda/modules/Log4moz.jsm
rename : mailnews/db/gloda/modules/mimemsg.js => mailnews/db/gloda/modules/MimeMessage.jsm
rename : mailnews/db/gloda/modules/mimeTypeCategories.js => mailnews/db/gloda/modules/MimeTypeCategories.jsm
rename : mailnews/db/gloda/modules/noun_freetag.js => mailnews/db/gloda/modules/NounFreetag.jsm
rename : mailnews/db/gloda/modules/noun_mimetype.js => mailnews/db/gloda/modules/NounMimetype.jsm
rename : mailnews/db/gloda/modules/noun_tag.js => mailnews/db/gloda/modules/NounTag.jsm
rename : mailnews/db/gloda/modules/suffixtree.js => mailnews/db/gloda/modules/SuffixTree.jsm
rename : mailnews/test/fakeserver/auth.js => mailnews/test/fakeserver/Auth.jsm
rename : mailnews/test/fakeserver/imapd.js => mailnews/test/fakeserver/Imapd.jsm
rename : mailnews/test/fakeserver/maild.js => mailnews/test/fakeserver/Maild.jsm
rename : mailnews/test/fakeserver/nntpd.js => mailnews/test/fakeserver/Nntpd.jsm
rename : mailnews/test/fakeserver/pop3d.js => mailnews/test/fakeserver/Pop3d.jsm
rename : mailnews/test/fakeserver/smtpd.js => mailnews/test/fakeserver/Smtpd.jsm
rename : mailnews/test/resources/IMAPpump.js => mailnews/test/resources/IMAPpump.jsm
rename : mailnews/test/resources/localAccountUtils.js => mailnews/test/resources/LocalAccountUtils.jsm
rename : mailnews/test/resources/mailTestUtils.js => mailnews/test/resources/MailTestUtils.jsm
rename : mailnews/test/resources/messageGenerator.js => mailnews/test/resources/MessageGenerator.jsm
rename : mailnews/test/resources/MockFactory.js => mailnews/test/resources/MockFactory.jsm
extra : amend_source : 810c5e4724ae28add2f66a87e88bc144578425e8
2020-01-25 12:05:55 +02:00
Khushil Mistry 26b9a60a50 Bug 1594000 - Convert remaining nsISimpleEnumerator users to use JS iteration in /mailnews. r=mkmelin 2020-01-13 09:32:02 +02:00
Jorg K 4d8c0c4ac5 Bug 1222046 - Follow-up: fix test properly this time. r=me
--HG--
extra : amend_source : a8b671660d650f2735650f44d2f565b9195f937f
2020-01-12 09:14:36 +01:00
Gene Smith 644e3e0bea Bug 1222046 - Fix SMTP server responding with timeout due to missing CRLF at end of forwarded HTML message. r=mkmelin,jorgk 2020-01-11 22:08:33 +01:00
Magnus Melin befe2a7af9 Backed out changeset 680552a461aa (bug 1222046) for test failures in comm/mailnews/compose/test/unit/test_longLines.js. DONTBUILD
Failures: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=281694235&repo=comm-central&lineNumber=2279
Also remove if-def accdentially included in an attempt to fix the issue.
2019-12-18 12:38:35 +02:00
Magnus Melin ccf4c7596f Bug 1604377 - followup to also update cert8.db to cert9.db (and change remaining references). r=bustage-fix DONTBUILD 2019-12-18 12:33:36 +02:00
Ben Campbell 1ecbd035ad Bug 1602816 - reinstate charset detection related tests: test_detectAttachmentCharset.js, test_messageHeaders.js, test_shiftjis_csv.js. 2019-12-17 14:05:04 +02:00
Magnus Melin b72ef3ca26 Bug 1602816 - temporarily disable charset detection related test: test_detectAttachmentCharset.js, test_messageHeaders.js, test_shiftjis_csv.js. rs=bustage-fix 2019-12-16 14:51:15 +02:00
Ben Campbell 7f7c240f08 Bug 1594890 - Remove xpidl [array] use in nsIMsgCompFields. r=mkmelin 2019-12-03 20:11:24 +02:00
Jorg K 51a55c96ea Bug 1588979 - Backed out 2 changesets to re-enable tests. a=backout
Backed out changeset 7bfa8f3905a0 (bug 1588979)
Backed out changeset 2b47dfda3484 (bug 1588979)

--HG--
extra : amend_source : 348d0ff8cb78e76ec7c5f02a4c0f06c88770b010
2019-10-17 16:54:04 +13:00
Jorg K a2c8c91583 Bug 1588979 - Switch off failing tests. rs=bustage-fix DONTBUILD 2019-10-16 10:53:41 +02:00
Geoff Lankow d885fa4e6f Bug 1576525 - Use JS address book provider for the default address books in new profiles; r=mkmelin 2019-08-28 12:32:06 +12:00
Jorg K 7c7357cc5a Backed out changeset 23362b85a4fa (bug 1576525) for test failures. a=backout 2019-09-19 23:04:22 +02:00
Geoff Lankow 2af1fe8a7c Bug 1576525 - Use JS address book provider for the default address books in new profiles; r=mkmelin 2019-08-28 12:32:06 +12:00
Paul Morris 24a23166e4 Bug 1577835 - Fix 'function and comments' formatting in mailnews/. r=mkmelin 2019-08-31 08:16:12 -04:00
Paul Morris 3819bf478e Bug 1577835 - Fix eslint "no-useless-concat" errors in mailnews/. r=mkmelin 2019-08-30 22:28:12 -04:00
Paul Morris 8057711ec3 Bug 1577835 - Reformat mailnews/ code with eslint and Prettier. r=mkmelin
# ignore-this-changeset

These changes were achieved by:

1. Using eslint to add curly brackets to control
statements that did not have them (if, else, etc.),
thanks to the eslint rule: "curly": ["error", "all"]

Done by running |mach eslint mailnews/ --fix|

2. Reformatting the code using Prettier.

Done by deleting the mailnews/ line from
the .prettierignore file and running:
|mach eslint mailnews/ --fix|
2019-08-30 22:10:02 -04:00
Magnus Melin 467f722cd3 Bug 1506587 - remove unwanted characters from headers. r=jorgk 2019-07-18 21:33:16 +02:00
Jorg K 4acf04b00a Bug 1556478 - Fix Japanese detection and re-enable tests. r=hsivonen 2019-06-04 16:19:06 +02:00
Jorg K ff2d39f9f9 Bug 1556478 - disable subtests testShiftJIS and testISO2022JP of test_detectAttachmentCharset.js. rs=bustage-fix 2019-06-03 20:35:41 +02:00
Jorg K 1eb42af37e Bug 1550945 - Part 5: Fix tests so they don't create URL via protocol handler, rework SMTP URL creation. rs=bustage-fix 2019-05-29 23:29:55 +02:00
Geoff Lankow 3195c35104 Bug 1549166 - Centralise configuration of ESLint environments for test directories; r=aceman 2019-05-20 14:09:54 +12:00
Jorg K 9c62df362d Bug 1167982 - Follow-up: Adjust test to charset detection for text/* attachments. r=me 2019-05-17 10:56:39 +02:00
Geoff Lankow 73dd48c46c Bug 1552059 - Port bug 1551657: Adapt to array changes of nsILoginManager.findLogins, JS part; r=benc 2019-05-16 12:48:38 +12:00
Alfred Peters 08d607ce94 Bug 1532668 - Don't split UTF-8 characters in 'filename' parameter of MIME 'Content-Disposition' header. r=jorgk 2019-05-05 21:19:54 +02:00
Geoff Lankow 96520936f1 Bug 1531595 - Further improvements to FileLink; r=Fallen
--HG--
rename : mail/components/cloudfile/cloudFileAccounts.js => mail/components/cloudfile/cloudFileAccounts.jsm
2019-05-03 16:48:48 +12:00
Geoff Lankow d820bc587b Bug 1515877 - Turn on ESLint in mailnews/compose. r=aceman 2019-04-19 14:52:59 +12:00
Jorg K deb808566b Bug 1542733 - Follow-up: Fix Shift_JIS test and add more charset detection tests. r=me
--HG--
extra : amend_source : 65c58d85d0f7c3c8fadd5c3c58f98c0b870d031f
2019-04-16 23:44:01 +02:00
Jorg K 13cb694e1c Bug 1463266 - fix typos in mailnews/ using codespell. rs=comment-only,typo-fix 2019-03-29 20:07:02 +01:00
Jorg K 38e9d7b09a Bug 1529505 - Fix test test_smtpProtocols.js: NewChannel() takes two arguments now. r=me DONTBUILD 2019-02-21 10:46:10 +01:00
Geoff Lankow 0a77384a34 Bug 1520643 - Port bug 1514594: Change all call sites of ChromeUtils.import() to the "new" scheme; rs=bustage-fix DONTBUILD 2019-01-30 20:53:39 +13:00
Magnus Melin 06179f8d01 Bug 1520643 - Port bug 1514594: correct previous changesets by changing 'const' to 'var', various misc. fixes. rs=bustage-fix,jorgk 2019-01-29 22:21:26 +01:00
Geoff Lankow e0e6e32a52 Bug 1520643 - Port bug 1514594: Change import call sites manually which were missed. rs=bustage-fix,jorgk 2019-01-29 14:57:42 +01:00
Geoff Lankow ed26cc6a11 Bug 1520643 - Port bug 1514594: Change import call sites using kmag's script. rs=bustage-fix,jorgk 2019-01-29 11:25:29 +01:00
Jorg K cea1f0131c Bug 1521671 - Port bug 1514340: Implement nsIWebProgressListener.onContentBlockingEvent(), JS part. rs=bustage-fix 2019-01-22 09:53:30 +01:00
Jorg K c7363436b8 Bug 1512081 - Backed out 4 changesets from bug 1495184. a=backout
Backed out changeset 93d3584af75b (bug 1495184)
Backed out changeset ae62e27f1265 (bug 1495184)
Backed out changeset 17f0a541d7ac (bug 1495184)
Backed out changeset 759a21c4e0f9 (bug 1495184)
2018-12-04 23:26:35 +01:00
aceman 805d8840fb Bug 342632 - Adapt callers to defaultAccount being possibly null - mailnews JS. r=mkmelin 2018-11-19 00:56:49 +01:00
Jorg K 538847fc74 Bug 1495184 - Follow-up: Remove unneeded comments in nsMsgCompose.cpp, fix four tests, update XML files. r=aceman 2018-09-29 22:37:41 +02:00
Geoff Lankow 519fc0ddf4 Bug 1492735 - Port Bug 1486147: Provide Symbol.iterator for JS objects implementing nsIStringEnumerator, part 2. r=mkmelin,jorgk 2018-09-27 22:44:17 +12:00
Jorg K 074e3e27a4 Backed out changeset 3bc0fb310b8a (bug 1492735) for causing test failures in four Xpcshell tests. a=backout CLOSED TREE DONTBUILD
--HG--
extra : amend_source : 02419de68cb01454d02223d942fbb3c47e1fb75a
2018-09-26 11:52:51 +02:00
Jorg K ac863f050c Bug 1492735 - Port Bug 1486147: Replace use of nsIUTF8StringEnumerator in msgIStructuredHeaders. r=mkmelin
--HG--
extra : rebase_source : 43f99a3d2838e4ed1d550481afaf7c47e2828833
2018-09-26 10:49:19 +02:00
Geoff Lankow 3e7829922b 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
2018-08-31 12:43:20 +12:00
Magnus Melin eb927418b4 Bug 1000851 - Fix crash of Thunderbird when using a very long username/password. r=jorgk 2018-08-27 18:58:31 +03:00
aceman ea347bf8b0 Bug 1412574 - remove unused charset argument of encodeMimePartIIStr_UTF8. r=jorgk 2017-10-29 01:36:00 +02:00
Jorg K ba3de82084 Bug 1470046 - Follow-up: Fix test_mailtoURL.js by removing unnecessary clone. rs=bustage-fix DONTBUILD 2018-06-21 02:30:00 +02:00