Build Information
Successful build of SwiftMail, reference 1.6.3 (90ce57), with Swift 6.1 for macOS (SPM) on 1 May 2026 12:04:46 UTC.
Swift 6 data race errors: 5
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCapturesBuild Log
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1256/1266] Compiling SwiftMail BodyStructure+CustomStringConvertible.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1257/1266] Compiling SwiftMail Data+Decoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1258/1266] Compiling SwiftMail ExtendedSearchResult.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1259/1266] Compiling SwiftMail Flag+Equatable.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1260/1266] Compiling SwiftMail Flag.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:391:23: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
389 | private func ensureAuthenticated() async throws {
390 | if !connection.isAuthenticated {
391 | try await authenticateOnConnection(connection)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
392 | }
393 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:41:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
39 | /// Connect (or reconnect) the underlying transport and ensure authentication.
40 | public func connect() async throws {
41 | try await connection.connect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
42 | try await ensureAuthenticated()
43 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:47:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
45 | /// Disconnect this named connection.
46 | public func disconnect() async throws {
47 | try await connection.disconnect()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
48 | }
49 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:53:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
51 | @discardableResult
52 | public func fetchCapabilities() async throws -> [Capability] {
53 | let result = try await connection.fetchCapabilities()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
54 | lastActivity = Date()
55 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:398:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
396 | private func executeCommand<CommandType: IMAPCommand>(_ command: CommandType) async throws -> CommandType.ResultType {
397 | try await ensureAuthenticated()
398 | let result = try await connection.executeCommand(command)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
399 | lastActivity = Date()
400 | return result
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:93:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
91 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
92 | try await ensureAuthenticated()
93 | let stream = try await connection.idle()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
94 | lastActivity = Date()
95 | return stream
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:100:30: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
98 | /// Terminate an active IDLE command with DONE.
99 | public func done() async throws {
100 | try await connection.done()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
101 | lastActivity = Date()
102 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:107:43: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
105 | public func noop() async throws -> [IMAPServerEvent] {
106 | try await ensureAuthenticated()
107 | let events = try await connection.noop()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
108 | lastActivity = Date()
109 | return events
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:133:44: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
131 | ) async throws -> [UID: [(section: Section, data: Data)]] {
132 | try await ensureAuthenticated()
133 | let results = try await connection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
134 | lastActivity = Date()
135 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPNamedConnection.swift:375:37: warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
373 | public func fetchNamespaces() async throws -> NamespaceResponse {
374 | try await ensureAuthenticated()
375 | return try await connection.fetchNamespaces()
| |- warning: sending 'self.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
376 | }
377 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:175:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
173 | */
174 | public func connect() async throws {
175 | try await primaryConnection.connect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
176 | }
177 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:189:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
187 | */
188 | @discardableResult public func fetchCapabilities() async throws -> [Capability] {
189 | try await primaryConnection.fetchCapabilities()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
190 | }
191 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:225:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
223 | */
224 | public func login(username: String, password: String) async throws {
225 | try await primaryConnection.login(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
226 | authentication = .login(username: username, password: password)
227 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:242:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
240 | /// or ``IMAPError.authFailed`` when authentication fails.
241 | public func authenticatePlain(username: String, password: String) async throws {
242 | try await primaryConnection.authenticatePlain(username: username, password: password)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
243 | authentication = .plain(username: username, password: password)
244 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:253:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
251 | /// - Throws: ``IMAPError.unsupportedAuthMechanism`` if the server does not advertise XOAUTH2 or ``IMAPError.authFailed`` when authentication fails.
252 | public func authenticateXOAUTH2(email: String, accessToken: String) async throws {
253 | try await primaryConnection.authenticateXOAUTH2(email: email, accessToken: accessToken)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
254 | authentication = .xoauth2(email: email, accessTokenProvider: { accessToken })
255 | namespaces = primaryConnection.namespacesSnapshot
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1598:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1596 | if let authentication, !primaryConnection.isAuthenticated {
1597 | logger.info("Primary connection not authenticated; re-authenticating before command")
1598 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
1599 | namespaces = primaryConnection.namespacesSnapshot
1600 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'command' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'command' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:1602:44: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
1600 | }
1601 |
1602 | return try await primaryConnection.executeCommand(command)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
1603 | }
1604 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:415:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
413 |
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
416 | try? await entry.connection.disconnect()
417 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:416:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
414 | for entry in idleEntries.values {
415 | try? await entry.connection.done()
416 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
417 | }
418 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:423:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
421 |
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
424 | try? await entry.connection.disconnect()
425 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:424:41: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
422 | for entry in namedEntries.values {
423 | try? await entry.connection.done()
424 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
425 | }
426 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:427:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
425 | }
426 |
427 | try? await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
428 | try await primaryConnection.disconnect()
429 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:428:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
426 |
427 | try? await primaryConnection.done()
428 | try await primaryConnection.disconnect()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
429 |
430 | namespaces = nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:320:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
318 |
319 | do {
320 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
321 | try await authentication.authenticate(on: connection)
322 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:321:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
319 | do {
320 | try await connection.connect()
321 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
322 |
323 | let handle = IMAPNamedConnection(
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:323:26: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
321 | try await authentication.authenticate(on: connection)
322 |
323 | let handle = IMAPNamedConnection(
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to actor-isolated callee risks causing data races between actor-isolated and 'self'-isolated uses
324 | name: normalizedName,
325 | connection: connection,
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:334:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
332 | return handle
333 | } catch {
334 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
335 | throw error
336 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:406:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
404 | guard let entry = idleConnections.removeValue(forKey: id) else { return }
405 |
406 | try? await entry.connection.done()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
407 | try? await entry.connection.disconnect()
408 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:407:37: warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
405 |
406 | try? await entry.connection.done()
407 | try? await entry.connection.disconnect()
| |- warning: sending 'entry.connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'entry.connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
408 | }
409 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:531:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
529 | /// - Throws: IMAPError if IDLE is not supported or already active
530 | public func idle() async throws -> AsyncStream<IMAPServerEvent> {
531 | try await primaryConnection.idle()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
532 | }
533 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:566:34: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
564 |
565 | do {
566 | try await connection.connect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:567:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
565 | do {
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
569 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:568:38: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
566 | try await connection.connect()
567 | try await authentication.authenticate(on: connection)
568 | _ = try await connection.executeCommand(SelectMailboxCommand(mailboxName: resolvedMailbox))
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
569 |
570 | var continuationRef: AsyncStream<IMAPServerEvent>.Continuation!
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:579:43: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
577 | let serverPort = self.port
578 |
579 | let cycleTask = Task.detached { [idleGroup] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
580 | enum CycleTrigger: String {
581 | case noop
:
588 | }
589 |
590 | let cycleLoggerLabel = "com.cocoanetics.SwiftMail.IdleCycle.\(connection.identifier)"
| `- note: closure captures 'connection' which is accessible to 'self'-isolated code
591 | var cycleLogger = Logger(label: cycleLoggerLabel)
592 | cycleLogger[metadataKey: "imap.host"] = .string(serverHost)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:832:35: warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
830 | } catch {
831 | idleConnections[sessionID] = nil
832 | try? await connection.disconnect()
| |- warning: sending 'connection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'connection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
833 | try? await idleGroup.shutdownGracefully()
834 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:859:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
857 | /// (e.g., by sending a BYE response) or if automatic cleanup has already occurred.
858 | public func done() async throws {
859 | try await primaryConnection.done()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
860 | }
861 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:864:37: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
862 | /// Send a NOOP command and collect unsolicited responses.
863 | public func noop() async throws -> [IMAPServerEvent] {
864 | try await primaryConnection.noop()
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
865 | }
866 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:945:38: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
943 | if let authentication, !primaryConnection.isAuthenticated {
944 | logger.info("Primary connection not authenticated; re-authenticating before pipelined fetch")
945 | try await authentication.authenticate(on: primaryConnection)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated instance method 'authenticate(on:)' risks causing data races between nonisolated and 'self'-isolated uses
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftMail/IMAP/IMAPServer.swift:947:51: warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
945 | try await authentication.authenticate(on: primaryConnection)
946 | }
947 | let results = try await primaryConnection.executePipelinedFetchParts(requests: parts)
| |- warning: sending 'self.primaryConnection' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'self'-isolated 'self.primaryConnection' to nonisolated callee risks causing data races between nonisolated and 'self'-isolated uses
948 | var grouped: [UID: [(section: Section, data: Data)]] = [:]
949 | for result in results {
[1261/1273] Compiling SwiftSMTPCLI OSLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Demos/SwiftSMTPCLI/OSLogHandler.swift:16:8: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
14 |
15 | // Custom LogHandler that bridges Swift Logging to OSLog
16 | struct OSLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
17 | let label: String
18 | let log: OSLog
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 | ///
144 | /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 | func log(event: LogEvent)
| `- note: requirement 'log(event:)' declared here
146 |
147 | /// Please do _not_ implement this method when you create a `LogHandler` implementation.
:
254 | /// Implement ``log(event:)`` in your ``LogHandler`` instead.
255 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 | public func log(event: LogEvent) {
| `- note: 'log(event:)' declared here
257 | self.log(
258 | level: event.level,
[1262/1273] Compiling SwiftSMTPCLI Email+Demo.swift
[1263/1273] Compiling SwiftSMTPCLI main.swift
[1264/1273] Emitting module SwiftSMTPCLI
/Users/admin/builder/spi-builder-workspace/Demos/SwiftSMTPCLI/OSLogHandler.swift:16:8: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
14 |
15 | // Custom LogHandler that bridges Swift Logging to OSLog
16 | struct OSLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
17 | let label: String
18 | let log: OSLog
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 | ///
144 | /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 | func log(event: LogEvent)
| `- note: requirement 'log(event:)' declared here
146 |
147 | /// Please do _not_ implement this method when you create a `LogHandler` implementation.
:
254 | /// Implement ``log(event:)`` in your ``LogHandler`` instead.
255 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 | public func log(event: LogEvent) {
| `- note: 'log(event:)' declared here
257 | self.log(
258 | level: event.level,
[1264/1273] Write Objects.LinkFileList
[1266/1273] Emitting module SwiftIMAPCLI
/Users/admin/builder/spi-builder-workspace/Demos/SwiftIMAPCLI/OSLogHandler.swift:16:8: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
14 |
15 | // Custom LogHandler that bridges Swift Logging to OSLog
16 | struct OSLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
17 | let label: String
18 | let log: OSLog
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 | ///
144 | /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 | func log(event: LogEvent)
| `- note: requirement 'log(event:)' declared here
146 |
147 | /// Please do _not_ implement this method when you create a `LogHandler` implementation.
:
254 | /// Implement ``log(event:)`` in your ``LogHandler`` instead.
255 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 | public func log(event: LogEvent) {
| `- note: 'log(event:)' declared here
257 | self.log(
258 | level: event.level,
[1267/1273] Compiling SwiftIMAPCLI OSLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Demos/SwiftIMAPCLI/OSLogHandler.swift:16:8: warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
14 |
15 | // Custom LogHandler that bridges Swift Logging to OSLog
16 | struct OSLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(event:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
17 | let label: String
18 | let log: OSLog
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:256:17: note: 'log(event:)' declared here
143 | ///
144 | /// - Parameter event: The log event containing the level, message, metadata, and source location.
145 | func log(event: LogEvent)
| `- note: requirement 'log(event:)' declared here
146 |
147 | /// Please do _not_ implement this method when you create a `LogHandler` implementation.
:
254 | /// Implement ``log(event:)`` in your ``LogHandler`` instead.
255 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
256 | public func log(event: LogEvent) {
| `- note: 'log(event:)' declared here
257 | self.log(
258 | level: event.level,
[1268/1273] Compiling SwiftIMAPCLI main.swift
/Users/admin/builder/spi-builder-workspace/Demos/SwiftIMAPCLI/main.swift:13:10: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
11 | func runAsyncBlock(_ block: @escaping () async throws -> Void) {
12 | let semaphore = DispatchSemaphore(value: 0)
13 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
14 | do {
15 | try await block()
| `- note: closure captures 'block' which is accessible to code in the current task
16 | } catch {
17 | print("Error: \(error)")
[1268/1273] Write Objects.LinkFileList
[1269/1273] Linking SwiftSMTPCLI
[1270/1273] Applying SwiftSMTPCLI
[1271/1273] Linking SwiftIMAPCLI
[1272/1273] Applying SwiftIMAPCLI
Build complete! (82.72s)
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-testing
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/apple/swift-nio from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/odrobnik/swift-nio-imap
Fetching https://github.com/apple/swift-nio-ssl from cache
[1/13913] Fetching swift-nio-imap
[141/16200] Fetching swift-nio-imap, swift-docc-plugin
[14143/53946] Fetching swift-nio-imap, swift-docc-plugin, swift-testing
Fetched https://github.com/odrobnik/swift-nio-imap from cache (2.48s)
Fetching https://github.com/apple/swift-log.git from cache
[4388/40033] Fetching swift-docc-plugin, swift-testing
Fetched https://github.com/apple/swift-nio-ssl from cache (2.51s)
Fetching https://github.com/thebarndog/swift-dotenv
Fetched https://github.com/apple/swift-nio from cache (2.61s)
[11560/40504] Fetching swift-docc-plugin, swift-testing, swift-dotenv
Fetched https://github.com/thebarndog/swift-dotenv from cache (0.70s)
[14956/40033] Fetching swift-docc-plugin, swift-testing
Fetched https://github.com/apple/swift-log.git from cache (1.09s)
Fetched https://github.com/apple/swift-collections.git from cache (7.28s)
Fetched https://github.com/apple/swift-docc-plugin from cache (7.80s)
Fetched https://github.com/apple/swift-testing from cache (7.80s)
Fetched https://github.com/apple/swift-argument-parser from cache (7.84s)
Computing version for https://github.com/apple/swift-testing
Computed https://github.com/apple/swift-testing at 0.12.0 (8.47s)
Fetching https://github.com/swiftlang/swift-syntax.git from cache
Fetched https://github.com/swiftlang/swift-syntax.git from cache (1.85s)
Computing version for https://github.com/thebarndog/swift-dotenv
Computed https://github.com/thebarndog/swift-dotenv at 2.1.0 (2.39s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.52s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (3.34s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.79s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.50s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.62s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.50s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.37.0 (0.50s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.99.0 (0.68s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.66s)
Fetched https://github.com/apple/swift-system.git from cache (1.01s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.55s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.53s)
Computing version for https://github.com/odrobnik/swift-nio-imap
Computed https://github.com/odrobnik/swift-nio-imap at 0.3.0-pre (0.52s)
Fetching https://github.com/apple/swift-se0270-range-set.git
[1/76] Fetching swift-se0270-range-set
Fetched https://github.com/apple/swift-se0270-range-set.git from cache (0.58s)
Computing version for https://github.com/apple/swift-se0270-range-set.git
Computed https://github.com/apple/swift-se0270-range-set.git at 1.0.1 (1.24s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 600.0.1 (0.73s)
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.99.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 600.0.1
Creating working copy for https://github.com/apple/swift-nio-ssl
Working copy of https://github.com/apple/swift-nio-ssl resolved at 2.37.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Creating working copy for https://github.com/apple/swift-se0270-range-set.git
Working copy of https://github.com/apple/swift-se0270-range-set.git resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-testing
Working copy of https://github.com/apple/swift-testing resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/thebarndog/swift-dotenv
Working copy of https://github.com/thebarndog/swift-dotenv resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/odrobnik/swift-nio-imap
Working copy of https://github.com/odrobnik/swift-nio-imap resolved at 0.3.0-pre
Build complete.
{
"dependencies" : [
{
"identity" : "swift-dotenv",
"requirement" : {
"range" : [
{
"lower_bound" : "2.1.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/thebarndog/swift-dotenv"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio"
},
{
"identity" : "swift-nio-imap",
"requirement" : {
"exact" : [
"0.3.0-pre"
]
},
"type" : "sourceControl",
"url" : "https://github.com/odrobnik/swift-nio-imap"
},
{
"identity" : "swift-nio-ssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-ssl"
},
{
"identity" : "swift-collections",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-collections.git"
},
{
"identity" : "swift-testing",
"requirement" : {
"exact" : [
"0.12.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-testing"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "SwiftMail",
"name" : "SwiftMail",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "maccatalyst",
"version" : "14.0"
}
],
"products" : [
{
"name" : "SwiftMail",
"targets" : [
"SwiftMail"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftIMAPCLI",
"targets" : [
"SwiftIMAPCLI"
],
"type" : {
"executable" : null
}
},
{
"name" : "SwiftSMTPCLI",
"targets" : [
"SwiftSMTPCLI"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftSMTPTests",
"module_type" : "SwiftTarget",
"name" : "SwiftSMTPTests",
"path" : "Tests/SwiftSMTPTests",
"product_dependencies" : [
"Testing"
],
"sources" : [
"SMTPTests.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "test"
},
{
"c99name" : "SwiftSMTPCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftSMTPCLI",
"path" : "Demos/SwiftSMTPCLI",
"product_dependencies" : [
"SwiftDotenv"
],
"product_memberships" : [
"SwiftSMTPCLI"
],
"sources" : [
"Email+Demo.swift",
"OSLogHandler.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "executable"
},
{
"c99name" : "SwiftMailCoreTests",
"module_type" : "SwiftTarget",
"name" : "SwiftMailCoreTests",
"path" : "Tests/SwiftMailCoreTests",
"product_dependencies" : [
"Testing"
],
"sources" : [
"EmailAddressTests.swift",
"String+EmailTests.swift",
"String+HostnameTests.swift",
"String+MIMETests.swift",
"String+RedactingTests.swift",
"String+UtilitiesTests.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "test"
},
{
"c99name" : "SwiftMail",
"module_type" : "SwiftTarget",
"name" : "SwiftMail",
"path" : "Sources/SwiftMail",
"product_dependencies" : [
"NIO",
"NIOSSL",
"Logging",
"NIOIMAP",
"OrderedCollections"
],
"product_memberships" : [
"SwiftMail",
"SwiftIMAPCLI",
"SwiftSMTPCLI"
],
"sources" : [
"Core/Commands/BaseMailCommandHandler.swift",
"Core/Commands/MailCommand.swift",
"Core/Logging/MailLogger.swift",
"Core/Models/Attachment.swift",
"Core/Models/Email.swift",
"Core/Models/EmailAddress.swift",
"Core/Models/MessageID.swift",
"Extensions/Email+Content.swift",
"Extensions/Email+CustomDebugStringConvertible.swift",
"Extensions/Email+Message.swift",
"Extensions/Email+StringInitializers.swift",
"Extensions/EmailAddress+StringConversion.swift",
"Extensions/Message+Email.swift",
"Extensions/String+Charset.swift",
"Extensions/String+Email.swift",
"Extensions/String+FileSystem.swift",
"Extensions/String+Hostname.swift",
"Extensions/String+MIME.swift",
"Extensions/String+QuotedPrintable.swift",
"Extensions/String+Redacting.swift",
"Extensions/String+SafeContent.swift",
"IMAP/Capability+AppendLimit.swift",
"IMAP/Capability+Sort.swift",
"IMAP/Extensions/ByteBuffer+StringValue.swift",
"IMAP/Extensions/Data+Utilities.swift",
"IMAP/Extensions/Date+Formatting.swift",
"IMAP/Extensions/Int+Utilities.swift",
"IMAP/Extensions/String+SequenceSet.swift",
"IMAP/IMAP/Commands/AppendCommand.swift",
"IMAP/IMAP/Commands/AuthenticationCommands.swift",
"IMAP/IMAP/Commands/CloseCommand.swift",
"IMAP/IMAP/Commands/CreateMailboxCommand.swift",
"IMAP/IMAP/Commands/ExtendedSearchCommand.swift",
"IMAP/IMAP/Commands/FetchCommands.swift",
"IMAP/IMAP/Commands/IDCommand.swift",
"IMAP/IMAP/Commands/IMAPCommand.swift",
"IMAP/IMAP/Commands/IMAPStartTLSCommand.swift",
"IMAP/IMAP/Commands/IdleCommand.swift",
"IMAP/IMAP/Commands/ListCommand.swift",
"IMAP/IMAP/Commands/MoveCommand.swift",
"IMAP/IMAP/Commands/NamespaceCommand.swift",
"IMAP/IMAP/Commands/NoopCommand.swift",
"IMAP/IMAP/Commands/QuotaCommand.swift",
"IMAP/IMAP/Commands/SearchCommand.swift",
"IMAP/IMAP/Commands/SelectMailboxCommand.swift",
"IMAP/IMAP/Commands/ServerCommands.swift",
"IMAP/IMAP/Commands/StatusCommand.swift",
"IMAP/IMAP/Commands/UnselectCommand.swift",
"IMAP/IMAP/Handler/AppendHandler.swift",
"IMAP/IMAP/Handler/CloseHandler.swift",
"IMAP/IMAP/Handler/CommandHandler.swift",
"IMAP/IMAP/Handler/CreateMailboxHandler.swift",
"IMAP/IMAP/Handler/ExtendedSearchHandler.swift",
"IMAP/IMAP/Handler/FetchMessageInfoHandler.swift",
"IMAP/IMAP/Handler/FetchPartHandler.swift",
"IMAP/IMAP/Handler/FetchStructureHandler.swift",
"IMAP/IMAP/Handler/IDHandler.swift",
"IMAP/IMAP/Handler/IMAPGreetingHandler.swift",
"IMAP/IMAP/Handler/IMAPStartTLSHandler.swift",
"IMAP/IMAP/Handler/IdleHandler.swift",
"IMAP/IMAP/Handler/ListCommandHandler.swift",
"IMAP/IMAP/Handler/LoginHandler.swift",
"IMAP/IMAP/Handler/LogoutHandler.swift",
"IMAP/IMAP/Handler/MoveHandler.swift",
"IMAP/IMAP/Handler/NamespaceHandler.swift",
"IMAP/IMAP/Handler/NoopHandler.swift",
"IMAP/IMAP/Handler/PipelinedCommandDispatcher.swift",
"IMAP/IMAP/Handler/PipelinedFetchPartHandler.swift",
"IMAP/IMAP/Handler/PlainAuthenticationHandler.swift",
"IMAP/IMAP/Handler/QuotaHandler.swift",
"IMAP/IMAP/Handler/SearchHandler.swift",
"IMAP/IMAP/Handler/SelectHandler.swift",
"IMAP/IMAP/Handler/ServerHandlers.swift",
"IMAP/IMAP/Handler/StatusHandler.swift",
"IMAP/IMAP/Handler/UnselectHandler.swift",
"IMAP/IMAP/Handler/UntaggedResponseBuffer.swift",
"IMAP/IMAP/Handler/XOAUTH2AuthenticationHandler.swift",
"IMAP/IMAP/IMAPLogger.swift",
"IMAP/IMAPCommandQueue.swift",
"IMAP/IMAPConnection.swift",
"IMAP/IMAPError.swift",
"IMAP/IMAPIdleConfiguration.swift",
"IMAP/IMAPIdleSession.swift",
"IMAP/IMAPNamedConnection.swift",
"IMAP/IMAPProtocolErrors.swift",
"IMAP/IMAPServer.swift",
"IMAP/Models/AppendResult.swift",
"IMAP/Models/BodyStructure+CustomStringConvertible.swift",
"IMAP/Models/Data+Decoding.swift",
"IMAP/Models/ExtendedSearchResult.swift",
"IMAP/Models/Flag+Equatable.swift",
"IMAP/Models/Flag.swift",
"IMAP/Models/Header+CustomStringConvertible.swift",
"IMAP/Models/IMAPMessageAttribute.swift",
"IMAP/Models/IMAPServerEvent.swift",
"IMAP/Models/Identification.swift",
"IMAP/Models/MailFlagColor.swift",
"IMAP/Models/Mailbox.swift",
"IMAP/Models/MailboxStatus.swift",
"IMAP/Models/Message+CustomDebugStringConvertible.swift",
"IMAP/Models/Message+CustomStringConvertible.swift",
"IMAP/Models/Message.swift",
"IMAP/Models/MessageIdentifierSet.swift",
"IMAP/Models/MessageInfo.swift",
"IMAP/Models/MessagePart+BodyStructure.swift",
"IMAP/Models/MessagePart+CustomStringConvertible.swift",
"IMAP/Models/MessagePart.swift",
"IMAP/Models/Namespace.swift",
"IMAP/Models/Quota.swift",
"IMAP/Models/SearchCriteria.swift",
"IMAP/Models/Section.swift",
"IMAP/Models/SortCriterion.swift",
"IMAP/Models/StoreData.swift",
"IMAP/Models/UIDValidity.swift",
"IMAP/Protocols/IMAPCommandHandler.swift",
"IMAP/Protocols/IMAPMailCommand.swift",
"IMAP/UndefinedFolderError.swift",
"MIME/EMLParser.swift",
"MIME/EMLSerializer.swift",
"SMTP/Commands/AuthCommand.swift",
"SMTP/Commands/DataCommand.swift",
"SMTP/Commands/EHLOCommand.swift",
"SMTP/Commands/LoginAuthCommand.swift",
"SMTP/Commands/MailFromCommand.swift",
"SMTP/Commands/PlainAuthCommand.swift",
"SMTP/Commands/QuitCommand.swift",
"SMTP/Commands/RcptToCommand.swift",
"SMTP/Commands/SendContentCommand.swift",
"SMTP/Commands/StartTLSCommand.swift",
"SMTP/Commands/XOAuth2AuthCommand.swift",
"SMTP/Core/SMTPResponse.swift",
"SMTP/Core/SMTPResponseCode.swift",
"SMTP/Handlers/AuthHandler.swift",
"SMTP/Handlers/AuthHandlerStateMachine.swift",
"SMTP/Handlers/BaseSMTPHandler.swift",
"SMTP/Handlers/DataHandler.swift",
"SMTP/Handlers/EHLOHandler.swift",
"SMTP/Handlers/LoginAuthHandler.swift",
"SMTP/Handlers/MailFromHandler.swift",
"SMTP/Handlers/PlainAuthHandler.swift",
"SMTP/Handlers/QuitHandler.swift",
"SMTP/Handlers/RcptToHandler.swift",
"SMTP/Handlers/SMTPCommandHandler.swift",
"SMTP/Handlers/SMTPGreetingHandler.swift",
"SMTP/Handlers/SMTPResponseHandler.swift",
"SMTP/Handlers/SendContentHandler.swift",
"SMTP/Handlers/StartTLSHandler.swift",
"SMTP/Protocols/SMTPCommand.swift",
"SMTP/Protocols/SMTPMailCommand.swift",
"SMTP/SMTPError.swift",
"SMTP/SMTPLogger.swift",
"SMTP/SMTPServer.swift"
],
"type" : "library"
},
{
"c99name" : "SwiftIMAPTests",
"module_type" : "SwiftTarget",
"name" : "SwiftIMAPTests",
"path" : "Tests/SwiftIMAPTests",
"product_dependencies" : [
"Testing",
"NIO",
"NIOEmbedded",
"NIOIMAP",
"Logging"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Tests/SwiftIMAPTests/Resources",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"AppendLimitTests.swift",
"ByteBufferStringValueTests.swift",
"DataUtilitiesTests.swift",
"EMLTests.swift",
"EmailMessageConversionTests.swift",
"ExtendedSearchHandlerTests.swift",
"FetchMessageInfoHandlerTests.swift",
"FetchRawMessageTests.swift",
"ICSCalendarDetectionTests.swift",
"IMAPClientHandler+Sendable.swift",
"IMAPCommandQueueTests.swift",
"IMAPConnectionTLSModeTests.swift",
"IMAPIdleGroupLifecycleTests.swift",
"IMAPNamedConnectionTests.swift",
"IMAPPlaintextIntegrationTests.swift",
"IMAPTestServer.swift",
"IdleHandlerTests.swift",
"IntUtilitiesTests.swift",
"MessageBodyTests.swift",
"MessageChunkingTests.swift",
"MessageIDTests.swift",
"MessagePartBodyStructureTests.swift",
"NamespaceResolutionTests.swift",
"PipelinedFetchTests.swift",
"PlainAuthenticationTests.swift",
"ProblematicMessageTests.swift",
"QuotedPrintableTests.swift",
"SearchCommandTests.swift",
"SendDraftTests.swift",
"UntaggedResponseBufferTests.swift",
"WithinSearchTests.swift",
"XOAUTH2AuthenticationHandlerTests.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "test"
},
{
"c99name" : "SwiftIMAPCLI",
"module_type" : "SwiftTarget",
"name" : "SwiftIMAPCLI",
"path" : "Demos/SwiftIMAPCLI",
"product_dependencies" : [
"SwiftDotenv",
"ArgumentParser"
],
"product_memberships" : [
"SwiftIMAPCLI"
],
"sources" : [
"OSLogHandler.swift",
"main.swift"
],
"target_dependencies" : [
"SwiftMail"
],
"type" : "executable"
}
],
"tools_version" : "5.9"
}
Done.