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

9175 Коммитов

Автор SHA1 Сообщение Дата
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
Ben Campbell 4d55e8b6b9 Bug 1791459 - test_converterImap.js to add_setup. r=mkmelin
Also tidies up a little cruft.

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

--HG--
extra : amend_source : 885d0ed5e4ca73fb278ad34dfccbb3ea81487e36
2022-10-11 21:47:27 +11:00
Magnus Melin 7e7e1301dd Bug 196584 - remove leftovers of pop3 dot-stuffing (dotFix, dot_fix). r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D159003

--HG--
extra : rebase_source : 38506f329a09c7ee29f941bdc75e1ee4937be5bf
2022-10-11 11:31:20 +11:00
Ping Chen aeedf87c96 Bug 1794185 - Fix "Get Next n Messages" for nntp-js. r=mkmelin
Update nsIDBFolderInfo.knownArtsSet based on XOVER range, doesn't matter if artciles in the range don't exist on the server.

Differential Revision: https://phabricator.services.mozilla.com/D158898
2022-10-08 06:13:43 +00:00
John Bieling 020870378f Bug 1791360 - Add Custom1 to Custom4 to BANISHED_PROPERTIES. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D157624
2022-10-10 08:51:51 +00:00
Ben Campbell 4b5c5ffb6b Bug 1794071 - Modernise and simplify test_over2GBMailboxes.js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158823

--HG--
extra : rebase_source : fe8cf9aee0c7ce8b121b0f14f7c797d8b841fcef
2022-10-10 21:35:22 +11:00
Magnus Melin 669f54f619 Bug 1675814 - Remove global/locale/global.dtd from Thunderbird code. rs=bustage-fix
--HG--
extra : rebase_source : a76077598abba372a77745d00cd3a0a5e09e540f
2022-10-08 20:47:06 +11:00
Magnus Melin 6a82a078ba Bug 1793903 - account central should default to setting up carddav address books. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158737

--HG--
extra : moz-landing-system : lando
2022-10-07 23:56:23 +00:00
Ben Campbell 0b0768b7a4 Bug 1794058 - Suppress warning in nsMsgSendLater::BuildNewBuffer() during normal operation. r=mkmelin
Also took the opportunity to constify the buffer passed in to
DeliverQueuedLine(), in anticipation of one sweeping away all
the malloc-based buffer complications.

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

--HG--
extra : amend_source : 0f7d67c84ebeae920fd51927c59747f3789c67dd
extra : absorb_source : f521915c9cdda71eb7a7d9bf66c0272540168072
2022-10-07 21:51:52 +11:00
Richard Marti f5215bed28 Bug 1793100 - Make dialogs and window keep stretching after bug 1665476. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158788

--HG--
extra : amend_source : 72c3b7382dfa3eddc6e3be1d0d125b4a36f13291
2022-10-07 21:51:02 +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
Ping Chen a9be7138ff Bug 1770594 - Do not include username in server uri when getting nntp password. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158619

--HG--
extra : rebase_source : 1eb0729ca8c718c5eb265193112ccc21e4b2a34e
2022-10-06 22:02:00 +11:00
Ping Chen 329b6919c2 Bug 1762690 - Fix test_stopMovingToLocalFolder.js for macOS by normalizing folder path. r=mkmelin
Introduce MsgProtocolInfo.sys.mjs to reuse code between nntp/pop3/imap protocol info modules.

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

--HG--
extra : moz-landing-system : lando
2022-10-06 08:26:29 +00:00
Ping Chen 11a11a69e8 Bug 1762690 - Enable test_imapAutoSync and test_imapHighWater for imap-js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158442

--HG--
extra : moz-landing-system : lando
2022-10-06 08:26:28 +00:00
Ping Chen 731cc932b9 Bug 1793374 - Fix FetchBodyFromPop3Server filter. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158560

