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

1114 Коммитов

Автор SHA1 Сообщение Дата
Kai Engert afc163d84a Bug 1825885 - Additional null check in MimeMultCMS_init. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D174346

--HG--
extra : rebase_source : b00685a44373332ab56a4bade743a05ec2afcc59
2023-04-01 00:13:36 +02:00
Kai Engert c7d564598b Bug 1825778 - Don't use ProxySignedStatus if we're running on the main thread. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D174254

--HG--
extra : rebase_source : 786be1476a4107690ea5bc5fbf4fda10a66b0a8e
2023-03-31 15:19:25 +02:00
Rob Lemley 420a0b85d9 Bug 1825809 - Port bug 1825360: Remove NS_DISPATCH_SYNC flag. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D174304
2023-03-31 15:48:47 +00:00
Kai Engert bd21c986f9 Bug 1532292 - Reject S/MIME signatures that use the SHA-1 hash algorithm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D168966

--HG--
extra : rebase_source : 3e071b59c35c61ef82468389f3e6a682df05351e
2023-02-06 14:48:13 +01:00
Peter Schlemihl 395fbbcce9 Bug 1822678 - Remove unneeded variable introduced in rev 9a6cf93bb303. r=mkmelin
--HG--
extra : amend_source : 79fb4bfb82156860f12e6595f6ffad5167cbacf7
2023-03-17 10:15:32 +11:00
Ikey Doherty 0ccc3fdc84 Bug 1822799 - Adapt to upstream StreamStatus API change. r=elizabeth
Differential Revision: https://phabricator.services.mozilla.com/D172787

--HG--
extra : moz-landing-system : lando
2023-03-16 12:54:57 +00:00
Kai Engert 8309ae57ae Bug 1822421 - Use nsDependentCString to avoid unnecessary allocation. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D172621

--HG--
extra : amend_source : efa48cc8d8ae350ffa9abcf9b7ec9c314e13c78a
2023-03-15 16:50:10 +11:00
Elizabeth Mitchell 3ad4f6df61 Bug 1822377 - Fix for bustage caused by bug 1784348. rs=bugstage-fix
--HG--
extra : amend_source : 48a140236a980174a952e7ec8871c849167b2e15
2023-03-14 13:04:49 -04:00
Kai Engert 83cc54ea70 Bug 1811298 - Enable OCSP for S/MIME recipient encryption certificates. r=mkmelin,darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D171739

--HG--
extra : rebase_source : 56eef0cb72d370ef7e134bef4f2d97991502326f
extra : amend_source : 959fa275d675335da47b347dcadd9545a958cd2c
2023-01-26 19:37:01 +01:00
Kai Engert 694777f41f Bug 1531735 - Reject S/MIME signatures that use the MD5 hash algorithm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D166957

--HG--
extra : amend_source : bb4c983d810d65ca0477a25032f6d223855650dd
2023-03-09 21:12:26 +11:00
Geoff Lankow dbf4030b6d Bug 1820716 - Remove mailCharacterSet from nsIMsgWindow. r=mkmelin
This property is also obsolete.

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

--HG--
extra : amend_source : 6d9fbbde545c793f7fe6853cb6195defb01374d2
2023-03-08 21:20:56 +11:00
Geoff Lankow 6eaf4ca202 Bug 1820716 - Remove charsetOverride from nsIMsgWindow. r=mkmelin
This property is obsolete.

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

--HG--
extra : amend_source : eca481007671ffbdf7c7b88278508e0cfb919f00
2023-03-08 21:20:37 +11:00
Magnus Melin b591de139e Bug 1819649 - Fix crash in [@ MimeMultCMS_init]. r=kaie
A few lines before the sink is getting set, but without error checking so it can easily be null.
D162689 looks like it's what cause this.

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

--HG--
extra : rebase_source : 44e2849c0be22810c24f1cde7c88c79d911897fa
extra : amend_source : 3cefc432605f3390825f81974f06d5a6bfd59e6e
2023-03-03 21:33:49 +11:00
Magnus Melin 5f5341d9ee Bug 1817733 - clean up remaining mime_parts_on_demand references removed in bug 1805186. r=gds
Differential Revision: https://phabricator.services.mozilla.com/D170419

--HG--
extra : rebase_source : 6898e5154c67b281655ec836ce699fc0e4b868ca
2023-02-21 16:50:39 +11:00
Geoff Lankow e65e527b04 Bug 1817099 - Emit X-Mozilla-LocalizedDate to the MailChannel. r=aleca
Also removes the header enumerators, because they aren't doing anything any more.

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

--HG--
extra : amend_source : ae4f6349564e3d998188bf1f7375af3c9d62cf81
2023-02-22 11:05:37 +13:00
Kai Engert beb7dfdc3c Bug 1630688 - Better handling of nested S/MIME signatures. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D166846

--HG--
extra : rebase_source : 012ff02a72ddeb197327b4b658dc34777b6c04de
2023-02-02 10:47:24 +00:00
Martin Giger e52dfe96b4 Backed out changeset dbe439ccd783 (bug 1630688) for causing test failures. r=backout DONTBUILD 2023-02-02 15:20:17 +01:00
Kai Engert 62dbdaee98 Bug 1630688 - Better handling of nested S/MIME signatures. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D166846

--HG--
extra : amend_source : 1e8e8b8df04ff11e35f420abb189e793b961e60f
2023-02-02 21:47:24 +11:00
Gene Smith 4b709705a6 Bug 1805186 - No longer fetch and cache imap parts, cache full msg to disk (default) or mem. r=mkmelin,BenC
Differential Revision: https://phabricator.services.mozilla.com/D165929

--HG--
extra : rebase_source : e6a367da1f05fd2c7a4573b4582cfb749cd2f99c
extra : amend_source : e15c2ec7092335b5a8cea02ba5e89072a8d19348
2023-01-13 01:20:16 +00:00
Geoff Lankow 303b3142a2 Merge comm-central to ash 2023-01-11 15:31:18 +13:00
Geoff Lankow e31993d4b2 Merge comm-central to ash 2023-01-09 10:43:49 +13:00
Kai Engert 7286cd91d8 Bug 1594253 - Ignore outermost signature layer for triple wrapped sign/encrypt/sign messages, allow viewing decrypted message. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D164755

