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

16 Коммитов

Автор SHA1 Сообщение Дата
Magnus Melin 443ddae2e7 Bug 1868517 - Remove deprecated trySTARTTLS and migrate any accounts using trySTARTTLS to alwaysSTARTTLS. r=leftmostcat
Very few users will have this, as it's not been shown in the UI for many many years.

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

--HG--
extra : moz-landing-system : lando
2024-09-12 20:44:48 +00:00
Geoff Lankow 6349695c40 Bug 1909424 - Fix the creation of tombstone records when accounts are removed. r=aleca
We need to clear the data from the cache, or an ordinary record will be created. This should
happen in a synchronous way to avoid possible race conditions.

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

--HG--
extra : moz-landing-system : lando
2024-07-24 08:40:08 +00:00
Geoff Lankow c77f52dc6b Bug 1888023 - Document the sync record types and process for extending them. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D210416

--HG--
extra : moz-landing-system : lando
2024-05-15 23:54:02 +00:00
Geoff Lankow 8a79abf72d Bug 1888023 - Rebuild sync engines and tests. r=mkmelin
In this version of sync, we'll only store the data that's absolutely necessary to recreate things.
Non-essential data, such as the colour of a calendar, will be added later.

I've almost completely rebuilt the code for creating and applying sync records. All records are
now cached in the user's profile so that we don't destroy information we don't understand yet
(forward compatibility). This isn't backwards-compatible, existing data will be wiped from the
server automatically because the engines' version numbers have been incremented.

I've also overhauled the tests. They are very repetitive but cover almost 100% of the code.

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

--HG--
rename : mail/services/sync/modules/engines/accounts.sys.mjs => mail/services/sync/modules/engines/servers.sys.mjs
rename : mail/services/sync/test/unit/test_account_store.js => mail/services/sync/test/unit/test_server_store.js
rename : mail/services/sync/test/unit/test_account_tracker.js => mail/services/sync/test/unit/test_server_tracker.js
extra : amend_source : 54e3f0d713980172b02585b0de36278390379b87
2024-05-15 15:51:33 +12:00
Brendan Abolivier 2382f902c6 Bug 1882574 - Enable outgoing message servers other than SMTP. r=leftmostcat
This patch generalises the existing nsISmtpService and nsISmtpServer interfaces
to remove assumptions that the sending mail server is always SMTP. In this new
architecture, the protocol-specific settings are set in a separate,
protocol-specific XPIDL interface that is used to configure the sending server.

I have also removed some attributes and a method from these interfaces, as they
either were not needed across the XPCOM boundary, or were not used at all.

Intentionally left out of scope for this patch:

  * Migrating (from .properties to Fluent) and updating some l10 strings to not
    mention SMTP explicitly.
  * Conditionally defining the outgoing protocol in the account setup code.
  * Conditionally showing a server's details and edit form in the account
    settings code.
  * Migrating prefs to not use "smtp" in their names if the server doesn't
    actually use SMTP.

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

--HG--
rename : mailnews/compose/public/nsISmtpServer.idl => mailnews/compose/public/nsIMsgOutgoingServer.idl
rename : mailnews/compose/public/nsISmtpService.idl => mailnews/compose/public/nsIMsgOutgoingServerService.idl
rename : mailnews/compose/src/SmtpService.sys.mjs => mailnews/compose/src/OutgoingServerService.sys.mjs
rename : mailnews/compose/test/unit/test_nsSmtpService1.js => mailnews/compose/test/unit/test_nsMsgOutgoingServerService1.js
extra : moz-landing-system : lando
2024-05-09 16:33:15 +00:00
John Bieling 57edc3dbaf Bug 1886948 - Part 4: AutoFix for ./mail directory. r=mkmelin
Using D194522 for auto-fixing unused variables.

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

--HG--
extra : moz-landing-system : lando
2024-03-22 19:12:05 +00:00
Magnus Melin 2615cd2059 Bug 1824260 - remaining esmification of comm-central. r=john.bieling
Differential Revision: https://phabricator.services.mozilla.com/D204766

--HG--
extra : rebase_source : b4dd77adbe10cdafdcc28bbe14a499a1423ab48d
extra : amend_source : 522c351546a787d91f9a43cddb0e1eee114a4d0f
2024-03-21 19:44:13 +02:00
Magnus Melin f350675159 Bug 1865068 - Improve nsIMsgAccountManager idl. r=darktrojan
Fix string type and correct method name capitalization.

```
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/FindServerIndex(/findServerIndex(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/FindAccountForServer(/findAccountForServer(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/WriteToFolderCache(/writeToFolderCache(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/CleanupOnExit(/cleanupOnExit(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/SetFolderDoingEmptyTrash(/setFolderDoingEmptyTrash(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/GetEmptyTrashInProgress(/getEmptyTrashInProgress(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/SetFolderDoingCleanupInbox(/setFolderDoingCleanupInbox(/g' {} \;
find . -type f -not -path "*.hg*" -not -name "*.cpp" -not -name "*.h" -exec sed -i 's/GetCleanupInboxInProgress(/getCleanupInboxInProgress(/g' {} \;
```

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

--HG--
extra : moz-landing-system : lando
2023-11-20 09:17:46 +00:00
Alessandro Castellani 7d101fa3a9 Bug 1854255 - Enforce prefer-const eslint rule in the whole mail/ directory. r=john.bieling
Differential Revision: https://phabricator.services.mozilla.com/D192040

--HG--
extra : moz-landing-system : lando
2023-10-28 01:16:36 +00:00
Martin Giger 250b7b346b Bug 1860082 - Catch up on remaining module imports with mozilla-central ES module conversion. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D191455

