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
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