Magnus Melin
e405d8ba73
Bug 1801529 - eslint-plugin-jsdoc fixes for mailnews/. rs=me
2024-11-17 12:39:13 +02:00
Magnus Melin
f2ed6688f0
Bug 1912579 - Fix intermittent comm/mail/test/browser/message-reader/browser_imageOverflow.js | The message display needs to be less than 400px wide - 832 < 400. r=tobyp
...
There were a bunch of issues with this test.
Simplified the real code to make it more understandable (and using boolean attributes).
Differential Revision: https://phabricator.services.mozilla.com/D228603
--HG--
rename : mail/test/browser/message-reader/data/Image sizing test.eml => mail/test/browser/message-reader/data/image_sizing_test.eml
extra : moz-landing-system : lando
2024-11-17 00:49:00 +00:00
welpy-cw
9dad25c7e4
Bug 1927290 - Fix recent regression affecting partial messages. r=kaie
...
Differential Revision: https://phabricator.services.mozilla.com/D226983
--HG--
extra : moz-landing-system : lando
2024-10-30 17:30:23 +00:00
Sean Burke
2ae4c4fb60
Bug 1927002 - Port bug 1922838: Use std::size instead of mozilla::ArrayLength. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D226851
--HG--
extra : amend_source : 4a4758799c62901ceb1da5a73820937826f6d55f
2024-10-25 00:06:33 +00:00
Magnus Melin
a7c69a0795
Backed out changeset 4c7ae9f1c0b0 (bug 1927002) due to m-c backout
...
--HG--
extra : amend_source : 815fc0159bdc5340c4dca86afb34de81cc61e734
2024-10-26 13:52:09 +03:00
Sean Burke
43d214123d
Bug 1927002 - Port bug 1922838: Use std::size instead of mozilla::ArrayLength. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D226851
--HG--
extra : moz-landing-system : lando
2024-10-25 00:06:33 +00:00
Kai Engert
9e9c5a5307
Bug 1888569 - Add comments to restore MIME inheritance documentation. r=leftmostcat
...
Differential Revision: https://phabricator.services.mozilla.com/D226288
--HG--
extra : amend_source : 9fd8630b546acd1737ab9dc9d9310cb3557ccfd0
2024-10-24 09:13:37 +03:00
John Bieling
62a6c57eed
Bug 1924869 - Improve readability of MimeJSComponents.sys.mjs. r=freaktechnik
...
This is not a functional change.
`HEADER_OPTION_DECODE_2231` is only supported if used together with
`HEADER_PARAMETER` (which is correctly stated in mimeParser.sys.mjs). It
should not be specified in places where it is not having an effect to
not trick the reader into thinking decoding according to RFC 2231 is
supported.
Differential Revision: https://phabricator.services.mozilla.com/D225717
--HG--
extra : amend_source : f3dbe79f6eb3639fe286a9f48714139a469b6cd3
2024-10-16 10:41:58 +01:00
Geoff Lankow
e6eeaad6af
Bug 1924630 - Port bug 1917901: Use return value of nsIStreamListener.onDataAvailable. rs=bustage-fix
2024-10-15 17:59:46 +13:00
Magnus Melin
89dbe9128a
Bug 1915397 - fix resource leak in MimeMultipartAlternative_flush_children. r=john.bieling
...
CID: 1537771
Differential Revision: https://phabricator.services.mozilla.com/D223677
--HG--
extra : amend_source : 787cf54c0402a0650700c662978a449f95b08a79
2024-10-02 15:11:53 -07:00
Kai Engert
d11b135e87
Bug 1921950 - Remove unused code for ROT13 encoding. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D224232
--HG--
extra : rebase_source : 5446d9b616c6c4d9e4ec29c8b5d70526c06fec3d
2024-10-02 13:13:44 +03:00
Magnus Melin
475aacfa12
Bug 1915397 - fix resource leak in MimeMultipartSigned_emit_child(). r=BenC
...
CID: 450615
Differential Revision: https://phabricator.services.mozilla.com/D223679
--HG--
extra : rebase_source : 8cc39d1e8498848eaa73f969e14192689a9d2976
extra : amend_source : 151888c2bf992d6f5caa0a915e9e89ebd1343d3d
2024-10-01 13:50:58 +03:00
Magnus Melin
eafc23d18b
Bug 1915397 - fix resource leaks in mime_parse_stream_complete. r=BenC
...
CID: 1137489
CID: 1137488
Differential Revision: https://phabricator.services.mozilla.com/D223678
--HG--
extra : rebase_source : 9240181f632d2e43e8e02f4e2d0541d0c20c9f99
extra : amend_source : 6637a0240f8f3400e65984bbfdf7d1070d8058e1
2024-10-01 13:50:25 +03:00
Magnus Melin
a0974d4ebc
Bug 1915397 - fix unused value in nsMimeBaseEmitter::MimeGetStringByID. r=BenC
...
CID: 1260153
Differential Revision: https://phabricator.services.mozilla.com/D223676
--HG--
extra : rebase_source : a4d516ad875d616de555a7da5f4be554cd2c4f35
extra : amend_source : 4736e1ec0819973bf18c4acf1f8669f29fe3cd1e
2024-10-01 13:49:54 +03:00
Kai Engert
8ca48e491a
Bug 1919290 - Use smarter logic to avoid code repetition. r=BenC
...
Differential Revision: https://phabricator.services.mozilla.com/D224164
--HG--
extra : rebase_source : 781b5bdb7930542b7776815126dee6858b79a557
2024-09-30 21:56:30 +02:00
Kai Engert
4954523ba3
Bug 1919290 - Type checking for output and image closure parameters in C MIME code. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D223088
--HG--
extra : rebase_source : ff3a2d74dca6e48fae0932af87259fd3720fb10f
2024-09-30 19:34:15 +02:00
Kai Engert
569a04bb6f
Bug 1919290 - Type checking for data_object in C MIME code. r=BenC
...
Differential Revision: https://phabricator.services.mozilla.com/D223087
--HG--
extra : rebase_source : 3c2a73c9433c953457a93e1bb270b3c664e39ce4
2024-09-20 14:09:53 +02:00
Kai Engert
30ce1a27b4
Bug 1919290 - Type checking for an initial set of closure parameters in C MIME code. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D222475
--HG--
extra : rebase_source : 744f1bf4c96356538f48996f27decea1d47b85a1
2024-09-17 10:17:56 +02:00
Magnus Melin
75516d469c
Bug 1915397 - fix uninitialized scalar fields in mime_stream_data::mime_stream_data(). r=tobyp
...
CID: 1137614
Differential Revision: https://phabricator.services.mozilla.com/D223721
--HG--
extra : moz-landing-system : lando
2024-09-27 21:50:17 +00:00
Magnus Melin
adff1e9891
Bug 1915397 - fix uninitialized scalar field in nsPgpMimeProxy::nsPgpMimeProxy(). r=kaie
...
CID: 1137589
Differential Revision: https://phabricator.services.mozilla.com/D223720
--HG--
extra : moz-landing-system : lando
2024-09-27 21:50:17 +00:00
Magnus Melin
918f80ec0d
Bug 1915397 - fix uninitialized pointer field in MimePgpeData::MimePgpeData(). r=kaie
...
CID: 1137590
Differential Revision: https://phabricator.services.mozilla.com/D223719
--HG--
extra : moz-landing-system : lando
2024-09-27 21:50:16 +00:00
Kai Engert
506b01de88
Bug 1852662 - Fix UndefinedBehaviorSanitizer warning in mimebuf.cpp:132. r=BenC
...
Differential Revision: https://phabricator.services.mozilla.com/D222284
--HG--
extra : rebase_source : 4604bd88c3f31aa0b5443291acd65e55456fdc7e
extra : amend_source : 85b19c81ad1fd1c475e44c77c3df6d5e41e94186
2024-09-16 13:33:40 +02:00
Kai Engert
0244c4cd4a
Bug 1902603 - Follow-up to fix lint. rs=me DONTBUILD
...
--HG--
extra : amend_source : 8ee0d050c8afad0af41d75329c4576c9361e17d8
2024-06-18 12:24:14 +02:00
Kai Engert
95fbeb496c
Bug 1902603 - Enable prepared test files for Outer-S/MIME-sig-with-inner-S/MIME-encryption. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D213879
--HG--
rename : mail/test/browser/openpgp/data/eml/outer-pgp-sig-inner-smime-enc-sig.eml => mailnews/test/data/smime-manual/outer-pgp-sig-inner-smime-enc-sig.eml
rename : mail/test/browser/openpgp/data/eml/outer-pgp-sig-inner-smime-enc.eml => mailnews/test/data/smime-manual/outer-pgp-sig-inner-smime-enc.eml
rename : mail/test/browser/openpgp/data/eml/outer-smime-bad-sig-inner-smime-enc-sig.eml => mailnews/test/data/smime-manual/outer-smime-bad-sig-inner-smime-enc-sig.eml
rename : mail/test/browser/openpgp/data/eml/outer-smime-bad-sig-inner-smime-enc.eml => mailnews/test/data/smime-manual/outer-smime-bad-sig-inner-smime-enc.eml
extra : rebase_source : 08044943e6dac3e3015871e6bbb1eb8d2291ed0a
2024-06-14 16:51:35 +02:00
Kai Engert
b42d23ba49
Bug 1806161 - Ignore outermost s/mime signature layer, if the second layer is s/mime encryption. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D192490
--HG--
rename : mailnews/test/data/smime/alice.dsig.SHA256.multipart.env.eml => mailnews/test/data/smime-manual/alice.dsig.SHA256.multipart.env.dsig.eml
rename : mailnews/test/data/smime/alice.env.dsig.SHA256.multipart.eml => mailnews/test/data/smime-manual/alice.env.mixed.dsig.SHA256.multipart.eml
extra : rebase_source : 0dd044b3d29ae2144ac0e58f23b3ea8f4757c4f7
2024-05-24 10:57:45 +02:00
Sean Burke
84457db292
Bug 1901127 - Remove dead debug and perf testing code. r=darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D212856
--HG--
extra : moz-landing-system : lando
2024-06-07 22:13:58 +00:00
Sean Burke
ac9d5b1490
Bug 1888569 - Only include headers as needed. r=darktrojan
...
Differential Revision: https://phabricator.services.mozilla.com/D212592
--HG--
extra : rebase_source : a3cd8b6adb9f2e215e6228e922ea52ee199471d3
extra : amend_source : bc6be7a8dee1a5cbe6b6b45074c1c8f9b30a4eaf
2024-06-05 17:20:38 +00:00
Magnus Melin
9bf80863e4
Bug 1896618 - BUG_COMPONENT annotations for thunderbird code. r=john.bieling,clokep,freaktechnik
...
Differential Revision: https://phabricator.services.mozilla.com/D210437
--HG--
extra : amend_source : c9d4bf50d4653b24dc5fc1b51c4e67e021f760c1
2024-05-17 10:30:09 -07:00
Brendan Abolivier
2382f902c6
Bug 1882574 - Enable outgoing message servers other than SMTP. r=leftmostcat
...
This patch generalises the existing nsISmtpService and nsISmtpServer interfaces
to remove assumptions that the sending mail server is always SMTP. In this new
architecture, the protocol-specific settings are set in a separate,
protocol-specific XPIDL interface that is used to configure the sending server.
I have also removed some attributes and a method from these interfaces, as they
either were not needed across the XPCOM boundary, or were not used at all.
Intentionally left out of scope for this patch:
* Migrating (from .properties to Fluent) and updating some l10 strings to not
mention SMTP explicitly.
* Conditionally defining the outgoing protocol in the account setup code.
* Conditionally showing a server's details and edit form in the account
settings code.
* Migrating prefs to not use "smtp" in their names if the server doesn't
actually use SMTP.
Differential Revision: https://phabricator.services.mozilla.com/D203799
--HG--
rename : mailnews/compose/public/nsISmtpServer.idl => mailnews/compose/public/nsIMsgOutgoingServer.idl
rename : mailnews/compose/public/nsISmtpService.idl => mailnews/compose/public/nsIMsgOutgoingServerService.idl
rename : mailnews/compose/src/SmtpService.sys.mjs => mailnews/compose/src/OutgoingServerService.sys.mjs
rename : mailnews/compose/test/unit/test_nsSmtpService1.js => mailnews/compose/test/unit/test_nsMsgOutgoingServerService1.js
extra : moz-landing-system : lando
2024-05-09 16:33:15 +00:00
Kai Engert
18d81be6cd
Bug 1893046 - Thunderbird test for ECDH decryption and RSA-OAEP decryption. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D208395
2024-05-06 13:22:56 +00:00
Kai Engert
f5f2495788
Bug 1893039 - Gracefully handle encrypted S/MIME message that lacks an inner MIME header. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D208388
--HG--
extra : amend_source : 42758c3638e356b18796361e1e3e52780007fbc5
2024-04-30 17:41:28 +01:00
Geoff Lankow
afe300ed94
Bug 1892842 - Port bug 1892481: Improve build-time checking of noscript and builtinclass in xpidl. r=leftmostcat
...
Differential Revision: https://phabricator.services.mozilla.com/D208258
--HG--
extra : amend_source : 1eaf1d3619e9eec795a9287bbd9338e5a95d98c9
2024-04-23 10:44:50 +12:00
Martin Giger
15e56c1ccb
Bug 1889895 - Convert all usages of bool in IDL files with boolean. rs=bustage-fix
...
--HG--
extra : absorb_source : 2753868132828058fd86f4ef927d285ae792feac
2024-04-05 12:06:39 +02:00
Magnus Melin
7e6e68e24a
Bug 1888116 - Handle multi-message-id display when non-compliant header value. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D205826
--HG--
extra : amend_source : 35d61b858e0e709af9bce5669c8ecc91959edcb2
extra : absorb_source : c019f005a01419226d23da27da753f5aff15b053
2024-04-05 11:46:24 +02:00
Magnus Melin
041dd7ff37
Bug 1824260 - Don't use mozmill in the name for the testing-common modules. r=darktrojan
...
Depends on D204769
Differential Revision: https://phabricator.services.mozilla.com/D204893
--HG--
extra : rebase_source : 50e5dd28fd88e3f4dedea2377edfca4cea504ba8
extra : amend_source : 491028478c02b7e1140f5bf43559638b50c24fc9
2024-03-25 12:28:56 +02:00
John Bieling
f8b28cc1de
Bug 1886948 - Part 6: Fix remaining lint issues. r=mkmelin
...
Differential Revision: https://phabricator.services.mozilla.com/D205463
--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:06 +00:00
John Bieling
c6e7173d08
Bug 1886948 - Part 3: AutoFix for ./mailnews directory. r=mkmelin
...
Using D194522 for auto-fixing unused variables.
Differential Revision: https://phabricator.services.mozilla.com/D205433
--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:04 +00:00
Magnus Melin
bf0cc3ae17
Bug 1824260 - Update outdated .jsm references. r=freaktechnik
...
Update outdated .jsm references in the tree.
Depends on D204766
Differential Revision: https://phabricator.services.mozilla.com/D204769
--HG--
extra : rebase_source : cdf8c1367702bb00c51a750cc712e156db65d371
extra : amend_source : 5f2256fc97ae8f3de2086ffbe99acde9fdef0473
2024-03-21 19:44:49 +02:00
Geoff Lankow
d87724bd37
Bug 1886328 - Port bug 1356686 change to nsIStreamConverter.idl. r=leftmostcat
...
Port of c58710d55a
Differential Revision: https://phabricator.services.mozilla.com/D205161
--HG--
extra : moz-landing-system : lando
2024-03-20 06:12:28 +00:00
Silvia Bonavista i Serrat
1785481ef8
Bug 1873950 - Delete pid-NNNN directory for temporary files on exit. r=mkmelin
...
Bonus fix: Fix `nsMsgCreateTempFile()` so it cleans up after itself and remove second copy of the function.
Based on https://github.com/Betterbird/thunderbird-patches/blob/main/115/bugs/1873950-delete-temp-pid-NNNN.patch
Differential Revision: https://phabricator.services.mozilla.com/D204412
--HG--
extra : amend_source : 35186513a22cef43fd8f294f45491559caac8df1
2024-03-14 12:37:28 +02:00
Magnus Melin
7067a10505
Bug 512385 - Display Archived-At header field as a link, and add Message Permalink option to List-Id menu. r=john.bieling,vineet
...
E.g. Topicbox list mails have this...
Differential Revision: https://phabricator.services.mozilla.com/D203908
--HG--
extra : amend_source : 38d1fc1377090660feedef946138ac6cf3815678
2024-03-13 12:41:41 +13:00
Magnus Melin
1ae693417e
Bug 1824260 - esmify mailnews/. r=freaktechnik
...
Differential Revision: https://phabricator.services.mozilla.com/D204279
--HG--
rename : mailnews/addrbook/modules/AddrBookDirectory.jsm => mailnews/addrbook/modules/AddrBookDirectory.sys.mjs
rename : mailnews/addrbook/modules/AddrBookMailingList.jsm => mailnews/addrbook/modules/AddrBookMailingList.sys.mjs
rename : mailnews/addrbook/modules/AddrBookUtils.jsm => mailnews/addrbook/modules/AddrBookUtils.sys.mjs
rename : mailnews/addrbook/modules/CardDAVUtils.jsm => mailnews/addrbook/modules/CardDAVUtils.sys.mjs
rename : mailnews/addrbook/modules/LDAPClient.jsm => mailnews/addrbook/modules/LDAPClient.sys.mjs
rename : mailnews/addrbook/modules/LDAPListenerBase.jsm => mailnews/addrbook/modules/LDAPListenerBase.sys.mjs
rename : mailnews/addrbook/modules/LDAPMessage.jsm => mailnews/addrbook/modules/LDAPMessage.sys.mjs
rename : mailnews/addrbook/modules/QueryStringToExpression.jsm => mailnews/addrbook/modules/QueryStringToExpression.sys.mjs
rename : mailnews/addrbook/test/CardDAVServer.jsm => mailnews/addrbook/test/CardDAVServer.sys.mjs
rename : mailnews/addrbook/test/LDAPServer.jsm => mailnews/addrbook/test/LDAPServer.sys.mjs
rename : mailnews/base/src/ABQueryUtils.jsm => mailnews/base/src/ABQueryUtils.sys.mjs
rename : mailnews/base/src/FolderUtils.jsm => mailnews/base/src/FolderUtils.sys.mjs
rename : mailnews/base/src/JXON.jsm => mailnews/base/src/JXON.sys.mjs
rename : mailnews/base/src/LineReader.jsm => mailnews/base/src/LineReader.sys.mjs
rename : mailnews/base/src/MailAuthenticator.jsm => mailnews/base/src/MailAuthenticator.sys.mjs
rename : mailnews/base/src/MailCryptoUtils.jsm => mailnews/base/src/MailCryptoUtils.sys.mjs
rename : mailnews/base/src/MailServices.jsm => mailnews/base/src/MailServices.sys.mjs
rename : mailnews/base/src/MailStringUtils.jsm => mailnews/base/src/MailStringUtils.sys.mjs
rename : mailnews/base/src/MailnewsMigrator.jsm => mailnews/base/src/MailnewsMigrator.sys.mjs
rename : mailnews/base/src/MsgDBCacheManager.jsm => mailnews/base/src/MsgDBCacheManager.sys.mjs
rename : mailnews/base/src/MsgIncomingServer.jsm => mailnews/base/src/MsgIncomingServer.sys.mjs
rename : mailnews/base/src/MsgKeySet.jsm => mailnews/base/src/MsgKeySet.sys.mjs
rename : mailnews/base/src/OAuth2.jsm => mailnews/base/src/OAuth2.sys.mjs
rename : mailnews/base/src/OAuth2Providers.jsm => mailnews/base/src/OAuth2Providers.sys.mjs
rename : mailnews/base/src/TemplateUtils.jsm => mailnews/base/src/TemplateUtils.sys.mjs
rename : mailnews/base/src/VirtualFolderWrapper.jsm => mailnews/base/src/VirtualFolderWrapper.sys.mjs
rename : mailnews/base/src/WinUnreadBadge.jsm => mailnews/base/src/WinUnreadBadge.sys.mjs
rename : mailnews/base/src/hostnameUtils.jsm => mailnews/base/src/hostnameUtils.sys.mjs
rename : mailnews/base/src/mailstoreConverter.jsm => mailnews/base/src/mailstoreConverter.sys.mjs
rename : mailnews/compose/src/MimeEncoder.jsm => mailnews/compose/src/MimeEncoder.sys.mjs
rename : mailnews/compose/src/MimeMessage.jsm => mailnews/compose/src/MimeMessage.sys.mjs
rename : mailnews/compose/src/MimeMessageUtils.jsm => mailnews/compose/src/MimeMessageUtils.sys.mjs
rename : mailnews/compose/src/MimePart.jsm => mailnews/compose/src/MimePart.sys.mjs
rename : mailnews/compose/src/SmtpClient.jsm => mailnews/compose/src/SmtpClient.sys.mjs
rename : mailnews/db/gloda/modules/Collection.jsm => mailnews/db/gloda/modules/Collection.sys.mjs
rename : mailnews/db/gloda/modules/Everybody.jsm => mailnews/db/gloda/modules/Everybody.sys.mjs
rename : mailnews/db/gloda/modules/Facet.jsm => mailnews/db/gloda/modules/Facet.sys.mjs
rename : mailnews/db/gloda/modules/Gloda.jsm => mailnews/db/gloda/modules/Gloda.sys.mjs
rename : mailnews/db/gloda/modules/GlodaConstants.jsm => mailnews/db/gloda/modules/GlodaConstants.sys.mjs
rename : mailnews/db/gloda/modules/GlodaContent.jsm => mailnews/db/gloda/modules/GlodaContent.sys.mjs
rename : mailnews/db/gloda/modules/GlodaDataModel.jsm => mailnews/db/gloda/modules/GlodaDataModel.sys.mjs
rename : mailnews/db/gloda/modules/GlodaDatabind.jsm => mailnews/db/gloda/modules/GlodaDatabind.sys.mjs
rename : mailnews/db/gloda/modules/GlodaDatastore.jsm => mailnews/db/gloda/modules/GlodaDatastore.sys.mjs
rename : mailnews/db/gloda/modules/GlodaExplicitAttr.jsm => mailnews/db/gloda/modules/GlodaExplicitAttr.sys.mjs
rename : mailnews/db/gloda/modules/GlodaFundAttr.jsm => mailnews/db/gloda/modules/GlodaFundAttr.sys.mjs
rename : mailnews/db/gloda/modules/GlodaIndexer.jsm => mailnews/db/gloda/modules/GlodaIndexer.sys.mjs
rename : mailnews/db/gloda/modules/GlodaMsgIndexer.jsm => mailnews/db/gloda/modules/GlodaMsgIndexer.sys.mjs
rename : mailnews/db/gloda/modules/GlodaMsgSearcher.jsm => mailnews/db/gloda/modules/GlodaMsgSearcher.sys.mjs
rename : mailnews/db/gloda/modules/GlodaPublic.jsm => mailnews/db/gloda/modules/GlodaPublic.sys.mjs
rename : mailnews/db/gloda/modules/GlodaQueryClassFactory.jsm => mailnews/db/gloda/modules/GlodaQueryClassFactory.sys.mjs
rename : mailnews/db/gloda/modules/GlodaSyntheticView.jsm => mailnews/db/gloda/modules/GlodaSyntheticView.sys.mjs
rename : mailnews/db/gloda/modules/GlodaUtils.jsm => mailnews/db/gloda/modules/GlodaUtils.sys.mjs
rename : mailnews/db/gloda/modules/IndexMsg.jsm => mailnews/db/gloda/modules/IndexMsg.sys.mjs
rename : mailnews/db/gloda/modules/MimeMessage.jsm => mailnews/db/gloda/modules/MimeMessage.sys.mjs
rename : mailnews/db/gloda/modules/NounFreetag.jsm => mailnews/db/gloda/modules/NounFreetag.sys.mjs
rename : mailnews/db/gloda/modules/NounMimetype.jsm => mailnews/db/gloda/modules/NounMimetype.sys.mjs
rename : mailnews/db/gloda/modules/NounTag.jsm => mailnews/db/gloda/modules/NounTag.sys.mjs
rename : mailnews/db/gloda/modules/SuffixTree.jsm => mailnews/db/gloda/modules/SuffixTree.sys.mjs
rename : mailnews/db/gloda/test/unit/resources/GlodaQueryHelper.jsm => mailnews/db/gloda/test/unit/resources/GlodaQueryHelper.sys.mjs
rename : mailnews/db/gloda/test/unit/resources/GlodaTestHelper.jsm => mailnews/db/gloda/test/unit/resources/GlodaTestHelper.sys.mjs
rename : mailnews/db/gloda/test/unit/resources/GlodaTestHelperFunctions.jsm => mailnews/db/gloda/test/unit/resources/GlodaTestHelperFunctions.sys.mjs
rename : mailnews/export/modules/ProfileExporter.jsm => mailnews/export/modules/ProfileExporter.sys.mjs
rename : mailnews/extensions/newsblog/Feed.jsm => mailnews/extensions/newsblog/Feed.sys.mjs
rename : mailnews/extensions/newsblog/FeedItem.jsm => mailnews/extensions/newsblog/FeedItem.sys.mjs
rename : mailnews/extensions/newsblog/FeedParser.jsm => mailnews/extensions/newsblog/FeedParser.sys.mjs
rename : mailnews/extensions/newsblog/FeedUtils.jsm => mailnews/extensions/newsblog/FeedUtils.sys.mjs
rename : mailnews/imap/src/ImapChannel.jsm => mailnews/imap/src/ImapChannel.sys.mjs
rename : mailnews/imap/src/ImapClient.jsm => mailnews/imap/src/ImapClient.sys.mjs
rename : mailnews/imap/src/ImapIncomingServer.jsm => mailnews/imap/src/ImapIncomingServer.sys.mjs
rename : mailnews/imap/src/ImapMessageService.jsm => mailnews/imap/src/ImapMessageService.sys.mjs
rename : mailnews/imap/src/ImapProtocolHandler.jsm => mailnews/imap/src/ImapProtocolHandler.sys.mjs
rename : mailnews/imap/src/ImapProtocolInfo.jsm => mailnews/imap/src/ImapProtocolInfo.sys.mjs
rename : mailnews/imap/src/ImapResponse.jsm => mailnews/imap/src/ImapResponse.sys.mjs
rename : mailnews/imap/src/ImapService.jsm => mailnews/imap/src/ImapService.sys.mjs
rename : mailnews/imap/src/ImapUtils.jsm => mailnews/imap/src/ImapUtils.sys.mjs
rename : mailnews/import/modules/AddrBookFileImporter.jsm => mailnews/import/modules/AddrBookFileImporter.sys.mjs
rename : mailnews/import/modules/AppleMailProfileImporter.jsm => mailnews/import/modules/AppleMailProfileImporter.sys.mjs
rename : mailnews/import/modules/BaseProfileImporter.jsm => mailnews/import/modules/BaseProfileImporter.sys.mjs
rename : mailnews/import/modules/BeckyProfileImporter.jsm => mailnews/import/modules/BeckyProfileImporter.sys.mjs
rename : mailnews/import/modules/CalendarFileImporter.jsm => mailnews/import/modules/CalendarFileImporter.sys.mjs
rename : mailnews/import/modules/OutlookProfileImporter.jsm => mailnews/import/modules/OutlookProfileImporter.sys.mjs
rename : mailnews/import/modules/SeamonkeyProfileImporter.jsm => mailnews/import/modules/SeamonkeyProfileImporter.sys.mjs
rename : mailnews/import/modules/ThunderbirdProfileImporter.jsm => mailnews/import/modules/ThunderbirdProfileImporter.sys.mjs
rename : mailnews/jsaccount/modules/JSAccountUtils.jsm => mailnews/jsaccount/modules/JSAccountUtils.sys.mjs
rename : mailnews/jsaccount/modules/JaBaseUrl.jsm => mailnews/jsaccount/modules/JaBaseUrl.sys.mjs
rename : mailnews/jsaccount/test/unit/resources/testJaBaseIncomingServer.jsm => mailnews/jsaccount/test/unit/resources/testJaBaseIncomingServer.sys.mjs
rename : mailnews/jsaccount/test/unit/resources/testJaBaseMsgFolder.jsm => mailnews/jsaccount/test/unit/resources/testJaBaseMsgFolder.sys.mjs
rename : mailnews/local/src/Pop3Channel.jsm => mailnews/local/src/Pop3Channel.sys.mjs
rename : mailnews/local/src/Pop3Client.jsm => mailnews/local/src/Pop3Client.sys.mjs
rename : mailnews/mime/src/jsmime.jsm => mailnews/mime/src/jsmime.sys.mjs
rename : mailnews/mime/src/mimeParser.jsm => mailnews/mime/src/mimeParser.sys.mjs
rename : mailnews/news/src/NntpChannel.jsm => mailnews/news/src/NntpChannel.sys.mjs
rename : mailnews/news/src/NntpClient.jsm => mailnews/news/src/NntpClient.sys.mjs
rename : mailnews/news/src/NntpNewsGroup.jsm => mailnews/news/src/NntpNewsGroup.sys.mjs
rename : mailnews/news/src/NntpUtils.jsm => mailnews/news/src/NntpUtils.sys.mjs
rename : mailnews/search/src/PeriodicFilterManager.jsm => mailnews/search/src/PeriodicFilterManager.sys.mjs
extra : rebase_source : 0d95b8d8e0eb6134fe513fab1793e34bab974206
2024-03-12 17:01:01 +02:00
Magnus Melin
2b23e8d718
Bug 1824260 - modernize jsmime. r=aleca,freaktechnik
...
The way jsmime.js and jsmime.jsm interacted did not work for esmification.
Make jsmime.js a proper module jsmime.mjs - remove the anchient module loading people use to use 15 years ago
before JavaScript had proper modules.
The interaction with extraMimeParsers.jsm was also problematic (loading it through Services.scriptloader.loadSubScript in jsmime.jsm),
and there's very little reason to use that in the first place these days. So inlined it into the jsmime.mjs module.
jsmime.js (now jsmime.mjs) uses a kind of namespacing that we could well get rid of but for keeing it was for now to keep the patch reviewable.
Will upload the patch first without formatting it, again to make it easeier to see the real changes.
There's a fair amount of linting fixing to be done even if they are not real changes...
Differential Revision: https://phabricator.services.mozilla.com/D204143
--HG--
rename : mailnews/mime/jsmime/jsmime.js => mailnews/mime/jsmime/jsmime.mjs
extra : rebase_source : d1c145bf779e58f550eb94f090f7be572b82b41e
2024-03-12 14:40:39 +02:00
Magnus Melin
8f8a9e97bb
Bug 29041 - Part 2: Use List-ID with context menu for list management. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D200459
--HG--
extra : rebase_source : 535b7103a165ee9d00b283b06f31cf5609b55498
extra : amend_source : 96fcf5e827f3990b9ad607383b2a09c582eb870e
2024-03-04 11:56:52 +02:00
John Bieling
b158fbefad
Bug 1854684 - Add decryption support to getRaw(). r=mkmelin
...
This patch rips out usage of `MsgHdrToMimeMessage` in the WebExtension
messages API and uses the newly introduced `MsgHdrProcessor` class
instead. Every function which needs access to the raw or parsed message
data is modified to accept a `MimeTreePart` instead of a
`MimeMessagePart`.
This fixes a bunch of inconsistencies.
As the first happy consumer, `messages.getRaw()` gets decryption
support.
This patch re-enabes the `test_openpgp` test in
mail\components\extensions\test\xpcshell\test_ext_messages_get.js
Differential Revision: https://phabricator.services.mozilla.com/D202596
--HG--
extra : moz-landing-system : lando
2024-03-01 23:12:06 +00:00
John Bieling
12ed6d156c
Bug 1881560 - Decode sub messages even if decodeSubMessages is set to false, but pruneat is set to a part in a sub message. r=mkmelin
...
Currently, it is not possible to get the source of a message (not
parsed), which is attached to an attached message (or any deeper nesting).
If I use `decodeSubMessages = true`, I get all the details of the deep nested
message, but not its raw untouched body. If I use `decodeSubMessages = false`,
I get the full source of the primary attached message. I need to parse that
message again with `decodeSubMessages = false`, to get the source of its
attached message. Or I have to manually plug the message back together
(including all its parsed sub parts).
It is much faster and less error-prone to dynamically enable
decodeSubMessages for a part, if the part pruneat is set to is *inside*
that part.
Differential Revision: https://phabricator.services.mozilla.com/D202463
--HG--
extra : amend_source : 9b011831faa2d65fdec3ec20413255a2d2ee8c17
2024-02-28 11:21:14 +01:00
Geoff Lankow
a277c4321b
Bug 1881992 - ESMify LocalAccountUtils.jsm. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D202688
--HG--
rename : mailnews/test/resources/LocalAccountUtils.jsm => mailnews/test/resources/LocalAccountUtils.sys.mjs
extra : rebase_source : 96e593cc57b3120fdc625b55840e18192fbf40d1
extra : amend_source : e3759abcb7f07cff1a63c15f04b5665959fb2e5c
2024-02-26 10:44:05 +01:00
Geoff Lankow
bff71fe58c
Bug 1881992 - ESMify MailTestUtils.jsm. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D202687
--HG--
rename : mailnews/test/resources/MailTestUtils.jsm => mailnews/test/resources/MailTestUtils.sys.mjs
extra : rebase_source : 5f7ee406d6bbb953a7e84e8839c8cab164035155
extra : amend_source : 4090051db817b9aa335ed5c4b5c102d2c17b6872
2024-02-26 10:43:51 +01:00
Geoff Lankow
97bd1b28bc
Bug 1881992 - ESMify MessageGenerator.jsm. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D202686
--HG--
rename : mailnews/test/resources/MessageGenerator.jsm => mailnews/test/resources/MessageGenerator.sys.mjs
extra : rebase_source : c3fee55c1633b3277d81c198c37cb6e7e5a80a3e
extra : amend_source : 4e57c0eef297ecd697e9746fb2b9818e94044927
2024-02-26 10:43:36 +01:00
Geoff Lankow
f5938aaf23
Bug 1881992 - ESMify MessageInjection.jsm. r=aleca
...
Differential Revision: https://phabricator.services.mozilla.com/D202685
--HG--
rename : mailnews/test/resources/MessageInjection.jsm => mailnews/test/resources/MessageInjection.sys.mjs
extra : rebase_source : 05b20227aab3f77050422657b4ece45a5ceb76ae
extra : amend_source : 1cebabfe5f442367cfba23cb8207694e8cab7603
2024-02-26 10:42:58 +01:00