Daniel Eggert
34883bcba6
Update style in documentation ( #822 )
2026-04-28 18:06:43 +02:00
Daniel Eggert
871d0122c9
Better docc comments ( #815 )
2026-04-16 09:20:29 -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
Matt Diephouse
bffac522bd
Make types Sendable ( #767 )
2024-09-02 13:56:13 +02:00
David Evans
fe03b16eb1
Fix Hashable implementations across all types ( #648 )
...
Resolves #634
The majority of types that were Equatable are now Hashable.
Anywhere that we had a custom == and the type was also Hashable we also now have custom hash functions.
2021-12-10 13:58:41 +00:00
David Evans
d8a2deb0e3
Use typealiases ( #642 )
...
UIDRange == MessageIdentifierRange<UID>
UIDSet == MessageIdentifierSet<UID>
UIDSetNonEmpty == MessageIdentifierSetNonEmpty<UID>
SequenceRange == MessageIdentifierRange<SequenceNumber>
SequenceSet == MessageIdentifierSet<SequenceNumber>
2021-11-30 20:34:07 +00:00
David Evans
4036cd48cd
Define generic message identification protocol ( #637 )
...
A "message identifier" can be a UID, a SequenceNumber, or an unknown instance of the two (because they look the same it's impossible to distinguish when parsing).
Originally we had the 3 types duplicated 3 times, however this PR brings us closer to have one implementation. While code duplication isn't usually "that bad", in this case it can be an issue as :
The code is complicated
There's a lot of it
This PR works to address a few things, using the UID type as a proof-of-concept:
Make UID conform to a protocol MessageIdentifier
Create a new MessageIdentifierRange type that will eventually replace the UIDRange and SequenceNumberRange types.
2021-11-23 11:44:05 +00:00
David Evans
4b7ba41689
Change destinationUIDValidity type to UIDValidity ( #590 )
...
Resolves #584
Previously it was Int, but we have a dedicated type to represent this data, so we should use it.
2021-07-12 15:45:39 +01:00
David Evans
a66eeb228b
Use SPI to remove underscored members ( #567 )
...
Resolves #556
We've talked quite a bit offline, and decided that for now @_spi is the way to go, as it avoids build system issues. The goal is to remove the number of underscored public types and fields.
2021-06-02 19:21:47 +01:00
David Evans
ff1b31f5f3
Remove superfluous underscores. ( #548 )
...
Way too many things were underscored that really didn't need to be.
2021-04-13 10:48:34 +01:00
David Evans
94e3fb42f5
Update dependencies ( #493 )
...
* Update packages
* Run swift format
* Update
2021-03-23 17:21:41 +00:00
David Evans
81c8e9158d
Underscore EncodeBuffer ( #479 )
...
* Underscore
* Underscore everything
* Add soundness self insert
2021-03-18 11:25:05 +00:00
David Evans
c0bc6ce80e
Add comment ( #469 )
2021-03-05 17:39:55 +00:00
David Evans
cb4d16ed07
Convert UIDCOPY to use UIDRanges ( #398 )
...
* Convert to using UIDRanges
* Fix sanity
* Update docs
2021-01-11 09:23:03 +00:00
David Evans
84e60dbb9c
Rename response code code members ( #394 )
...
* Rename response code code members
* Fix sanity
2021-01-05 14:58:01 +00:00
David Evans
b1a1d7350c
Documentation PR part 6 ( #387 )
...
* Document UseAttribute
* Document URLRumpMechanism
* Document URLFetchData
* Document UAuthMechanism
* Document StoreModifier
* Document SortData
* Document SequenceMatchData
* Document QResyncParameter
* Document SelectParameter
* Document SectionSpecifier
* Document SectionSpecifier.Part
* Document SectionSpecifier.Kind
* Document ResponseEncodingOptions
* Document ResponseEncodeBuffer
* Document EncodeBuffer
* Document EncodeBuffer.Chunk
* Document EncodeBuffer more.
* Document CommandEncodeBuffer
* Document ParserError
* Document ResponseParser
* Document CommandParser
* Document SynchronisingLiteralParser
* Remove public where it isn't needed
* Document write CommandStream
* Document write TaggedCommand
* Remove public from write functions
* Document FetchAttribute
* Document top-level Capability
* Documents Capability subtypes
* Document FullDateTime
* Document FullDate
* Document FullTime
* Document ContinuationRequest
* Document ListSelectOptions
* Document ResponseOrContinuationRequest
* Document Response
* Document FetchResponse
* Document StreamingKind
* Document ResponseText
* Document ResponseTextCode
* Document TaggedResponse
* Document TaggedResponseState
* Remove docs
* Document UntaggedStatus
* Document ScopeOption
* Document ReturnOption
* Document IServer
* Document InitialClientResponse
* Document AttributeFlag
* Document UIDValidity
* Document UIDSet
* Document UID
* Document EncodedAuthenticationType
* Document EncodedMailbox
* Document EncodedSearch
* Document EncodedSection
* Document EncodedURLAuth
* Document EncodedUser
* Document ResponseCodeAppend
* Document ResponsePayload
* Document SequenceNumber
* Document OptionValueComp
* Document QuotaLimit
* Document QuotaResource
* Document OptionVendorTag
* Document IPartial and remove IPartialOnly
* Document QuotaRoot
* Document ESearchResponse
* Document SearchCorrelator
* Document Address
* Document UIDRange
* Document IUID
* Document SearchModificationSequence
* Document SearchModificationSequenceExtension
* Document SearchReturnData
* Document SearchReturnDataExtension
* Document SearchReturnOption
* Document SearchReturnOptionExtension
* Document SequenceRange
* Document SequenceRangeSet
* Fix compile
* Document SequenceSet
* Document ParameterValue
* Define TaggedExtension
* Document AuthIMAPURL
* Document AuthIMAPURLFull
* Document AuthIMAPURLRump
* Document ChangedSinceModifier
* Document UnchangedSinceModifier
* Document CreateParameter
* Document EntryValue
* Document Expire
* Document FetchModifier
* Document FetchModificationResponse
* Document IAbsolutePath
* Document IAuth
* Document ICommand
* Document IMailboxReference
* Document MetadataValue
* Document IMAPURL
* Document MetadataOption
* Document MetadataResponse
* Document RelativeIMAPURL
* Document INetworkPath
* Document MechanismBase64
* Document IMessageList
* Document IMessageOrPartial
* Document IMessagePart
* Document IPathQuery
* Document ISection
* Document IRelativePath
* Document IUAVerifier
* Document IURLAuthRump
* Document IURLAuthRump
* Document IUserInfo
* Fix missing documentation
* Document CommandEncoder
* Fix sanity
* Update CommandDecoder.swift
* PR reviews
2020-12-11 17:14:37 +00:00
David Evans
2fef4ba772
Implement RFC 4315 UIDPLUS ( #302 )
...
* Implement
* Test
* Fix tests
2020-09-03 10:51:04 +01:00
David Evans
495d5f8c4b
Refactor tests part 2 ( #279 )
...
* Update testParse2Digit
* Update testParseToken
* Update testParseUnsubscribe
* Update testParseUID
* Update testParseUIDSet
* Update testParseUserId
* Update testUIDRange
* Update testParseUid
* Update testParseText
* Fix sanity
* Remove un-needed function
* Update parseTaggedResponse
* Update parseTag
* Update parseSequenceSet
* Update parseRename
* Update parseSubscribe
* Update parseStoreAttribueFlags
* Update parseStore
* Update parseStatus
* Update testParseSequenceSet
* Update parse NZNumber
* Update parseNumber
* Update parseNString
* Test utilities for void returning parsers
* Update testParseNil
* Update testParseNewline
* Update testParseNamespace
* Update testParseAddress
* Better error messages
* Update testParseSequenceRange
* Fix testParseStatus
* Update testParseSequenceNumber
* Update testParseSelect
* Update testParseSectionSpecifierKind
* Update testParseSectionSpecifier
* Update testParseSectionPart
* Update testParseSectionBinary
* Update testParseSection
* Update testParseSearchReturnOptionExtension
* Batch replace function calls
* Use new method almost everywhere
* Remove extra spacing
* Fix sanity
* Remove redundant function
* Remove redundant code
* Refactor parsing search keys
2020-07-31 01:54:17 -07:00
Daniel Eggert
30cdf896ff
Create type for UID / UIDSet and use UIDs vs. Sequence Numbers ( #166 )
...
* Create type for UID / UIDSet and use UIDs vs. Sequence Numbers as appropriate.
* Remove commented out code.
* Linting.
2020-05-26 11:08:08 +01:00
David Evans
f62ade3dc7
Remove all static convenience initialisers ( #123 )
...
* Re-add public inits
* Remove static initialisers
2020-05-11 15:31:43 +01:00
David Evans
28225ece7d
Remove NIOIMAP namespace
2020-05-09 14:46:42 +01:00
tomer doron
53efab1d95
standardize format ( #80 )
...
motivation: use standard format across all of our projects
changes:
* add .swiftformat settings based on what we use in other projects
* validate format in the sanity script
* format
2020-04-24 12:05:17 +01:00
David Evans
19ecdb9576
Seperate module ( #61 )
2020-04-20 12:41:39 +01:00