Commit Graph
278 Commits
Author SHA1 Message Date
Daniel Eggert e67fc89e63 RFC 9979 (#833) 2026-07-18 20:57:21 +02:00
Oliver DrobnikandClaude Opus 4.8 0da5049bc9 NIOIMAPCore: import the Android overlay module instead of Bionic (#829)
* NIOIMAPCore: import the Android overlay module, not Bionic

#826 added a `canImport(Bionic)` / `import Bionic` arm to NIOIMAPCore's
per-file libc-import guards. Switch it to the `Android` umbrella module,
which re-exports Bionic plus the Swift overlay, so the import is the more
complete/idiomatic libc surface on the Swift Android SDK. No functional
change — both resolve the libc symbols (isalnum/isalpha) used here.

* CI: enable InlineAlways experimental feature for Android nightly build

swift-collections 1.6.0 guards `@inline(always)` with `#if compiler(>=6.3)`,
but that attribute is still behind the experimental `InlineAlways` feature in
the nightly `main` toolchain the Android Swift SDK job builds with, so the build
fails with "'@inline(always)' is an experimental feature". Pass
`-enable-experimental-feature InlineAlways` to swift build until the upstream
guard is fixed (cf. apple/swift-collections #580/#584).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 09:04:30 +01:00
Oliver DrobnikandClaude Opus 4.8 bcf875610c Add Android to NIOIMAPCore's libc imports (#826)
### Motivation:

NIOIMAPCore's parser guards the libc import per file with
Darwin/Glibc/Musl/Windows and otherwise falls into
`#else let badOS = { fatalError("unsupported OS") }()`. On the Swift
Android SDK none of those arms match, so every guarded file takes the
`#else` branch and the module fails to build with "invalid redeclaration
of 'badOS'" (the symbol is declared at file scope in ~17 sources).

### Modifications:

Add an `#elseif canImport(Android)` arm importing `Android` to the per-file
libc-import guards in NIOIMAPCore. For `UInt8+ParseTypeMembership.swift`,
which imports specific ctype functions, add `import func Android.isalnum` /
`import func Android.isalpha`.

### Result:

NIOIMAPCore compiles for Android. No change on any other platform.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 16:06:29 +00:00
Daniel Eggert abfc170ff1 Only parse continuation responses while an AUTHENTICATE is in progress (#827) 2026-06-01 14:13:22 -04:00
Daniel Eggert 01de1f9a29 Allow () in place of NIL for empty addr-list fields. Fixes #821 (#823) 2026-04-30 08:12:53 +02:00
Daniel Eggert 34883bcba6 Update style in documentation (#822) 2026-04-28 18:06:43 +02:00
Oliver Drobnik 9c56edfa19 Fix parsing of untagged SORT responses (#819) (#820) 2026-04-26 10:11:20 +02:00
Oliver Drobnik b132d4c4bb Refactor: Roll MailboxData.searchSort into .search (#727) (#817) 2026-04-23 19:09:04 +02:00
Oliver Drobnik 2f7d3b73a8 Refactor: Remove FetchModificationResponse, use ModificationSequenceValue directly (#818) 2026-04-23 19:03:14 +02:00
Daniel Eggert 871d0122c9 Better docc comments (#815) 2026-04-16 09:20:29 -07:00
Oliver Drobnik 5207e4f8e9 Add SORT command support (RFC 5256) (#814) 2026-04-13 13:53:57 +02:00
Daniel Eggert 9491d31e2a Additional Tests (#811) 2026-03-09 09:58:21 -04:00
Daniel Eggert e466da1b68 Inbound buffer split (#812) 2026-03-09 08:50:04 -04:00
Daniel Eggert af9dbf1d92 Cleanup and improve tests (#809) 2026-03-03 13:01:01 -05:00
Brian Suda 7697574894 Add visionOS platform support (#810) 2026-03-03 18:58:29 +01:00
Matt Diephouse 0a471f59b2 Add support for RFC9698 JMAPACCESS (#807) 2025-11-17 22:30:34 +01:00
Arnt Gulbrandsen 0d286ae155 Add support for RFC 9755 (#805) 2025-11-17 22:29:15 +01:00
Olof ThorénandOlof Thorén 157c66526d allow crosscompile (#803)
Co-authored-by: Olof Thorén <ext-olof.thoren@finnair.com>
2025-09-15 07:43:04 +00:00
Daniel Eggert 7125d3d7b1 UIDBATCHES Extension (#777) 2025-05-22 12:47:29 -04:00
Matt Diephouse 2dd69bae35 RFC 8474 - IMAP Extension for Object Identifiers (#795) 2025-05-12 18:31:16 +02:00
Daniel Eggert b838dc2206 Pass response parser options into IMAPClientHandler.init (#789) 2025-05-06 15:30:31 +02:00
Daniel Eggert a941316af3 Fix parsing of NIL for RFC 7889 APPENDLIMIT (#782) 2025-04-04 11:06:20 -07:00
Franz Busch 2cd1c5582a [CI] Adopt GitHub Actions (#775)
* [CI] Adopt GitHub Actions

# Motivation

We want to adopt GitHub actions in all of our Swift repositories to replace our current Jenkins CI.

# Modification

This PR adopts the reusable workflows from NIO and the swiftlang organization to ensure soundness and test coverage. Additionally, this PR enables a sematic label check and adds a `release.yml` to make releasing this package easy.

# Result

Modern CI and release flow.
2024-10-30 13:24:35 +00:00
Daniel Eggert 7328a733b4 Be more lenient about spaces in RFC 2971 ID response (#774) 2024-10-24 09:43:03 -04:00
Matt Diephouse 7d0f2cf799 Mark final set of types as Sendable (#771) 2024-09-18 15:06:30 +02:00
Daniel Eggert 13cf165aaf Implement RFC 7889 “APPENDLIMIT” (#769) 2024-09-03 14:49:41 +02:00
Matt Diephouse bffac522bd Make types Sendable (#767) 2024-09-02 13:56:13 +02:00
Daniel Eggert 2b6d728191 Fix correctly parsing incomplete, invalid BODYSTRUCTURE data (#762) 2024-07-29 10:54:53 -04:00
Matt Diephouse 49af890114 Parse PARTIAL data returned from UID SEARCH (#761) 2024-07-10 09:56:25 -04:00
Daniel Eggert 0040533b67 Add support for MESSAGELIMIT Extension (#760) 2024-06-20 09:04:10 -07:00
Massimo OlivieroandDaniel Eggert b9a6a88f92 Add support for RFC 8970 — Message Preview Generation (#751)
Co-authored-by: Daniel Eggert <deggert@apple.com>
2024-06-10 11:54:40 -07:00
Daniel Eggert 373a95435a Skip BODYSTRUCTURE data when literal size limit is exceeded (#759) 2024-06-10 09:14:08 -04:00
Daniel Eggert 342a2c695f Add support for RFC 9586 “Using and Returning UIDs Only” (aka. UIDONLY) (#758) 2024-06-10 09:55:46 +02:00
Daniel Eggert e45aa3283f Skip invalid BODYSTRUCTURE in server responses (#757) 2024-04-20 19:16:38 +02:00
Daniel Eggert 14ac21ddb9 Include actual and limit values in errors (#754) 2024-04-18 19:27:22 +02:00
Massimo Oliviero c04c4aa3f7 Fix envelope multiple addresses parsing (#752) 2024-04-18 14:18:25 +02:00
Daniel Eggert fe1e2beb15 Fix compiler warnings for Swift 5.9 (#756) 2024-04-17 07:13:17 -04:00
Daniel Eggert 0d951a6d57 IMAP Paged SEARCH & FETCH Support (#746) 2023-07-21 14:22:32 -07:00
Daniel Eggert 39b1902c5d 2nd part of renaming Partial → ByteRange (#745) 2023-07-20 14:31:51 -07:00
Matt Diephouse 9716083dce Fix parser error with continuation responses (#742)
When the response text of a continuation response began with base64 characters, the response would be interpreted as base64. Any remaining characters would cause a parser error.

Rework the parser to only interpret the text as base64 if all of the text is base64 characters.
2023-06-14 08:08:29 -04:00
Daniel Eggert 8851fdb73b Fix for stray + in response. (#740) 2023-05-24 09:22:53 -04:00
Daniel Eggert fc6524ab8d Allow non-ASCII values in BODYSTRUCTURE parameters (#739) 2023-04-19 18:26:48 +02:00
Daniel Eggert 89777af885 Fix parsing Gmail labels as flags (#738) 2023-04-18 14:57:40 +02:00
Daniel Eggert 01577b28be Rename Partial → ByteRange (#736) 2023-03-31 21:03:13 +02:00
Matt Diephouse cc3b72e93f Parse INTERNALDATEs without a leading digit or space (#735) 2023-03-08 16:49:13 +01:00
Daniel Eggert c25047fc0c Use enum for ExtendedSearchResponse UID vs. sequence number (#733) 2023-02-22 19:45:58 +01:00
Daniel Eggert 511d4e799d Fix parsing response codes (#730) 2023-02-19 10:10:12 +01:00
carolinacass cab8fef8a7 Use #fileID/#filePath instead of #file (#722)
Motivation:

Modifications:

Changed #file to #filePath or #fileID depending on situation
2022-11-03 15:50:37 +00:00
Daniel Eggert 8abe89882e Allow NIL response for a particular body section (#720) 2022-10-27 16:40:58 +02:00
Daniel Eggert 945f0d664c Remove MessageAttribute.binary (#721)
This is (already) being handled by `FetchResponse.streamingBegin` / `StreamingKind`.
2022-10-27 10:24:13 +01:00