--HG--
extra : moz-landing-system : lando
2022-10-05 20:08:56 +00:00
Alessandro Castellani e1244786b1 Bug 1792612 - Always open LDAP and Local address book dialogs as SubDialogs. r=thunderbird-reviewers,freaktechnik
When possible, we redirect to the AB tab and let that code handle the dialogs.
Otherwise we open a subdialog from where we are.

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

--HG--
extra : moz-landing-system : lando
2022-10-05 20:08:55 +00:00
Ben Campbell f5d7560958 Bug 1793313 - Fix bad end-of-message detection when saving news messages offline. r=mkmelin
The problem was that NntpClient was handling escaping the "." message
termination, but that nsNewsFolder::NotifyDownloadedLine() was scanning for
"." lines to finish messages. So the folder would screw up when a message
body contained a lone "." line.

The changes in detail:
- Adds notifyDownloadBegin()/notifyDownloadEnd() calls to nsIMsgNewsFolder.
- In NntpClient.jsm:
  - Now calls notifyDownloadBegin()/notifyDownloadEnd() to denote message
    boundaries.
  - No longer sends a "." final line to the folder.
  - Tries to call notifyDownloadEnd() with an error code if an error occurs.
- adds an status param to nsMsgDBFolder::EndNewOfflineMessage(), and a code
  path to clean up upon errors. News folder now uses this to handle rolling
  back if an error occurs, but IMAP still relies on magic (checking the size
  of the message written so far).
- nsNewsFolder::NotifyDownloadedLine() no longer looks for a lone "." to
  denote the end of a message. The relevant code was split out into
  NotifyDownloadBegin() and NotifyDownloadEnd().
- Added some comments to try and clarify the offline message writing vars in
  nsMsgDBFolder.

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

--HG--
extra : absorb_source : 14534b426ccbe4239cb916c35c057ed46f3f6a4e
2022-10-03 08:26:21 +00:00
Ping Chen 8c1e764a0d Bug 1792362 - Get All New Messages button should work for nntp servers. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158542
2022-10-04 01:45:05 +00:00
Geoff Lankow a3a6fc5d5d Bug 1793415 - Catch and report errors parsing dates from vCards. r=mkmelin
The parsing may fail but that shouldn't break things.

