From b915462f2d6d977477c067db82395c6c37287712 Mon Sep 17 00:00:00 2001 From: Oliver Drobnik Date: Tue, 6 Oct 2026 20:45:29 +0200 Subject: [PATCH] Adopt SwiftMail 1.14 so search works on Gmail and iCloud (#45) SwiftMail 1.14.0 sends the ESEARCH PARTIAL option only when the server advertises it. Gmail and iCloud do not, and rejected every post search with BAD. Co-Authored-By: Claude Sonnet 5.5 --- Package.resolved | 6 +++--- Package.swift | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Package.resolved b/Package.resolved index 4d54e82..e0cdeb1 100644 --- a/Package.resolved +++ b/Package.resolved @@ -1,5 +1,5 @@ { - "originHash" : "92c067b829121e289337e7c621ce6f8df141980c81af5c141578dc7127ef7190", + "originHash" : "f77697d134a214d5d026a5881ee253cf58a95d342564ebb148996f5f33fb72b1", "pins" : [ { "identity" : "jsonfoundation", @@ -258,8 +258,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/Cocoanetics/SwiftMail", "state" : { - "revision" : "500a19f95c5ee3d3c7b8e81b615e1d66842f9ec4", - "version" : "1.13.0" + "revision" : "164ac3ad09a54b4bb2a2be61fc0db520ef29e7aa", + "version" : "1.14.0" } }, { diff --git a/Package.swift b/Package.swift index a809ed8..896ecf5 100644 --- a/Package.swift +++ b/Package.swift @@ -49,7 +49,9 @@ let package = Package( // them one way for every source (IMAP ENVELOPE, EML, .msg): names are // quoted only where needed and `from` lists every From mailbox. The // floor keeps Post's address output identical across resolutions. - .package(url: "https://github.com/Cocoanetics/SwiftMail", .upToNextMajor(from: "1.13.0")), + // 1.14.0 sends the ESEARCH PARTIAL option only to servers that advertise + // it, so `post search` works on Gmail and iCloud. + .package(url: "https://github.com/Cocoanetics/SwiftMail", .upToNextMajor(from: "1.14.0")), // 2.2.0 replaced the revision-pinned ZIPFoundation with tagged // swift-archive, so SwiftText is a normal version requirement again. // It declares swift-tools-version 6.3, which sets Post's toolchain