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
David Evans
8ac6696b3c
Implement encoding logging mode for redaction ( #678 )
...
Resolves #662
Command/Response Encoder can be configured using loggingMode. If turned on then user-sensitive strings won't be encoding, but any metadata will.
For example, 1 LOGIN username password becomes 1 LOGIN "" "", thereby hiding the user's information.
2022-01-26 15:50:12 -08: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
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
8565ac900e
Rename Command types to better represent what they are ( #557 )
...
Resolves #522
Some command names were misleading, they should be better now. Also removed a redundant initialiser.
PartialCommandStream -> SynchronizedCommand
CommandStream -> CommandStreamPart
2021-05-21 16:39:22 +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
81c8e9158d
Underscore EncodeBuffer ( #479 )
...
* Underscore
* Underscore everything
* Add soundness self insert
2021-03-18 11:25:05 +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
d54da15714
Cleanup command encoding ( #305 )
...
* Simplify
* Fix sanity
* Remove duplicate logic
* Fix typo
* Write out
* Command encoder tests
* Fix sanity
2020-09-10 11:14:34 +01:00
David Evans
b34be24dfb
Remove try encoding ( #272 )
2020-07-13 10:15:30 +01:00
Daniel Eggert
3c20af6f53
Use encoding options specific to the transport direction. ( #240 )
...
* Use encoding options specific to the transport direction.
* Add description to precondition failure.
* Make properties on EncodingOptions public.
* Rename files.
* Change APPEND to use CommandEncodingOptions.
2020-07-06 18:37:16 +01:00
David Evans
701d2d54d7
Refactor and fix Append ( #228 )
...
* Support encoding append commands
* Yay it works
* Cleanup 1
* Cleanup 2
* Fix sanity
* Fix command decoder test
* Fix parsing partial commands sync literals
* Fix parser stress tests
* Fix tests
* Remove unused code
* Code refactor and cleanup
* Fix sanity
* Tests
* Tests and sanity
* Encode AppendCommand tests
* Fix sanity
2020-06-30 12:56:56 +01:00
Johannes Weiss and David Evans
525d58d1fa
non-happy path tests: over/underflows ( #220 )
...
* Support encoding append commands
* Yay it works
* Cleanup 1
* Cleanup 2
* Fix sanity
* Fix command decoder test
* Fix parsing partial commands sync literals
* Fix parser stress tests
* Fix tests
* Remove unused code
* Code refactor and cleanup
* Fix sanity
Co-authored-by: David Evans <d.evans@apple.com >
2020-06-26 14:47:40 +01:00
David Evans
49b44c521f
Only send return when supported and options exist ( #208 )
...
* Only send return when supported and options exist
* Fix sanity
* Throw an error when encoding
* Fix tests
* Fix sanity
* Fire error through pipeline
* Update ByteBuffer+WriteLiteral.swift
2020-06-22 12:17:11 +01:00
David Evans
1a66129e86
Begin to make encoding capability aware ( #188 )
...
* Primitive capability support
* Sample move capability requirement
* More examples
* Write binary literals
* Sanity
* Rename to encoding options
* Fix sanity
* Fix
* Add IMAP base options
* Rename
* Update Capability.swift
* Fix
* Use EncodeBuffer
* Fix writing greeting
* Fix sanity
* Fix assert
* Use EncodeBuffers everywhere
* Use EncodingCapabilities
* Remove base capabilities
* Create CommandEncodeBuffer
* Dedicated buffer types
* Fix sanity
* Clear test buffer
* PR review changes
* Remove has more chunks
* Remove dead code
* Fix sanity
* Fix
2020-06-04 14:56:18 +01:00
Johannes Weiss
626de3daf0
command encoder ( #102 )
2020-05-18 15:49:40 +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