--HG--
extra : amend_source : 4b62de902b3273a2d7320266c81e3fc582370265
extra : histedit_source : e5d6f14765bb4ff950a2885b61bfb1e3c8fe2c8a
2023-10-24 17:37:01 +01:00
Sean Burke 151cb9e647 Bug 1847647 - ESMify calendar utility modules. r=aleca
Differential Revision: https://phabricator.services.mozilla.com/D185875

--HG--
rename : calendar/base/modules/calUtils.jsm => calendar/base/modules/calUtils.sys.mjs
rename : calendar/base/modules/utils/calACLUtils.jsm => calendar/base/modules/utils/calACLUtils.sys.mjs
rename : calendar/base/modules/utils/calAlarmUtils.jsm => calendar/base/modules/utils/calAlarmUtils.sys.mjs
rename : calendar/base/modules/utils/calAuthUtils.jsm => calendar/base/modules/utils/calAuthUtils.sys.mjs
rename : calendar/base/modules/utils/calCategoryUtils.jsm => calendar/base/modules/utils/calCategoryUtils.sys.mjs
rename : calendar/base/modules/utils/calDataUtils.jsm => calendar/base/modules/utils/calDataUtils.sys.mjs
rename : calendar/base/modules/utils/calDateTimeFormatter.jsm => calendar/base/modules/utils/calDateTimeFormatter.sys.mjs
rename : calendar/base/modules/utils/calDateTimeUtils.jsm => calendar/base/modules/utils/calDateTimeUtils.sys.mjs
rename : calendar/base/modules/utils/calEmailUtils.jsm => calendar/base/modules/utils/calEmailUtils.sys.mjs
rename : calendar/base/modules/utils/calInvitationUtils.jsm => calendar/base/modules/utils/calInvitationUtils.sys.mjs
rename : calendar/base/modules/utils/calItemUtils.jsm => calendar/base/modules/utils/calItemUtils.sys.mjs
rename : calendar/base/modules/utils/calIteratorUtils.jsm => calendar/base/modules/utils/calIteratorUtils.sys.mjs
rename : calendar/base/modules/utils/calItipUtils.jsm => calendar/base/modules/utils/calItipUtils.sys.mjs
rename : calendar/base/modules/utils/calL10NUtils.jsm => calendar/base/modules/utils/calL10NUtils.sys.mjs
rename : calendar/base/modules/utils/calPrintUtils.jsm => calendar/base/modules/utils/calPrintUtils.sys.mjs
rename : calendar/base/modules/utils/calProviderDetectionUtils.jsm => calendar/base/modules/utils/calProviderDetectionUtils.sys.mjs
rename : calendar/base/modules/utils/calProviderUtils.jsm => calendar/base/modules/utils/calProviderUtils.sys.mjs
rename : calendar/base/modules/utils/calUnifinderUtils.jsm => calendar/base/modules/utils/calUnifinderUtils.sys.mjs
rename : calendar/base/modules/utils/calViewUtils.jsm => calendar/base/modules/utils/calViewUtils.sys.mjs
rename : calendar/base/modules/utils/calWindowUtils.jsm => calendar/base/modules/utils/calWindowUtils.sys.mjs
rename : calendar/base/modules/utils/calXMLUtils.jsm => calendar/base/modules/utils/calXMLUtils.sys.mjs
extra : amend_source : c2e9643e8c3f953786dd86e61743c299214d5c48
2023-08-15 11:08:52 +01:00
Rob Lemley 5af325a42f Bug 1833949 - Port bug 1826062: Automatic reformatting for Prettier 2.8.8. r=mkmelin
Differential Revision: https://phabricator.services.mozilla.com/D178538

--HG--
extra : amend_source : 1f4ecb957a2e2bf2bf6353b9ef43269d53ebab42
2023-05-21 15:05:52 +10:00
Rob Lemley 58f2dc08f0 Bug 1833949 - Port bug 1826062: Automatic reformatting for Prettier 2.0.5. r=leftmostcat
Differential Revision: https://phabricator.services.mozilla.com/D178537

--HG--
extra : amend_source : 4c543c3aeea4bb0a59407f358166956d9026e6a2
2023-05-21 15:05:24 +10:00
Martin Giger 95169d2fa4 Bug 1816477 - Port bug 1814931: convert services/sync to ES modules. r=darktrojan
Differential Revision: https://phabricator.services.mozilla.com/D169654

--HG--
rename : mail/services/sync/accounts.js => mail/services/sync/modules/engines/accounts.sys.mjs
rename : mail/services/sync/addressBooks.js => mail/services/sync/modules/engines/addressBooks.sys.mjs
rename : mail/services/sync/calendars.js => mail/services/sync/modules/engines/calendars.sys.mjs
rename : mail/services/sync/identities.js => mail/services/sync/modules/engines/identities.sys.mjs
2023-02-14 12:29:45 +00:00
Magnus Melin 4f32622654 Bug 1808162 - Bug 1798018 - Migrate toolkit/modules/tests to ES modules. r=freaktechnik
Differential Revision: https://phabricator.services.mozilla.com/D165785

--HG--
extra : rebase_source : 42278dfecf9df01787c9f6ce93654d24a7a85bed
2023-01-04 09:17:27 +11:00
Geoff Lankow 55c6b3fdf1 Bug 1793378 - Add Sync engines, to Daily only. r=aleca,sancus
This is the MVP for Sync in Thunderbird. It should only be accessible on the Daily channel while we test and develop further.

For now, it connects to the Firefox Accounts and Sync staging servers.

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

--HG--
extra : rebase_source : d2ee4743513766e4514d5192b83f66c5253aae49
extra : amend_source : 7eedfe0f8da2fb7c05facb7108d24f1bd2631e04
2022-07-15 21:47:14 +12:00