David Evans
480785353a
Add literal size limit ( #671 )
2022-01-26 12:07:49 +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
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
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 and Johannes Weiss
042d11fe17
Add B2MD tests for most commands/responses ( #125 )
...
* Move tests to dedicated file
* Add NOOP tests
* Add capability tests
* Add logout tests
* Add starttls tests
* Add select tests
* Add examine tests
* Fix sanity
* Add create tests
* Add delete tests
* Fix sanity
* Add subscribe tests
* Add unsubscribe tests
* Add missing test file header
* Add check tests
* Fix sanity
* Rebase
* Add list tests
* Add LSUB tests
* Add status tests
* Add append tests
* Setup response tests
* Allow response parse mode override
* Temp remove append
* Conditional state tests
* Bye tests
* Capability tests
* Flags tests
* Exists tests
* Recent tests
* Expunge tests
* Tagged response tests
* List, LSUB, and status tests
* Comment everything
* Make tests use synchronizing literals
* Replace CRLF
* Test fetch responses
* Fix sanity
* Assert
* Refactor error catching
* Test that breaks synchronising literals
* fix some stuff
* Fix sanity
* Fix all the things
* Fix sanity
Co-authored-by: Johannes Weiss <johannesweiss@apple.com >
2020-05-20 17:40:56 +01:00
Johannes Weiss
626de3daf0
command encoder ( #102 )
2020-05-18 15:49:40 +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