Commit Graph
255 Commits
Author SHA1 Message Date
Matt Diephouse 8296db95dd Make Capability and its subtypes Hashable (#473) 2021-03-10 17:06:03 +00:00
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 c0bc6ce80e Add comment (#469) 2021-03-05 17:39:55 +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 7ad4256ad2 Throw if creating a sub mailbox where path separator is nil (#461)
* Throw if path separator is nil

* Soundness
2021-03-03 14:50:11 +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
Matt Diephouse ac9b9d35d2 Make init public (#456) 2021-03-02 21:42:48 +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
David Evans 0e2b6d368f Lowercase (#453) 2021-02-22 21:08:28 +00:00
Matt Diephouse 4e5b90366b Make MessageData.expunge take a SequenceNumber (#449) 2021-02-18 19:13:32 +00:00
Daniel Eggert 594e1caedc Add RangeView to UIDSet (#447)
* Add RangeView to UIDSet

* Fix for Swift 5.2
2021-02-16 16:17:34 +00:00
David Evans e23b49269c Add internet message date (#444)
* Add internet message date

* Soundness
2021-02-16 10:03:04 +00:00
Daniel Eggert e704d7f4d9 Make UIDSet conform to RandomAccessCollection (#445) 2021-02-15 15:59:58 +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 2c339a8eee Fix filter docs (#440) 2021-02-12 10:57:40 +00:00
David Evans f49bb54e26 Make date hashable (#442) 2021-02-11 19:12:05 +00:00
David EvansandJohannes 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
Daniel Eggert d37f7d81c3 Add @discardableResult (#427) 2021-02-02 10:59:06 +00:00
David Evans 60f42bb642 Fix compile (perf test error) (#428)
* Fix

* Fix sanity
2021-02-02 10:52:58 +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 1fe61d3b28 Performance testing (#415)
* Performance structure

* More tests

* Add more tests

* Remove dups

* More performance test cases

* Parse it all

* Fix sanity

* Use NIO perf tooling

* Change perf target name

* Add analyse perf script

* Fix CI

* Fix on linux

* Fix license headers

* Rename

* Lowercase tests

* Remove brackets

* PR review

* Fix sanity

* Remove hasNextChunk

* Fix sanity
2021-02-01 13:32:36 +00:00
David Evans 4ecbf9e429 Fix docs (#423) 2021-02-01 11:35:23 +00:00
David EvansandGeorge Barnett cc95589a47 Add sequence ranges (#421)
* Add sequence ranges

* Fix sanity

* Make public

* Add tests

* Fix?

* Update Tests/NIOIMAPCoreTests/Grammar/Sequence/SequenceRangeSet+Tests.swift

Co-authored-by: George Barnett <gbarnett@apple.com>

Co-authored-by: George Barnett <gbarnett@apple.com>
2021-01-29 13:58:35 +00:00
David Evans 621bb7ce2c Rename address fields (#422) 2021-01-29 12:45:16 +00:00
Matt Diephouse fd1fa71ae4 Add UIDSet.init(_: Range<UID>) (#418) 2021-01-25 20:01:39 +00:00
Daniel Eggert 4006e7437c Don’t expose “array” on SectionSpec.Part (#417) 2021-01-22 17:36:55 +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 2548d342f1 Don’t expose stringValue property (#409)
* Don’t expose stringValue property.

* Make init public.

* Fix a few more String conversions.
2021-01-21 15:33:19 +00:00
David Evans 8ad4a69522 Fix encode (#411) 2021-01-21 15:26:36 +00:00
David Evans 0b29dcb192 Encode missing space in CREATE command (#410)
* Encode missing space

* Fix sanity
2021-01-21 15:01:25 +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 a8ba5c53bf Make streaming kind public (#405) 2021-01-15 13:49:23 +00:00
David Evans 51dbd0f492 Refactor streaming to include all body and RFC822 (#403) 2021-01-14 21:18:06 +00:00
David Evans a5afc823b6 Convert SequenceRangeSet to use RangeSet and conform to SetAlgebra (#400)
* Finish conversion

* Conform to SetAlgebra

* Fix sanity

* PR review

* Remove rawRep

* Fix sanity
2021-01-14 16:25:00 +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 EvansandDaniel 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
David Evans 84e60dbb9c Rename response code code members (#394)
* Rename response code code members

* Fix sanity
2021-01-05 14:58:01 +00:00