--HG--
extra : amend_source : 9ee1967436c0860a2fecaa848e6f98a8feafa146
2023-01-10 08:48:33 +11:00
Geoff Lankow 57a530af94 Merge comm-central to ash
--HG--
rename : mailnews/test/data/smime/Bob.p12 => mail/test/browser/openpgp/data/smime/Bob.p12
rename : mailnews/test/data/smime/alice.env.eml => mail/test/browser/openpgp/data/smime/alice.env.eml
2022-12-22 15:48:06 +13:00
Kai Engert be5eda9a1f Bug 1805848 - Use non-empty password when loading test p12 files. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D165021

--HG--
extra : amend_source : d4ceedb010217dfe5bf0107d52c4a32d6a4c1f3d
extra : absorb_source : e13c4f7e6e1dd1350431ad8146de1a7779120061
2022-12-22 09:24:22 +11:00
Rob Lemley 7c89bd0b2b Bug 1808341 - Run mach commlint -l file-whitespace to fix added file-types. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D165898

--HG--
extra : amend_source : eb1eb17ed3c0dc7c6c26e21a60dc16c410a05589
2023-01-05 15:43:08 +11:00
Geoff Lankow fb1a38e661 Bug 1799764 - Use mail channels to pass character set info to the front end. r=BenC
Differential Revision: https://phabricator.services.mozilla.com/D164011

--HG--
extra : rebase_source : 68ed04b2ac79488dda1cd503810dd1be8ddb5978
extra : source : 7e9422a60bb6be9d1fb5a0f9df637f8227633317
2022-12-06 12:15:42 +13:00
Geoff Lankow d0d0388d5a Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-11-28 10:41:17 +13:00
Geoff Lankow e789f16b66 Bug 1799764 - Remove obsolete nsIMsgHeaderSink. r=BenC
This interface is no longer needed and can be consigned to history!

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

--HG--
extra : rebase_source : 1b01225a97e757d621a5bda63a5b9d8b45603b8a
2022-11-22 14:18:31 +13:00
Geoff Lankow f645203a7e Bug 1799764 - Use MailChannels for S/MIME notifications. r=BenC
This isn't ideal as we're still making calls from the back end to the front, but it's enough to remove the last remaining property from nsIMsgHeaderSink.

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

--HG--
extra : rebase_source : 5819adf7bd4c21fad5543b52d2e602ab26cf2dad
extra : intermediate-source : 79d52208b1c208c95389513ba6d3ef62cc254c4a
extra : source : a91f3a934d395812d0dfdda3c687d4a2253e365e
2022-11-21 17:06:03 +13:00
Geoff Lankow bec832518f Bug 1799764 - Reinstate OpenPGP UI code and enable some tests. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D162688

--HG--
extra : rebase_source : 056408c81be89568b56e4775809e9a9191b90145
extra : source : d5fa37cb60ce653ed2380b0c292976d1fd20a14e
2022-11-16 23:12:37 +13:00
Geoff Lankow 748d5d7eba Bug 1799764 - Remove the dummy message header. r=BenC
This is going to break some things. I plan to fix them with more concrete implementations for file messages and attachment messages.

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

--HG--
extra : rebase_source : 549e32c57fd57caed1484e43529b875a064c1c52
extra : intermediate-source : 65ac6d8a112252f9d640a65662c22723ce04f7a3
extra : source : 640db365be58ef5fe3b5a55e901687236886d89a
2022-10-13 15:18:20 +13:00
Geoff Lankow b82bc73c69 Bug 1799764 - Use mail channels for calendar invitation data. r=BenC
Differential Revision: https://phabricator.services.mozilla.com/D161657

--HG--
extra : rebase_source : 27dd6c585b40e62f99112a136ad5afb00836ce0d
extra : intermediate-source : b5b6b78f30427a9beb412d32b10a66235a75a8a9
extra : source : 653e81001b44e6b44b1794ea69a197d4d560fc51
2022-10-17 15:47:49 +13:00
Geoff Lankow ff2e0d14e5 Bug 1799764 - Create nsIMailChannel and use it to replace the message header sink. r=BenC
Differential Revision: https://phabricator.services.mozilla.com/D161656

--HG--
extra : rebase_source : 2e208d0829fb90faad57ce396004ddf2dbfbd7d4
extra : intermediate-source : 6fad192ee6e3a397753af718a088fed25e7fb8d2
extra : source : a5a49c21e75c3250f88d9092f29f7c5e8315c606
2022-11-09 12:24:04 +13:00
Geoff Lankow 814c23c7eb Merge comm-central to ash
--HG--
rename : mail/base/content/msgMail3PaneWindow.js => mail/base/content/messenger.js
2022-11-28 12:26:41 +13:00
Geoff Lankow e5c79faedf Merge comm-central to ash 2022-11-23 20:55:05 +13:00
Magnus Melin fe9d2f7246 Bug 1801529 - mozilla/valid-jsdoc automatic fixups across the Thunderbird codebase. r=aleca
This is the automatic fixes + whitespace fixup:

