David Evans
1e0f89fd11
Non empty UID set ( #448 )
...
* Convert UIDSet to LastCommandSet
* Soundness
* Define UIDSetNonEmpty
* Use UIDSetNonEmpty
* Soundness
* Fix tests
* Soundness
* Convenience funcs
* Soundness
* Fix compile
* Use parseOneOf
* Soundness
2021-03-05 17:48:42 +00:00
David Evans
8feaf32520
Remove string initialisers from MailboxName ( #462 )
...
* Remove string initialisers
* Add comment
* Refactor assertion
* Readonly
* Private modified utf7
* Fix tests
* Soundness
* PR comments
* Remove isBufferValid
* PR comments
* Soundness
2021-03-05 12:16:38 +00:00
David Evans
6191061fb4
Create generic type to wrap a set or IMAP "last result" ( #463 )
...
* Define last command set type
* Replace SequenceSet
* Docs
* Soundness
* Update dates
* Rename last command set
* Cleanup
* Update docs
2021-03-04 14:45:12 +00:00
David Evans
1dad108844
Make struct init parameter names match the members ( #458 )
...
* Fix field names
* Soundness
2021-03-03 14:25:06 +00:00
David Evans
368a8f14cf
Create a wrapper for body disposition kind ( #454 )
...
* Implement disposition
* Add statics
* Soundness
* soundness
* Soundness
2021-02-23 15:29:52 +00:00
David Evans
faec217ef9
Define message ID ( #451 )
2021-02-23 10:36:01 +00:00
Matt Diephouse
4e5b90366b
Make MessageData.expunge take a SequenceNumber ( #449 )
2021-02-18 19:13:32 +00:00
David Evans
e23b49269c
Add internet message date ( #444 )
...
* Add internet message date
* Soundness
2021-02-16 10:03:04 +00:00
David Evans
e82dcbfe61
Vendor base64 ( #443 )
...
* Vendor base64
* Soundness
* Fix notices file
* Fix compile warning
* Soundness
* Exclude headers from chromium
2021-02-12 12:08:41 +00:00
David Evans and Johannes Weiss
668ba3ac17
Refactor initial client response ( #433 )
...
* Refactor initial client response
* Fix soundness
* Bike shed
* Update Sources/NIOIMAPCore/Grammar/InitialClientResponse.swift
Co-authored-by: Johannes Weiss <johannesweiss@apple.com >
Co-authored-by: Johannes Weiss <johannesweiss@apple.com >
2021-02-11 11:52:49 +00:00
David Evans
10646bf210
Fix parse flags ( #436 )
...
* Fix parsing
* Fix soundness
2021-02-05 14:26:26 +00:00
David Evans
62ab137117
Support iCloud response text non-conformance ( #435 )
...
* Support iCloud
* Soundness
2021-02-05 12:17:35 +00:00
David Evans
33d6060046
Final key value refactor ( #432 )
...
* Remove a load of parameter types
* Remove NameSpaceResponseExtension
* Remove SearchModificationSequenceExtension
* Remove SearchReturnDataExtension
* Remove SearchReturnOptionExtension
* Soundness
2021-02-05 12:09:00 +00:00
David Evans
41c363048b
Remove ParameterPair and replace with KeyValues<String, String> ( #429 )
...
* Remove ParameterPair
* Soundness
2021-02-04 12:04:24 +00:00
David Evans
df5074856c
Remove all minor Key/Value types ( #430 )
...
* Define basic KeyValue type
* Remove TaggedExtension
* Replace Parameter
* Remove ParameterPair
* Remove EntryValue
* Remove OptionExtension
* Soudness
* Docs
* Inline
* Soundness
* PR comments
2021-02-04 11:03:41 +00:00
David Evans
4e47a216f3
Add support for mailbox groups ( #426 )
...
* Address Group
* Support for groups
* Docs
* Fix soundness
* Remove throws
* Remove MailboxName
* Fix compile
* Rename AddressOrGroup
* Remove recursion
* Fix soundness
2021-02-03 16:03:26 +00:00
David Evans
f056b14fa6
Refactor out ID parameter and replace with new KeyValues type ( #424 )
...
* Add conveniences
* Make iteratable
* Add ID example
* Add docs
* Converting backing to KeyValue struct
* Fix soundness
2021-02-01 18:12:12 +00:00
David Evans
621bb7ce2c
Rename address fields ( #422 )
2021-01-29 12:45:16 +00:00
David Evans
1c0ea188b7
Add missing fetch attribute case ( #413 )
...
* Add missing case
* Fix sanity
2021-01-22 10:30:58 +00:00
Daniel Eggert
2f409effef
Conform to CustomDebugStringConvertible ( #408 )
...
…instead of CustomStringConvertible
2021-01-21 13:34:19 +00:00
David Evans
4f0f4bab42
Reorganise parser and parser tests into smaller files ( #407 )
...
* Move grammar parser
* Extract parse command
* Extract parse body
* Extract parse date
* Extract parse fetch
* Extract parse list
* Extract parse mailbox
* Extract parse response
* Extrace parse search
* Extract parse entry
* Extract parse UID
* Extract parse append
* Extract parse envelope/addresses
* Extract parse message
* Extract parse sequence
* Fix sanity
* Fix
* Fix
2021-01-19 20:33:58 +00:00
David Evans
23f0a211da
Kill raw representable ( #406 )
...
* Fix up UID
* Fix up Encoding
* Fix up MediaSubtype
* Fix up Flag
* Fix up BasicKind
* Fix up GmailLabel
* Fix up SequenceNumber
* Fix up attritbute flag
* Cleanup UIDShiftWrapper
* Cleanup SequenceRange
* Cleanup UIDRange
* Cleanup UIDValidity
* Cleanup MetadataValue
* Cleanup SectionSpecPart
* Cleanup UAuthMechanism
* Cleanup UseAttribute
* Protect access
* Fix sanity
2021-01-18 14:12:56 +00:00
David Evans
51dbd0f492
Refactor streaming to include all body and RFC822 ( #403 )
2021-01-14 21:18:06 +00:00
Matt Diephouse
2118f38e9b
Use a SequenceNumber for ResponseTextCode.unseen ( #404 )
2021-01-14 15:23:23 +00:00
David Evans
3f6aa71643
Fix InternalDate sanity checking ( #399 )
...
* Gix sanity checks
* Refactor
* Fix sanity
* Docs
* Fix linux compile issues
* Fix sanity
2021-01-11 13:29:20 +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 and Daniel Eggert
7d6997edcf
Enable custom continuation handling ( #372 )
...
* Client handler outputs responseorcontinuations
* Finish implementation
* Remove BB array from authenticate
* Fix sanity
* Refactor
* Fix sanity
* Apply suggestions from code review
Co-authored-by: Daniel Eggert <daniel.eggert@hoerbuch.dk >
* Rename to continuation response
* Fix compile
* Fix tests
* Fix sanity
* PR comments
* Fix sanity
Co-authored-by: Daniel Eggert <daniel.eggert@hoerbuch.dk >
2021-01-05 17:21:38 +00:00
David Evans
c418cdcd2a
Rename URL Rump mechanism ( #395 )
2021-01-05 16:06:41 +00:00
Daniel Eggert
44b7991dc4
Make UIDSet conform to Collection and SetAlgebra ( #393 )
2020-12-15 16:10:51 +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
135f473bf6
Documentation PR part 5 ( #383 )
...
* 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
* PR review
* Fix sanity
* Document FullDate
2020-12-10 12:37:05 +00:00
David Evans
9d2097ceff
Documentation PR part 2 ( #376 )
...
* Document AppendMessage
* Document AppendOptions
* Document BodyStructure.Disposition
* Document BodyStructure.DispositionAndLanguage
* Document BodyStructure.Encoding
* Document BodyStructure helper typoes/conformances
* Document BodyStructure.Singlepart
* Document BodyStructure.Singlepart.Kind
* Document BodyStructure.Singlepart.Message
* Document BodyStructure.Singlepart.Text
* Document BodyStructure.Singlepart.Extension
* Document TaggedCommand
* Make base64 non-public
* Fix sanity
* Stop ConditionalStore being public
* Document InternalDate
* Document InternalDate.Components
* Document EItemVendorTag
* Document Flag
* Document IDParameter
* Document EntryFlagName
* Document EntryKindRequest
* Document EntryTypeResponse
* Stop tracking docs
* Document ESearchOptions
* Remove ESearchScopeOption
* Document ESearchScopeOptions
* Document Parameter
* Document PartialRange
* Document Media
* Document ESearchSourceOptions
* Document Flag.Keyword
* Document PermanentFlag
* Document StoreFlags
* Fix sanity
* Improve date docs
* Fix typos
* Change date range syntax
* Improve Flag.Keyword string literal comment
* Fix sanity
2020-12-08 16:25:04 +00:00
David Evans
134567e426
Documentation PR part 4 ( #378 )
...
* Document ModificationSequenceValue
* Document NamespaceDescription
* Document NamespaceResponse
* Document NamespaceResponseExtension
* Document Mailboxes
* Document MailboxFilter
* Document OptionExtension
* Document Envelope
* Document NamespaceDescription
* Fix sanity
2020-12-08 10:37:19 +00:00
David Evans
e059623b4c
Documentation PR part 3 ( #377 )
...
* Document ListSelectBaseOption
* Document ListSelectIndependentOption
* Document ListSelectOption
* Remove docs
* Document MailboxAttribute
* Document MailboxData
* Document MailboxData.SearchSort
* Remove SearchSortModificationSequence
* Document MailboxInfo
* Document MailboxInfo.Attribute
* Document ListExtendedItem
* Document MailboxTooBigError
* Document InvalidMailboxNameError
* Document InvalidPathSeparatorError
* Document MailboxPath
* Document MailboxName
* Document MailboxPatterns
* Document BasicKind
* Document Media.Basic
* Document Media.Message
* Document GmailLabel
* Document MessageData
* Fix tests
* Fix sanity
2020-12-08 10:37:04 +00:00
4ac50daa47
Fix base 64 parsing in continuation request. ( #369 )
...
* Fix base 64 parsing in continuation request.
Need to accept `/` as valid Base 64 character.
* Fix tests
* Fix sanity
* Minor cleanup
* Fix sanity
* Remove comment
* Update UInt8+ParseTypeMembership.swift
Co-authored-by: David Evans <d.evans@apple.com >
Co-authored-by: David Evans <david.evans@blackpoint.co >
2020-12-02 16:29:44 +00:00
David Evans and Cory Benfield
0b4bc1a702
Documentation (part 1 of many) ( #368 )
...
* Update Access docs
* Update AppendCommand docs
* Update CatenateData docs
* BodyExtension docs
* Main BodyStructure docs
* Disposition docs
* Add disposition docs
* Encoding docs
* Fields docs
* Document language location
* Document and refine LocationExtensions API
* Document ParameterPair
* Document multipart
* Document multipart extension
* Apply suggestions from code review
Co-authored-by: Cory Benfield <lukasa@apple.com >
* Fix sanity
Co-authored-by: Cory Benfield <lukasa@apple.com >
2020-11-18 18:41:09 +00:00
Daniel Eggert
00a552bf75
Rename → Continuation Request ( #364 )
2020-11-16 15:41:05 +00:00
Daniel Eggert
15f642777a
Remove expectGreeting. Don’t handle Greeting requirement in parser. ( #362 )
...
* Remove “expectGreeting”.
* Simplify nested types.
2020-11-12 23:47:58 +00:00
Matt Diephouse
a704b73e6e
Fix parsing and encoding of UID.max ( #359 )
...
* Fix parsing and encoding of UID.max
* Adjust formatting
2020-11-11 16:49:35 +00:00
David Evans
b4272d0836
Rename ResponseCondState to TaggedResponse.State ( #358 )
...
* Renamed ResponseCondState
* Fix sanity
2020-11-11 16:47:26 +00:00
David Evans
2fad29d217
Rename ( #357 )
2020-11-11 16:12:11 +00:00
David Evans
2308475384
Make SectionSpecifier non-optional ( #354 )
2020-11-10 15:13:43 +00:00
David Evans
95d02d1620
Convert partial ranges to use UInt32 ( #349 )
...
* Convert partial ranges to UInt32
* Fix test
2020-11-09 16:19:21 +00:00
Matt Diephouse
c28bc3756a
Use UIDs for nextUIDs and UIDValiditys for uidValiditys ( #346 )
2020-11-05 19:39:51 +00:00
David Evans
542f82614f
Fix is atom special ( #342 )
...
* Fix is atom special
* Fix sanity
2020-10-29 19:27:56 +00:00
David Evans and George Barnett
78b55555bf
Add some documentation ( #341 )
...
* Fix documentation
* Remove link to NIO http 2
* Document TooDeep error
* Remove ParsingError
* Make GrammarParser non-public
* Better UTF7 errors
* Document Access
* Document CommandStream types
* Partially document `Command`
* Document date
* Document Access
* Update Sources/NIOIMAPCore/Grammar/Date/Date.swift
Co-authored-by: George Barnett <gbarnett@apple.com >
* Update Sources/NIOIMAPCore/Grammar/Access.swift
Co-authored-by: George Barnett <gbarnett@apple.com >
* Update Sources/NIOIMAPCore/Grammar/Command/CommandStream.swift
Co-authored-by: George Barnett <gbarnett@apple.com >
* Fix typo
Co-authored-by: George Barnett <gbarnett@apple.com >
2020-10-26 09:54:46 +00:00
Matt Diephouse
e3b1b7f404
Change UIDValidity to match the design of UID ( #335 )
...
* Make UID Hashable
* Change UIDValidity to match UID
* Clean up inits and add asserts
2020-10-15 21:03:56 +01:00
David Evans and George Barnett
4c72d6c9bb
Implement RFC 4467 URL Auth ( #329 )
...
* Define URL Auth types with tests
* Finish
* Fix sanity
* Add todo
* Fix sanity
* Move writing spaces out
* Fix sanity
* George PR comments
* Fix sanity
* Move prefix to start of array
* Update Sources/NIOIMAPCore/Grammar/Command/Command.swift
Co-authored-by: George Barnett <gbarnett@apple.com >
Co-authored-by: George Barnett <gbarnett@apple.com >
2020-10-09 13:11:38 +01:00
David Evans
b52faf09dd
Implement RFC 2221 Login referrals ( #327 )
...
* Implement RFC 2221
* Fix sanity
* Fix compile
* Fix tests
2020-10-08 16:41:19 +01:00
David Evans
2fa5ddba3e
Implement RFC 4959 SASL ( #330 )
...
* Implement new authenticate
* Tests
* Fix sanity
2020-10-08 16:07:52 +01:00