Changes to test_vCard.js are mostly reinstating a test I should not have removed (in https://hg.mozilla.org/comm-central/diff/7b22f4a4287431034851651aa94fa6c88717e235/mailnews/addrbook/test/unit/test_vCard.js) with some additional cases in the birthday section.

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

--HG--
extra : rebase_source : d2e00b8653b33e23a7bc4803935bc9a14ffca26b
extra : amend_source : 3df743fc84663fc60d8e267169e044b9bbbd8591
2022-10-04 12:02:13 +13:00
Ping Chen cc353b7222 Bug 1793349 - Try GSSAPI/NTLM in Pop3Client even if not advertised. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158538

--HG--
extra : amend_source : 6cc81f216d595a102d0779c529c76e3c0ba1a7aa
2022-10-04 20:37:18 +11:00
Martin Giger 7404ae8c2f Bug 1793275 - Convert all imports of chat frontend to esm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158447

Depends on D158446

--HG--
extra : histedit_source : e125b1b5e31f6c18c5c2ba7326bab3175aecca84
2022-10-01 12:27:32 +00:00
Geoff Lankow 80b65ba867 Bug 1778447 - Replace hacked-together Address Book strings with new strings. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D151230

--HG--
extra : rebase_source : e7bd6160584c2c62d9c6f74c88a7ce0712f29dca
extra : amend_source : 3ae45fb443cc1abb975011c24395d0be6fda350c
2022-08-19 16:39:18 +12:00
Ben Campbell 1749f88c7a Bug 1793258 - Use PromiseStreamListener instead of custom articleTextListener in news unit tests. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158439

--HG--
extra : amend_source : 93e44b1d1e8c93de7a69b73a48f49402b979a635
2022-10-03 20:53:46 +11:00
Geoff Lankow a15a0ee158 Bug 1791459 - Convert more test setup functions to add_setup. rs=me
--HG--
extra : rebase_source : 4f7b0df4d57b69d1883330dab60b07f726505b89
2022-10-03 11:12:44 +13:00
Micah Ilbery 43e32a9af7 Bug 1792884 - Replace icons with larger full color versions in Activity Manager and Dialogs. r=aleca,Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D158366

--HG--
extra : moz-landing-system : lando
2022-09-30 22:01:25 +00: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
Ping Chen 66839e617b Bug 1792675 - Prevent blocking main process for too long in LineReader.jsm. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158387

--HG--
extra : histedit_source : d1344bb06ec28f64e264eb6ab8ebbdec5cc48415
2022-09-30 02:04:58 +00:00
Ping Chen 9ebcd51097 Bug 1762690 - Enable test_folderOfflineFlags and test_gmailAttributes for imap-js. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D158075

--HG--
extra : histedit_source : 927d634cefd403581665449f96c541c9ded9c46b
2022-09-28 23:39:56 +00:00
Ping Chen ebdf431aa1 Bug 1762690 - Enable test_dod for imap-js. r=benc
Call parseAdoptedMsgLine only when downloading for offline.

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

--HG--
extra : histedit_source : 35326dad81be0a671851946449b9af9ab7267b5d
2022-09-23 10:48:40 +00:00
Ping Chen 4e2fca8472 Bug 1762690 - Enable test_subfolderLocation.js and test_syncChanges.js for imap-js. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D158014

--HG--
extra : histedit_source : cec23344f7a4c79fd0c04c72818b77561b6027d1
2022-09-28 23:29:52 +00:00
Ping Chen bfa31777c4 Bug 1762690 - Enable test_stopMovingToLocalFolder.js for imap-js. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D157703

--HG--
extra : histedit_source : 0541cda47290275e3d8bc0e0bbd8f675697f4d89
2022-09-23 10:47:29 +00:00
Ping Chen cc536d6dc2 Bug 1735803 - Convert server hostname to lowercase before connecting. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158179
2022-09-27 05:39:23 +00:00
Ping Chen 80d23c2d45 Bug 1792362 - Fix fetching nntp messages from Get Messages dropdown. r=mkmelin,benc
Differential Revision: https://phabricator.services.mozilla.com/D158173

--HG--
extra : absorb_source : 488a940f3332858b6cf355eda29dd31fedf187c8
2022-09-27 22:45:11 +00:00
Rob Lemley 1c4634532b Bug 1792436 - Port bug 1792356: Remove useless [noscript] from XPIDL interfaces. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158349

--HG--
extra : amend_source : 492efc230fb22280256ea9cd8fc58c6189537966
extra : absorb_source : 1bd138b432430f88cac309b41757bcee565be211
2022-09-29 17:04:14 +00:00
Geoff Lankow acc21a9a5e Backed out changeset 1dfa7705e64a (bug 1791360) for breaking tests.
--HG--
extra : amend_source : a2e53b4ce686143545d87cbd38bf71c01fc16d1c
2022-09-29 12:15:06 +13:00
John Bieling 9d138b09f4 Bug 1791360 - Add Custom1 to Custom4 to BANISHED_PROPERTIES. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D157624

--HG--
extra : moz-landing-system : lando
2022-09-28 20:58:11 +00:00
Ping Chen cd3a87a5fc Bug 1792451 - Set socket timeout in Pop3Client to release folder lock. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D158237
2022-09-28 01:20:21 +00:00
Ping Chen c92eb63a93 Bug 1792281 - Show error dialog for NNTP server error. r=mkmelin
Pass urlListener and msgWindow to NntpClient before any real action, to receive stop event and show error dialog.

Differential Revision: https://phabricator.services.mozilla.com/D158246
2022-09-28 07:00:04 +00:00
Geoff Lankow 18db68ab9d Bug 1792438 - Remove uses of nsIModule from comm-central. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D158232

--HG--
extra : rebase_source : 809384796a203e3a60281e2d41f2eed46bd2b9a3
extra : histedit_source : b03893044eb4ee87352bfbd77e047039dae2bdec
2022-09-28 12:54:12 +13:00
Geoff Lankow c3f42550a7 Bug 1792579 - Remove unused nsAbUtils.h. r=aleca
These classes aren't used any more.

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

--HG--
extra : rebase_source : 06d1338da428c9f83f056db2d9e6bed10be6dd45
extra : histedit_source : 444deaa5178c929dc5dba463d29550a1edf02682
2022-09-28 12:46:21 +13:00
Geoff Lankow 1013f055fb Bug 1792101 - Ensure vCards have an `N` property when sending to Google. r=aleca
RFC2426 (vCard 3, which Google uses) specifies that the `N` property is required but RFC6350 (vCard 4) does not. It appears that Google enforces this.

This can't be fixed just by making the vCard serialiser add an `N` property to all version 3 cards, because sending a version 4 card to Google is a reasonable thing to do and it works otherwise.

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

--HG--
extra : rebase_source : fc11143a7d86f7b3c71f0c3a9e0f00b6e65bd9ee
extra : histedit_source : ac94ea1efa026f15c0d2c841b4e5c1f85b4c7fce
2022-09-27 15:11:48 +13:00
Geoff Lankow 64ee974eee Bug 1792399 - Store multiple values as an array in VCardPropertyEntry. r=aleca
If a vCard content line has multiple values (CATEGORIES and NICKNAME in vCard 4, also NOTE in vCard 3), the values appear in the parsed data structure as items 4...n.
(See 7fb7b51f1b/lib/ical/parse.js (L291-L293) for where this happens.)
Until now we've been assuming there are only four items, so the second and subsequent values have been lost.

This patch collapses the multiple values into an array for VCardPropertyEntry, and expands them again before sending the data back to ICAL.stringify.

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

--HG--
extra : rebase_source : 87a50f62e5913828673052eea3dea77f62de942d
extra : histedit_source : b764ed5a834b2522e138e2da9d80dcf78adbe0a5
2022-09-27 13:00:46 +13:00
Ping Chen 0cfa55c10b Bug 1762690 - Disable three tests for imap-js. r=mkmelin,benc
Chunking and download on demand need some more work.

Differential Revision: https://phabricator.services.mozilla.com/D157826
2022-09-21 12:56:45 +00:00
Geoff Lankow e9369d8196 Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-09-22 16:14:31 +12:00
Geoff Lankow 70e38d78d3 Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-09-21 22:44:11 +12:00
Ping Chen 3377c17524 Bug 1791706 - Port 1790451 - use the concrete type nsITransportSecurityInfo for nsIChannel.securityInfo. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D157780

--HG--
extra : moz-landing-system : lando
2022-09-21 08:02:02 +00:00
Ping Chen 7a43318c4b Bug 1762690 - Fetch headers first, then fetch body on demand in ImapClient. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D157582

--HG--
extra : moz-landing-system : lando
2022-09-20 03:59:54 +00:00
Geoff Lankow f12db265d3 Bug 1791183 - If a CardDAV server gives a 400 response, do a complete sync. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D157607

--HG--
extra : amend_source : ec64c3b40f8d58e0b8c662d54eaae54d1a9f09ae
2022-09-19 20:32:57 +10:00
Magnus Melin fa1931d4a7 Bug 1791169 - Backed out changeset 9d358a4c4bb5 for causing bug 1776823. rs=backout 2022-09-19 20:32:28 +10:00
Ping Chen b5195b31cb Bug 1762688 - Disable test_offlineCopy for imap-js. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D157577

--HG--
extra : amend_source : 23527deda120ce430b223c605996d2e820da5a66
2022-09-18 19:52:58 +10:00