find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\* @returns +/* @returns /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\* @returns +/* @returns /g' {} \;

find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\* (@returns \{.+\}) +/* \1 /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\* (@returns \{.+\}) +/* \1 /g' {} \;

find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\*( @param)( \S+ \S+ ) +/*\1\2- /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\*( @param)( \S+ \S+ ) +/*\1\2- /g' {} \;

find . -type f -not -path "./suite/*" -name "*.js" -exec sed -i -E 's/\*( @param[^-]*)( - - )/*\1 - /g' {} \;
find . -type f -not -path "./suite/*" -name "*.jsm" -exec sed -i -E 's/\*( @param[^-]*)( - - )/*\1 - /g' {} \;

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

--HG--
extra : rebase_source : 4307935e658ce38943af522b17ce6b1c0d99dfdd
2022-11-23 15:43:25 +11:00
Geoff Lankow e49182b2ac Merge comm-central to ash 2022-11-21 14:24:28 +13:00
Martin Giger 5f617743e0 Bug 1801272 - Convert imports of modules from testing/ to ESM. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D162373

--HG--
extra : rebase_source : cf6272b43faaea35793235708edbfc94c407fc9f
2022-11-19 20:04:39 +11:00
Geoff Lankow d6d09ef935 Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-11-14 12:43:01 +13:00
Kai Engert 5df9c49a11 Bug 1666005 - Restore encrypted subject of draft/template if message pane is hidden. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D160804

--HG--
extra : amend_source : 6e4921bb25464e1078d41fe302449ceecdcdfce6
2022-11-10 10:08:50 +11:00
Magnus Melin a51ccf10ac Backed out changeset d1f91dd3b3cc (bug 1666005) for test failures
comm/mail/test/browser/openpgp/browser_openPGPDrafts.js failing

--HG--
extra : amend_source : e229ad13b5b6083dff848c66a48ddc6833d6a6dd
2022-11-05 21:53:00 +11:00
Kai Engert 601392c952 Bug 1666005 - Restore encrypted subject of draft/template if message pane is hidden. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D160804

--HG--
extra : amend_source : 36c4cd784951eaf09b13737aafdb762f428b6773
2022-11-05 20:37:02 +11:00
Magnus Melin 7cf828bdfd Bug 1798241 - nsIMsgDatabase naming cleanup. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D161016

--HG--
extra : rebase_source : 046a6b1890657ae53e16bf531c3726daea1b9616
extra : amend_source : 445ffa157df3ce2f9c3cebaf60902252b94e6ed1
2022-11-03 21:16:52 +11:00
Magnus Melin a0fd80baf8 Bug 1797456 - remove some unused variables busting us with [-Werror,-Wunused-but-set-variable]. rs=bustage-fix
--HG--
extra : amend_source : fb7256b35b2f33c0a8bc0b85dcda3bf7af25d75c
2022-10-26 20:24:37 +11:00
Magnus Melin 6a1e62950c Bug 1794250 - fix black-linting for removed includes. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D160006

--HG--
extra : rebase_source : 40b1e4a8771141972bf1ac86c6c17521673dcd9b
2022-10-25 13:45:44 +11:00
Magnus Melin 5b0582392d Bug 1794250 - remove nsMsgMimeCID.h. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D160002

--HG--
extra : rebase_source : dfa71cedbc781917396fc95e5d83c6d0b60df5fa
2022-10-25 13:46:43 +11:00
Magnus Melin ca90178038 Bug 1794250 - remove nsMimeEmitterCID.h. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D160001

--HG--
extra : rebase_source : 9fc5515c7eeb4911b45ee3d8ae4116346c225664
2022-10-25 13:46:57 +11:00
Magnus Melin b59b05b004 Bug 1794250 - remove nsMsgBaseCID.h. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D159988

--HG--
extra : rebase_source : dd6a09136547e48e73961527c5e99d7777d61224
2022-10-25 13:33:20 +11:00
Magnus Melin d7a19385c6 Bug 1794250 - remove nsMsgCompCID.h. r=prev
Differential Revision: https://phabricator.services.mozilla.com/D159986

--HG--
extra : rebase_source : a8c3a5baf69392651310376efcfaac8a96762cf3
2022-10-25 13:49:38 +11:00
Magnus Melin 07e538387c Bug 1794250 - inline *_CIDs used by NS_DEFINE_CID. r=benc
... and correct a few things that couldn't be easily semi-scripted.

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

--HG--
extra : rebase_source : 553355b1fd955af029e55c1ca3d247a1ec549c34
2022-10-25 13:49:49 +11:00
Ben Campbell cea7681c99 Bug 1791854 - Disregard URL fragment when extracting content type from URL in mime nsStreamConverter. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D159908

--HG--
extra : rebase_source : f4712a1b2de7a30d1a4bf1013e79ea1285233a1a
2022-10-21 20:13:49 +11:00
Martin Giger 6e3add7bcd Bug 1796010 - Migrate toolkit/modules imports in mailnews/ to ESM. r=mkmelin
Depends on D159646

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

--HG--
extra : moz-landing-system : lando
2022-10-19 04:48:05 +00:00
Geoff Lankow c4ac752f7d Bug 1799764 - Use the observer service to notify the UI about remote content in messages. r=BenC
Differential Revision: https://phabricator.services.mozilla.com/D161654

--HG--
extra : rebase_source : c9a37a075eaf1531b1f2502ea22698307e11851d
2022-11-07 15:19:51 +13:00
Geoff Lankow 4282247f3d Bug 1799764 - Remove unused nsIMimeMiscStatus interface. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D161653

--HG--
extra : rebase_source : add2697dd628da7bb7f45f3f38cae71e46b80e1a
2022-11-07 14:34:59 +13:00
Geoff Lankow a7aa127eff Bug 1799764 - Implement GetMessageServiceFromURI in JS. r=aleca
This avoids the creation of unnecessary nsIMessenger objects just to do some basic logic.

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

--HG--
extra : rebase_source : 87f85b9a4f0a6a8c8f7e8344b518c4e29e3f7f21
extra : amend_source : 087047c544c32dc9061566c9d9f295fd5102b4c1
2022-11-07 16:27:22 +13:00
Martin Giger ea05927888 Bug 1792869 - Convert XPCOMUtils imports to esm in mailnews/. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D159063

--HG--
extra : rebase_source : 332a690910fc8c17ac702d3af4e3693faede08e0
extra : amend_source : cd0bb3cabc7d2322bec1024b82f5fd89b5fe6899
2022-10-12 21:41:55 +11:00
Nicolai Kasper 1149553854 Bug 195716 - Handle custom header data (e.g. mail.compose.other.header;Supersedes) when restoring saved draft. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D155809

--HG--
extra : rebase_source : 0bc57a8ccb0c339af70dd720ba2513d48559bd00
2022-10-06 20:31:20 +11:00
Rob Lemley c098c97425 Bug 1792817 - Port bug 1792365: Migrate some toolkit module imports to ESM. r=mkmelin
../mach tb-esmify --upstream-imports calendar --prefix=toolkit/
../mach tb-esmify --upstream-imports chat --prefix=toolkit/
../mach tb-esmify --upstream-imports mail --prefix=toolkit/
../mach tb-esmify --upstream-imports mailnews --prefix=toolkit/

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

--HG--
extra : amend_source : e4e2791bd957bf16ed1907589c3c18ad5f0ec618
2022-09-30 20:44:14 +10:00
John Bieling 06bdca1938 Bug 1790566 - Use MailStringUtils.uint8ArrayToByteString(byteArray) instead of String.fromCharCode(...byteArray). r=rnons
Depends on D156580

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

--HG--
extra : moz-landing-system : lando
2022-09-14 16:42:10 +00:00
John Bieling 0e3de94696 Bug 1698886 - Make messages.listAttachments() return a MessageHeader for attached messages. r=mkmelin
Depends on D108666

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

--HG--
extra : moz-landing-system : lando
2022-09-14 16:42:10 +00:00
John Bieling 32e995e692 Bug 1698886 - Also return forwarded emails as attachments. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D108666

--HG--
extra : moz-landing-system : lando
2022-09-14 16:42:09 +00:00
Geoff Lankow f5de1454eb Backed out changeset 2aaa8c1e8b25 (Bug 1698886) for breaking tests.
--HG--
extra : amend_source : a7d184442d4ea8f3c5d515c062631e65d97f4a7d
2022-09-14 14:06:04 +12:00
Geoff Lankow 644b60ae04 Backed out changeset ca9f804f014c (bug 1698886) for breaking multiple tests. 2022-09-14 12:31:29 +12:00
John Bieling 20b508c7ee Bug 1698886 - Make messages.listAttachments() return a MessageHeader for attached messages. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D156580

--HG--
extra : amend_source : 09101c3e57bbbe967faaa411835c99e391cbdbc2
2022-09-13 20:23:47 +10:00
John Bieling df9cdb819c Bug 1698886 - Also return forwarded emails as attachments. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D108666

--HG--
extra : amend_source : f424d61d2703fdc52700b42ead296c9cb657eefa
2022-09-13 20:23:29 +10:00
Magnus Melin dd6cad7be0 Backed out changeset c353442104cf (Bug 1698886) for test failures. rs=backout
--HG--
extra : rebase_source : 13e96e4ec55321e6bb66a0a2bc51fe35673d0829
extra : amend_source : 8a324c9ee18c8087db19bbc3cebd7e166560573a
2022-09-10 16:25:41 +10:00
Magnus Melin f2ec2bf99b Backed out changeset 5524490ed106 (Bug 1698886) for test failures. rs=backout
comm/mail/components/extensions/test/xpcshell/test_ext_messages_attachments.js
https://treeherder.mozilla.org/logviewer?job_id=390047064&repo=comm-central

--HG--
extra : amend_source : 39843e522f709cdca0ddf8a5ab4022d4d7aeb6e8
2022-09-10 16:25:15 +10:00
John Bieling b4b03241a8 Bug 1698886 - Make messages.listAttachments() return a MessageHeader for attached messages. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D156580

--HG--
extra : moz-landing-system : lando
2022-09-09 20:14:18 +00:00
John Bieling 48c599cc14 Bug 1698886 - Also return forwarded emails as attachments. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D108666

--HG--
extra : moz-landing-system : lando
2022-09-09 20:14:18 +00:00
Alessandro Castellani 3f54316f94 Bug 1789943 - Port Bug 1760580 Implement CancelWithReason methods. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D156906
2022-09-08 22:44:22 +00:00
Magnus Melin 7afb0b1788 Bug 1789117 - Loop from end when removing nodes. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D156387

--HG--
extra : rebase_source : c7f868ba86443665d9c0259c9d313749b3f7fd5f
extra : amend_source : f7c965d6c626c12d51222cb0edc0772d6fd50493
2022-09-06 20:01:06 +10:00
Magnus Melin 2aaca8fca5 Bug 1774805 - Don't use Content-Location base which can't become a url. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D155035

--HG--
extra : rebase_source : 331a0a06be3cee5248e063b2f0df205c0092ffb8
extra : amend_source : f5c8769d95a2ccb5551b25b7632e58a3476809a5
2022-08-24 20:24:48 +10:00
Magnus Melin c849e112e4 Bug 1784838 - Remove meta refresh from parsed message content. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D154640

--HG--
extra : rebase_source : 91e680edf396bcff1bee3012122d5896a7842767
extra : amend_source : 4ed87992706e35cb7cba8fe2aaebd192031280f4
2022-08-20 20:29:51 +10:00
Magnus Melin 67f8092360 Bug 1429491 - Use standards mode for emails. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D154067
2022-08-15 11:19:14 +00:00
Magnus Melin 8928aa83cd Bug 1776851 - Q encoding should use uppercase characters according to RFC 2047. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D153556

--HG--
extra : rebase_source : 82d4f4edb48d5cba9227b5127f4fe4ea0c561cab
extra : amend_source : 90f2cfaba486cd0ef132b825d7c67f808554dd9c
2022-08-04 14:54:01 +10:00
Ben Campbell 08f79ea753 Bug 1782347 - Fix nsString-related bustage from bug 1772006. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D153306

--HG--
extra : amend_source : a50a30575bab2fa4edcdadcabbead9236f2904dc
2022-07-31 20:43:42 +10:00
Rob Lemley 0d7122c987 Bug 1780608 - Port Bug 1780361: Use RemoveConditionalCSS function for sanitizing. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D152438

--HG--
extra : amend_source : 4a0a4d6f53616e1a59a328bcd0baffc0ed3f51df
2022-07-21 12:56:51 -04:00
Magnus Melin 658036deef Bug 1779145 - Port bug 1667455 to Thunderbird - Expose a "Services" property on all privileged JS scopes (like Cu/Cc/Ci). r=leftmostcat
Changed prettier printWidth to 100 to put Services.jsm on one line, prettified and then
   grep -rEl "/Services.jsm" --exclude-dir=.hg --exclude-dir=suite --include="*.js" --include="*.jsm" --exclude=".*" . | xargs xargs sed -i -e '/\/Services.jsm/d'

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

--HG--
extra : rebase_source : 43da2706d3b30f5062511cedd527e9fb65631f02
extra : amend_source : 863bfd4ad3930f4fe4ed0b3dba6061370118f9a5
2022-07-18 20:26:40 +10:00
Geoff Lankow 051f23a971 Bug 1779181 - Use static registration for mailnews services. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D151681

--HG--
extra : rebase_source : 90f741be6f845d403cac1167864d1b6e2318e2ca
extra : amend_source : 5b2f2827e81ecf4f497598e2331f33f7a98b3415
2022-07-12 21:34:40 +12:00
Geoff Lankow cfe00cbe25 Bug 1773772 part 17.1 - Fix win32 build. rs=bustage-fix DONTBUILD
--HG--
extra : amend_source : 6122397984cf9d7040cc654e631b2e251fd39781
2022-07-13 12:55:25 +12:00
Geoff Lankow 57c1bf635d Bug 1773772 part 17 - Fix signed message handler registration and tests. r=kaie
The S/MIME tests need the default (PGP) handler replaced before they pass.

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

--HG--
rename : mailnews/mime/public/nsIMimeContentTypeHandler.h => mailnews/mime/public/nsIMimeContentTypeHandler.idl
extra : rebase_source : 067497031703817e325b88081d051aab66ef3edf
extra : amend_source : 0abc9c7404947d68e4d81e8c3b9709fbe17685b4
2022-07-05 20:43:22 +12:00
Geoff Lankow 499c063037 Bug 1779181 - Port bug 1686616 - Migrate all Services.py interfaces to components.conf. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D151588

--HG--
extra : rebase_source : 11c072dfd03577ff900aec0d6bfddd86fc0a8f1a
2022-07-12 16:27:28 +12:00
Geoff Lankow 28b5af8f2a Bug 1773772 part 8 - Convert remaining mailnews binary components registration to components.conf. rs=aleca
Differential Revision: https://phabricator.services.mozilla.com/D150712

--HG--
extra : rebase_source : c089bbcaeb424e9206e4de0f0ef1e83dafb05a6b
extra : absorb_source : 431872986b57badd37e0332da5104ab0b30876ba
extra : histedit_source : cb8b3b1f76f288ab49b2ef3fd93cf73ea3efd37f
2022-06-30 12:17:27 +12:00
Magnus Melin 5fac73e453 Bug 1767816 - handle U+2800. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D146285

--HG--
extra : rebase_source : ecd1e3de1f2ea08be72629e46eff624d4019fd9a
extra : amend_source : 9d35cc35667b0de67cbc6709e7ace19fb9acc095
2022-05-18 13:05:55 +03:00
Alessandro Castellani 3f6e76e6af Bug 1715364 - Implement font scaling menu items. r=mkmelin,darktrojan,Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D129454

--HG--
extra : amend_source : be683706c3f35a91430553d4c7f054478c223a88
2022-05-11 22:27:41 +03:00
Rachel Martin eb2ad913ef Bug 1766974 - Fix typos in mail and mailnews found with codespell. r=Paenglab,john.bieling,kaie
--HG--
extra : amend_source : 256a23051dda81f4e807183e44947a731d36b756
2022-04-30 13:30:36 +03:00
Henry Wilkes fe51e5cea4 Bug 1727493 - Replace mail.default_html_action and mailnews.sendformat.auto_downgrade with mail.default_send_format. r=mkmelin,BenB
Prior to this patch, mail.default_html_action ("default_html_action") and mailnews.sendformat.auto_downgrade ("auto_downgrade") were used as parameters in nsMsgCompose::DetermineHTMLAction to decide on whether to send HTML, PlainText, both parts, or to ask the user.

DetermineHTMLAction is removed in this patch, and we replace the its behaviour with a single mail.default_send_format preference, with 4 values:

+ PlainText - Always send plain text. Equivalent to "default_html_action" set to PlainText before (regardless of "auto_downgrade").
+ HTML - Always send HTML. Equivalent to "default_html_action" set to HTML and "auto_downgrade" set to false.
+ Both - Always send both HTML and plain text. Equivalent to "default_html_action" set to Both and "auto_downgrade" set to false.
+ Auto - Send only plain text if the message lacks formatting, else send both. Equivalent to "default_html_action" set to Both and "auto_downgrade" set to true. This was the default before and after this patch.

The lost behaviour is:

+ "default_html_action" set to "AskUser". This would ask the user what format to send using the askSendFormat dialog. This is now dropped, along with the dialog, and transferred to the Auto default.
+ "default_html_action" set to "HTML" and "auto_downgrade" set to true. This is transferred to the Auto default.

The new "default_send_format" preferences is now linked directly to MsgCompFields.deliveryFormat. New messages have their MsgCompFields.deliveryFormat set to nsIMsgCompSendFormat.Unset, but this is changed to the value of "default_send_format" when it is loaded into the compose window. As before, the deliveryFormat can be set to a different value using the #outputFormatMenu (the compose window's "Options, Delivery Format" menu). This also means that the 4 values for "default_send_format" correspond to the 4 menuitems. Just as before, the deliveryFormat is saved for drafts or templates. Note that the "Unset" value is only used as an initial value for the deliveryFormat field, and it is never used again after it has been opened for the first time.

Note, prior to this patch, nsIMsgCompSendFormat.AskUser was used as a value for MsgCompFields.deliveryFormat to indicate that the send format should use DetermineHTMLAction, rather than an explicit value (the name was a misnomer in this case). The "AskUser" enum has been renamed to "Unset". This means that any drafts or templates saved by a user before this patch without an explicitly set format will now be opened with the default send format, the same as newly created messages. This acts as a convenient bridge between the old and new behaviour.

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

--HG--
extra : amend_source : 8fd622c39171d4992a07dc2404d0a75215a74fe8
2022-04-28 12:55:41 +03:00
Magnus Melin d81dad2520 Bug 1766364 - fix comm-central unreachable-code warnings in Windows builds. rs=bustage-fix 2022-04-27 14:00:27 +03:00
Ping Chen fb2f440262 Bug 1763629 - Fix forwarding message with message-id longer than 332 chars. r=mkmelin
Set _hardMargin to 998 in jsmime.js.

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

--HG--
extra : amend_source : 2cd768f5ce01aade1e7cb030e107e4b9661cf441
2022-04-12 11:55:45 +02:00
John Bieling 2f6ef9ab54 Bug 1670791 - Replace nameless zero-size cloudFile attachment by a small html info attachment. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D138808

--HG--
extra : amend_source : ff421dc6564fa867fe4d30194457613134bd3d20
2022-03-05 11:47:23 +02:00
Rob Lemley ac6ee13911 Bug 1753094 - Follow-up: clang-format. rs=linting DONTBUILD
--HG--
extra : rebase_source : c6564c0e0ff85e1147347e0312c785699ab24ec9
2022-02-24 13:41:18 -05:00
Rob Lemley 3322cc628a Bug 1753299 - Follow-up: clang-format. rs=linting
--HG--
extra : rebase_source : 3fcb213f7e0485b62c05a1c80d93ad3a0600e4af
2022-02-24 13:38:57 -05:00
Kai Engert 011da376eb Bug 1753299 - Track the need to delete more carefully. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D137737

--HG--
extra : amend_source : 80db3d0188778c07c5ac82104f874b5b194aa993
2022-02-16 10:58:39 +02:00
Kai Engert 63e0bf07c3 Bug 1753094 - Be more careful when using strlen. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D137700

--HG--
extra : amend_source : df1aa2fa94162c801bacaebd14b3444c3bb42893
2022-02-16 10:57:04 +02:00
Magnus Melin cd06d8bc83 Bug 1676114 - follow-up fix "info not defined". rs=me DONTBUILD 2022-02-14 22:10:41 +02:00
Nicolai Kasper 1eadcf9ea4 Bug 1676114 - Part 7: Using MessageInjection.jsm in mailnews/mime/test/unit/**. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D138549

--HG--
extra : amend_source : afff85a52804d68cef8ae901e560aca4c7aea10f
2022-02-14 19:49:59 +02:00
Kai Engert 73665dba98 Bug 1753984 - MimeContainer_finalize should mark all child objects as closed to prevent further data processing and consistency checks. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D138095

--HG--
extra : amend_source : b8202086650950e16849a95fc7604facdd073edf
2022-02-11 18:50:50 +02:00
Magnus Melin 0d84b17437 Bug 1754423 - follow-up - clang-format. rs=clang-format DONTBUILD 2022-02-09 20:05:46 +02:00
Kai Engert a17e33c233 Bug 1754423 - Same code for counting and storing. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D137658

--HG--
extra : amend_source : 1406670573832660d74a92357c95225241943731
2022-02-09 19:41:52 +02:00
Magnus Melin 6855003915 Bug 1753082 - bounds check before parsing From. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D137620

--HG--
extra : rebase_source : 9088b2f2f3c25aa78ced2e98f4e3dade779211b6
2022-02-02 22:04:13 +02:00
Rachel Martin 7a3f49cc7d Bug 1746695 - Fix communication of charset back to window. r=mkmelin
--HG--
extra : amend_source : 4df362836cd6023242744711c9343922b00364ee
2021-12-21 12:11:00 +02:00
Rachel Martin 19429999ab Bug 1746695 - Improve method and variable names related to charset detection. r=mkmelin
--HG--
extra : amend_source : e085fc3ed69dc2d119d2c6953d1db0e5bb2f2f99
2021-12-21 12:10:15 +02:00
Nicolai Kasper 9b574bec3e Bug 1676114 - Part 2: Copy contents of messageModifier.js into MessageGenerator.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D132915
2021-12-09 12:42:54 +00:00
Nicolai Kasper 065fecad8c Bug 1676114 - Part 1: Using object MessageInjection for messageInjection.js functions. r=mkmelin
Changed also importing in comm/mail/test/browser over comm/mail/test/browser/shared-modules/FolderDisplayHelpers.jsm.
MessageInjection is completely fowarded not subfunctions of it.
delete_message_set is renamed to MessageInjection.async_delete_messages.

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

--HG--
extra : amend_source : 12da8c081277e5b330bd5b60ecc9d67a0f0d5654
2021-12-03 12:43:10 +02:00
Rob Lemley 3e89aade3e Backed out changeset 8055f233b878 (bug 1676114) for test failures. r=backout a=rjl 2021-12-02 19:35:08 -05:00
Nicolai Kasper 0a4806249e Bug 1676114 - Part 1: Using object MessageInjection for messageInjection.js functions. r=mkmelin
Changed also importing in comm/mail/test/browser over comm/mail/test/browser/shared-modules/FolderDisplayHelpers.jsm.
MessageInjection is completely fowarded not subfunctions of it.
delete_message_set is renamed to MessageInjection.async_delete_messages

Try: https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=71a69699f754dc57529ed1d2fdc421451e359f7e

Differential Revision: https://phabricator.services.mozilla.com/D132169
2021-11-25 12:38:07 +00:00
Magnus Melin d8cd17116d Bug 1729632 - use original file extension for temporary nsmail attachments. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D132560

--HG--
extra : rebase_source : 73b34ad6a8dcf88c723f93917abec2753affb32e
extra : amend_source : 5e11d9aee4e6a2136c291497f192b240c60166f0
2021-12-02 12:33:29 +02:00
Betterbird 5aa29101a2 Bug 1743929 - Port bug 1715892 - Unify the intl/locale/DateTimeFormat API into the intl/components/DateTimeFormat. r=darktrojan 2021-12-02 12:31:13 +02:00
Nicolai Kasper 1c358689d0 Bug 1738031 - Add Email headers in saved emails as .html files (like they used to). r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D132036

--HG--
extra : amend_source : 9c5d668304990cf1a7c51383f8af2f7d3c9c6559
2021-12-01 12:54:09 +02:00
Kai Engert 079495c27c Bug 1693332 - Add tests for permanent message decryption. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D131597

--HG--
rename : mail/test/browser/openpgp/browser_viewMessageSecurity.js => mail/test/browser/openpgp/browser_perm_decrypt.js
rename : mailnews/mime/test/unit/test_smime_decrypt.js => mailnews/mime/test/unit/test_smime_perm_decrypt.js
extra : amend_source : e1e24b30a122fc937cc121accdb6d80bcc38cd4b
2021-11-29 20:39:48 +02:00
Rachel Martin 41593018fa Bug 1739814 - Change remaining URI APIs to from raw string to smart string. r=mkmelin 2021-11-22 20:00:08 +01:00
Betterbird 351917cb7c Bug 1741282 - Always output the attachment list for printing, even if message isn't displayed. r=darktrojan
From 6eb66c7415/91/bugs/1737730-attachment-list-printing.patch

--HG--
extra : amend_source : d3a2652356ee4d8a4d5beaff51b0816372a73486
extra : histedit_source : f879159c747c5c910e1d2d41a5243796a331ad86
2021-11-22 14:31:35 +01:00
Rachel Martin 1471a7836a Bug 1739814 - Change more URI APIs to from raw string to smart string. Fixes saving drafts and smart/unified/virtual folders. r=mkmelin 2021-11-22 12:22:49 +02:00
Magnus Melin 166598d4ef Backed out changeset 47afbf2a379e (bug 1741282) for outputting attachment list in re/fwds. r=backout 2021-11-22 15:15:28 +02:00
Rachel Martin 8e08ba891c Bug 1741619 - Change most URI APIs to from raw string to smart string. r=mkmelin
--HG--
extra : rebase_source : 182d285562d18b88558a4a26a508a40956b75ed4
2021-11-19 20:23:48 +02:00
Betterbird 01e5333387 Bug 1741282 - Always output the attachment list for printing, even if message isn't displayed. r=darktrojan
From https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/1737730-attachment-list-printing.patch

--HG--
extra : rebase_source : 88c6a83cc88326d5777d6dd934b95c0d52013ce8
extra : amend_source : 2ce9c4d27bd3ba5859088d902c2eb50f9ccb4d7b
2021-11-16 21:58:50 +13:00
Geoff Lankow 6b2248137a Backed out changeset d2404125017d (bug 1738031) for breaking the tests. 2021-11-16 12:14:51 +13:00
Nicolai Kasper c2d528bdca Bug 1738031 - Add Email headers in saved emails as .html files. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D130983

--HG--
extra : rebase_source : 33ba0687720e6f718c699ef529d8d6a485c2695a
2021-11-15 12:55:24 +00:00
Mark Banner 04d5aa7e87 Bug 1739784 - Fix nsIMsgComposeParams.originalMsgURI to be able to handle non-ascii URIs. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D130555

--HG--
extra : moz-landing-system : lando
2021-11-08 12:39:29 +00:00
Magnus Melin 53ee7ebb23 Bug 1713786 - followup - clang-format. rs=clang-format 2021-11-01 12:25:32 +02:00
Geoff Lankow 31fb218be3 Bug 1736244 - Add a moz- prefix to classes used in messageBody.css. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D129090

--HG--
extra : rebase_source : 4d3c424a155373cced4b6446761d207de25dd140
2021-10-20 22:27:27 +13:00
Magnus Melin 6aa24773df Bug 1734361 - followup - remove case a of incorrect forcing of charset override. rs=me
--HG--
extra : amend_source : dc5850ce04148b7811791440dcb33d87879f2c5b
2021-10-25 13:29:16 +03:00
Magnus Melin ef2e7fe72b Bug 1734361 - fix non-utf8 newsgroups. r=freaktechnik
* Restore erroneously removed 'text->inputAutodetect = true;'.
* Use news server default charset.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/1734361-fix-news-charset-issues.patch

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

--HG--
extra : rebase_source : a587d553f50ee4f4a5c6fb99b41fb9fcf182894b
extra : amend_source : 1b93591354f5804ff9a4266dbd03b5ea937b1955
2021-10-23 13:35:41 +03:00
Magnus Melin 3da11db9d1 Bug 1668926 - coverity - fix resource leak in mime_display_stream_complete. r=benc
CID 1137494 Resource leak

The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In mime_display_stream_complete: Leak of memory or pointers to system resources

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

--HG--
extra : rebase_source : 3559808a823f2149f25075d8ed5eedf52cea2798
2021-10-11 14:13:23 +03:00
Magnus Melin 33202f2c1b Bug 1668926 - coverity - fix resource leak in MIMEGetRelativeCryptoNestLevel. r=benc
CID 450579 Resource leak
The system resource will not be reclaimed and reused, reducing the future availability of the resource.
In MIMEGetRelativeCryptoNestLevel(MimeObject *): Leak of memory or pointers to system resources

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

--HG--
extra : rebase_source : 6ca60678114ba81512779c087ee2b30113c95e16
2021-10-11 14:02:38 +03:00
Magnus Melin 8a24e3a6fa Bug 1732570 - clean up remaints of _smimeHeaderSink and maxWantedNesting. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D128208

--HG--
extra : rebase_source : b72e3a556722e45207ee75ca82f0747615847b4f
2021-10-12 16:50:19 +03:00
Magnus Melin a78d505f0b Bug 1668926 - coverity - fix unused value in nsMimeBaseEmitter::​MimeGetStringByName. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D127796

--HG--
extra : rebase_source : 1ad2bef2682f0253fa7e0205547b7ff48c0c0c12
2021-10-07 13:48:26 +03:00
Magnus Melin 42359f9fdd Bug 1668926 - coverity - fix dereference after null check in MimeHandleDecryptedOutputLine. r=benc
CID 1272795 Dereference after null check

Either the check against null is unnecessary, or there may be a null pointer dereference.

In MimeHandleDecryptedOutputLine(char *, int, MimeObject *): Pointer is checked against null but then dereferenced anyway

---

I think there are cases where options ends up being null.

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

--HG--
extra : rebase_source : 0fa483b641bc70674a341d5435d4a0ffee9e2d9e
2021-10-07 12:40:50 +03:00
Henry Wilkes a31d75dbfd Bug 583572 - Always show vcard attachments in the attachment list. r=mkmelin
However, we still hide the vcard attachments for the purposes of the message thread attachment icon.

Differential Revision: https://phabricator.services.mozilla.com/D127537
2021-10-06 10:00:49 +00:00
Martin Giger d1c1e35fc5 Bug 1713786 - Do mime detection instead of charset override. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D126814

--HG--
extra : moz-landing-system : lando
2021-10-01 22:09:51 +00:00
Geoff Lankow 6320c35c16 Bug 1729279 - Add attachment size to emitted HTML for printing. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D124705

--HG--
extra : rebase_source : 40060e627230c756306b53e1493d42d20168a93a
2021-09-07 11:25:25 +12:00
Magnus Melin 88d88aa408 Bug 760412 - Always display text/calendar part along with chosen text/html part. r=darktrojan
This makes us always show the generated invite html together with the normal html part.
Invites usually have an ok display in there generated by the server or sending client, and I think we don't want to normally show both parts at the same time. This patch changes the imip invite to just show an expandable summary on top of the html from the email. By clicking the arrow the details (like we had them) will be displayed, so that it still is accessible for the cases where the html representation is not there in the email, or it's bad.

Displaying the normal html content of the email solves problems expecially for "cancelled with a note" updates where you otherwise can't see the note because it's only inside the mail content.

Based on https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/760412-always-show-text-calendar.patch

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

--HG--
extra : rebase_source : a472f5825b80992cbe8bb8d5a72275315959332a
2021-09-01 10:30:38 +03:00
Geoff Lankow 01464f7002 Bug 1727055 - Add the list of attachments to displayed messages for printing only. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D123413

--HG--
extra : rebase_source : 4028164046fb0bbb5b7472427e15978cad946a81
2021-08-24 14:58:46 +12:00
Magnus Melin 86a01a3dc0 Bug 1722302 - fix Crash in [@ MimeObject_write]. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D122062

--HG--
extra : rebase_source : c3612614b8c16ae308906375c0c59b23fa83c323
2021-08-08 23:27:55 +03:00
Magnus Melin cb75954213 Bug 1668926 - fix unused status in MimeMultipart_parse_line. r=benc
CID 1467521 (#1 of 1): Unused value (UNUSED_VALUE)returned_value: Assigning value from MimeWriteAString(obj, nsTLiteralString<char>(operator "" _ns("\"\nContent-Transfer-Encoding: 8bit\n", 34UL)).operator nsTString const &()) to status here, but that stored value is overwritten before it can be used.

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

--HG--
extra : rebase_source : 6f284bf20dffff1ff98fcf9a88233fd989637f58
2021-08-18 10:00:37 +03:00
Magnus Melin 78dab3b642 Bug 1668926 - fix unchecked return value in MimeEncrypted_emit_buffered_child. r=benc
CID 1459736 (#1 of 1): Unchecked return value (CHECKED_RETURN)7. check_return: Calling MimePartBufferRead without checking return value (as is done elsewhere 6 out of 7 times).

In MimeEncrypted_emit_buffered_child(MimeObject *): Value returned from a function is not checked for errors before being used.

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

--HG--
extra : rebase_source : e6f57d952d869b382dce952aa546faf53c8f1016
2021-08-15 22:35:46 +03:00
Henry Wilkes 0cff43fe39 Bug 1718018 - Use vcard content types in place of the deprecated x-vcard. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D121744
2021-08-11 11:34:17 +00:00
Ben Campbell d402c883a7 Bug 1679299 - Inline invitation-template.xhtml to prevent C++ re-entrancy in CalMimeConverter. r=darktrojan
This removes the use of a blocking (synchronous) XMLHttpRequest, which was
causing recursive calls to nsStreamConverter::OnDataAvailable() and general
mayhem. The blocking request was spinning the threads event queue, and so
the stream feeding the mime parsing sends us more data even though we're
still in the middle of processing the previous chunk!

Differential Revision: https://phabricator.services.mozilla.com/D120414
2021-07-23 07:29:18 +00:00
Geoff Lankow eee0e10924 Bug 1718119 - When emitting messages for display, start with a UTF-8 BOM. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D119844

--HG--
extra : rebase_source : 07816576b7b6f3bad2129b907f2c7aba9241de51
2021-07-14 14:49:06 +12:00
Geoff Lankow 26d184c077 Bug 1715726 - Fix display of the headers of attached messages in inline preview. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D119841

--HG--
extra : rebase_source : c1d9ba58c0aab5cc14883d4f43fab9e06de1a756
2021-07-14 14:05:53 +12:00
John Bieling 8a77f2ff27 Bug 1713145 - Fix MimeParser.extractMimeMsg() to return the same headers as MsgHdrToMimeMessage, properly return inline body parts and fix multiple decoding issues in the messages.getFull WebExtension API. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D117279

--HG--
extra : rebase_source : 333532fdfe6f7bf2479fa37345a5bccefd695c69
2021-06-10 14:38:27 +00:00
Ben Campbell 660ed07b28 Bug 1715433 - Use initial-lowercase-letter naming convention in nsIMsgCopyService. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D117256

--HG--
extra : amend_source : 9466d9ce3ff06bc5a7ca014c514d70e023b421b4
2021-06-09 12:57:51 +03:00
KN4CK3R bfe0e6c4e8 Bug 1528932 - fixed drag&drop attachment name for when e.g. when attached.pdf is only Mime part. r=benc 2021-06-01 13:49:36 +03:00
John Bieling 97ca3490fa Bug 1644027 - Fix messages.getFull() and attachment support for news by adding a full MIME emitter to jsmime.js based MimeParser.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D115336

--HG--
extra : histedit_source : d8de932cea91f2660937b815f5a586ca065a8c0c
2021-05-26 16:02:23 +00:00
Magnus Melin c4c425074c Bug 1644027 - Backed out changeset 7471ec244f7d for test failures. r=backout DONTBUILD
--HG--
extra : amend_source : 50555f7f37df3ff43cd1fb300230e57ef8792872
2021-05-26 09:30:45 +03:00
John Bieling 3a794f942e Bug 1644027 - Fix messages.getFull() and attachment support for news by adding a full MIME emitter to jsmime.js based MimeParser.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D115336
2021-05-13 07:54:14 +00:00
Geoff Lankow 82408e31d8 Bug 1711408 - Emit the same HTML for displaying and printing messages. r=mkmelin
I *think* this makes nsMimeOutput::nsMimeMessagePrintOutput obsolete, there are some uses left behind but they should behave as nsMimeOutput::nsMimeMessageBodyDisplay does.
I'm not even sure most of the remaining uses are in live code.

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

--HG--
extra : rebase_source : 9cc5b576bf932640f8eecd10a7a3078a5987ed83
extra : histedit_source : 88d4b7d87c483a85b34caeb458702c4516f01d20
2021-05-19 12:08:29 +12:00
Magnus Melin 369df01d94 Bug 244347 - followup to clang-format. rs=clang-format
Also including some other clang-formatting.
2021-05-04 13:52:16 +03:00
tom@pep-project.org 9fbcced17c Bug 1706170 - Remove use of pref mailnews.display.original_date. r=mkmelin 2021-04-22 12:58:15 +03:00
Ping Chen 7554b6802c Bug 1702197 - Prevent using quoted-printable for format=flowed message. r=mkmelin
Also fix removing stuffed space in format=flowed message.

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

--HG--
extra : amend_source : b26cbdcfc3ca9bb8232a49972d6f7191b043597a
2021-04-22 12:54:53 +03:00