releases-comm-central/mailnews
John Bieling 78e5dca01a Bug 1854779 - Support discovery of iCloud address books. r=darktrojan
I tend to officially sunset DAV-4-TbSync, and the only remaining
"feature" it supports which is not yet supported by Thunderbird is the
detection of iCloud calendars and address books.

Fixing iCloud CalDAV discovery is handled in D206253.

The reason CardDAV discovery currently fails is: iCloud returns a 207
response for `${url.origin}/.well-known/carddav`, but it does not
contain any useful information. The returned multi-response only
includes one entry, which has a 404 status. The actual good response is
retrievable from `${url.origin}`, but since we have a response already,
it is skipped.

This patch clears the response, if it has no useful information, and
that seems to be enough. One could of course also check for the 404 status
inside the multi-response. But I see no need for it. The code used in
this patch is already used a few lines earlier, probably to work around
a similar issue.

This patch has two unresolved issues (when it comes to iCloud):
- iCloud does not send a displayname and "card" is used. It should
  fall back to "contacts" or a similar name, if no displayname is found
- the original request was made to `https://icloud.com`, and the code
  is currently not smart enough to use the same provided password for
  the follow-up request to `https://p119-contacts.icloud.com` (in my
  case) and a second password prompt is shown.

I can provide iCloud access credentials.

With this patch, I can enter my Apple-ID as username using a dedicated
app password created for Thunderbird, and the server `icloud.com`, to
get my address book discovered and added.

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

--HG--
extra : moz-landing-system : lando
2024-04-15 07:47:50 +00:00
..
addrbook Bug 1854779 - Support discovery of iCloud address books. r=darktrojan 2024-04-15 07:47:50 +00:00
base Bug 1890503 - Prep: Organise EWS C++ and IDL sources in a way that is more consistent with the rest of mailnews. r=leftmostcat,ikey 2024-04-10 15:05:27 +00:00
compose Bug 1889895 - Convert all usages of bool in IDL files with boolean. rs=bustage-fix 2024-04-05 12:06:39 +02:00
db Bug 1887047 - modernize nsIMsgCopyServiceListener. r=BenC 2024-04-02 12:04:57 +02:00
export Bug 1824260 - esmify mailnews/. r=freaktechnik 2024-03-12 17:01:01 +02:00
extensions Bug 1889895 - Convert all usages of bool in IDL files with boolean. rs=bustage-fix 2024-04-05 12:06:39 +02:00
imap Bug 1887778 - Fix mismatched folder locking in nsMsgDBFolder StartNewOfflineMessage()/EndNewOfflineMessage(). r=darktrojan 2024-04-07 13:14:09 +03:00
import Bug 1887047 - modernize nsIMsgCopyServiceListener. r=BenC 2024-04-02 12:04:57 +02:00
intl Bug 1854255 - Enforce prefer-const eslint rule in the whole mailnews/ directory. r=freaktechnik 2023-10-26 10:32:05 +01:00
jsaccount Bug 1886948 - Part 3: AutoFix for ./mailnews directory. r=mkmelin 2024-03-22 19:12:04 +00:00
local Bug 1887532 - Handle gracefully failed popstate.dat writes. r=gds,Chiaki 2024-04-08 09:34:24 +00:00
mapi Bug 1887047 - modernize nsIMsgCopyServiceListener. r=BenC 2024-04-02 12:04:57 +02:00
mime Bug 1889895 - Convert all usages of bool in IDL files with boolean. rs=bustage-fix 2024-04-05 12:06:39 +02:00
news Bug 1886132 - Restore and improve functionality to open 'news' URIs. r=mkmelin 2024-04-08 21:21:51 +03:00
protocols Bug 1890503 - Prep: Organise EWS C++ and IDL sources in a way that is more consistent with the rest of mailnews. r=leftmostcat,ikey 2024-04-10 15:05:27 +00:00
search Bug 1887047 - modernize nsIMsgCopyServiceListener. r=BenC 2024-04-02 12:04:57 +02:00
test Bug 1887047 - modernize nsIMsgCopyServiceListener. r=BenC 2024-04-02 12:04:57 +02:00
jar.mn Bug 1859273 - Port bug 1857999 to Thunderbird - Stop using xml-stylesheet processing instructions for styling non-test xhtml documents. r=freaktechnik 2023-10-18 11:00:28 +01:00
mailnews.js Bug 1887334 - Fix "Open Browser With Message-ID" in header pane. r=mkmelin 2024-04-06 10:12:43 +03:00
moz.build Bug 1860333 - Add support for EWS folder hierarchy sync. r=babolivier 2024-03-29 18:45:28 +00:00
moz.configure Bug 1760623 - Remove --enable-openpgp configure option. r=kaie 2022-04-04 12:23:02 +02:00
nss-extra.symbols Bug 1865647 - Compare S/MIME signature date with message date. r=mkmelin 2023-11-21 00:05:03 +01:00