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

9191 Коммитов

Автор SHA1 Сообщение Дата
Richard Marti 58284fce8d Bug 1797107 - Make the Feed and News subscribe dialog fit for the modern flexbox emulation. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D160066

--HG--
extra : moz-landing-system : lando
2022-10-24 22:35:41 +00:00
Micah Ilbery d28744d6e2 Bug 1772891 - Set correct default folder colors. r=aleca
- separate the folder colors into their own file to be imported where needed
 - convert colors.css to use hex instead of rgb as to be more easily used in javascript

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

--HG--
extra : moz-landing-system : lando
2022-10-24 22:35:41 +00:00
Magnus Melin f55117201f Bug 1796903 - TB ignores POP3 message UIDL - messages are being downloaded twice or more times - if delete from server is set. r=rnons
We're spinning the event loop in markMessages() waiting for _uidlMap to be set. But inside _loadUidlState there is internal waiting after _uidlMap is set.
Set _uidlMap late enough that there won't be any internal async functionality after it.

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

--HG--
extra : amend_source : 9e1a1fda4164fbe49968c5a0066d80804afbf8b9
2022-10-24 21:30:28 +11:00
Sean Burke 9928839e0c Bug 1685414 - switch Thunderbird OAuth2 to desktop client auth. r=darktrojan,sancus
Differential Revision: https://phabricator.services.mozilla.com/D158588

--HG--
extra : amend_source : 78ba5271eed2551d41af5ddcc68c2d947ff4bd09
2022-10-23 21:16:38 +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
Magnus Melin 22896c008b Bug 1794775 - should parse rss2 even if channel link is incomplete. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D159914

--HG--
extra : rebase_source : 01e587d150682c149da9af80ff9a70e62ac09e36
2022-10-21 20:12:06 +11:00
Magnus Melin c102447cad Bug 1796714 - follow-up to clang-format. rs=clang-format DONTBUILD 2022-10-21 11:03:23 +11:00
Magnus Melin d62b2a3312 Bug 1796714 - Port bug 1778565 to Thunderbird - nsContentUtils::SlurpFileToString removal. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D159911

--HG--
extra : rebase_source : 9096191f69dcc495fec1954afd21b6b91db0c918
2022-10-21 10:36:11 +11:00
Elizabeth Mitchell 6cdd9eb829 Bug 1683865 - Replace person icon in address book list dialogs. r=aleca
- Refactor icon to use label element instead of xul:image
- Replace icon in new list dialog and edit list dialog

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

--HG--
extra : moz-landing-system : lando
2022-10-19 21:23:53 +00: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
Rob Lemley 3ad2f683f1 Bug 1794156 - Remove mapit prefs and js. r=aleca
These prefs are not used anymore by Thunderbird (they are for Seamonkey, so they
are #ifdef wrapped in mailnews.js). The javascript is not loaded by Thunderbird,
but is still shipped.

Removing these prefs allows for cleanup of l10n.toml and should mean that the
remaining prefs will be exposed for localization in Pontoon again.

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

--HG--
extra : moz-landing-system : lando
2022-10-17 10:58:11 +00:00
Magnus Melin a93e0b2fa3 Bug 1746139 - Only allow filenames to be up to 85 ch. r=darktrojan
The common file name length limit is 255. On windows 255 chars, on linux 255 *bytes*.
In UTF-8 one char can take up up to 4 bytes, but 3 covers all normal cases.
Use a limit of 255/3 = 85 chars for file names to be safe. That will also make for more reasonable file names in general usage.

Filenames longer than 85 will turned into first 74 char ... 10 last chars.

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

--HG--
extra : rebase_source : fd89bc49487ff42f01bdf6e6fda759439f5fa8b5
extra : amend_source : ac63839a807a7841b9e48a5c27f19cb933bacbfb
2022-10-16 18:42:27 +11:00
Martin Giger 8ab1088f3b Bug 1795307 - Migrate intl/locale imports to ESM. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D159394

--HG--
extra : amend_source : f86b60db40e0094a317c6028a087d87b0e1fc2dc
2022-10-15 21:16:35 +11:00
Gene Smith 406ad0a742 Bug 1793599 - Queue initial windowless imap URLs to avoid system hang at startup. r=benc
Differential Revision: https://phabricator.services.mozilla.com/D159012

--HG--
extra : amend_source : 3949c141d4b6e2c0fbdb037c01f3de00e21456cd
2022-10-14 21:36:08 +11:00
Geoff Lankow 0f01f315a6 Bug 1791459 - Convert more test setup functions to add_setup. rs=me 2022-10-14 12:36:20 +13:00
Ping Chen 09d625ded1 Bug 1794306 - Decode ldap search filter to support non-ascii characters. r=benc
Non-ascii characters in ldap filter are percent encoded when saving, need to decode when constructing nsILDAPURL back.

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

--HG--
extra : rebase_source : 8a353937f62b2251bd4a08cc34be95d755e86ed5
2022-10-13 21:27:32 +11: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
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