Commit Graph
26 Commits
Author SHA1 Message Date
David Evans 794f81bb66 Remove initial response (#283) 2020-08-18 11:45:23 +01:00
David Evans 005ee648ff Flatten parameter types (#277)
* Begin refactor

* Remove redundant function calls

* Remove CreateParameter

* Remove SelectParameter

* Remove RenameParameter

* Remove StoreModifier

* Remove FetchModifier

* Cleanup

* Flatten simple

* Fix sanity

* Switch to guard
2020-07-15 17:19:17 +01:00
David Evans b34be24dfb Remove try encoding (#272) 2020-07-13 10:15:30 +01:00
David Evans 9cb7a1df06 Replace a lot of Type with Kind (#267) 2020-07-10 11:13:45 +01:00
David Evans fd9905098c Refactor Search and UID Search (#242)
* Refactor Search and UID Search

* Uncomment tests

* Fix sanity
2020-07-06 18:57:38 +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
Johannes WeissandDavid 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 b307ac1404 Remove capability preconditions (#230)
* Remove preconditions

* Fix sanity
2020-06-25 17:58:02 +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
David Evans 7da7dc5b54 Remove FetchType (#180)
* Fix tests

* Fix sanity
2020-05-27 13:35:00 +01: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
Daniel Eggert 1ac7aa5677 Renaming: StoreAttributeFlagsType → StoreFlags 2020-05-22 16:53:35 +01:00
Daniel Eggert 5ff061243a Add some parameter names and add default versions. (#155)
* Add some parameter names and add default versions for RFC 3501 versions of commands.

* Use default arguments.

* Add test cases for Commands with default argument values.

* Align with changes on master.
2020-05-22 15:29:52 +01:00
Daniel Eggert 17c740a21b Change TaggedCommand property name and property order. (#154) 2020-05-20 10:50:18 +01:00
Johannes Weiss 626de3daf0 command encoder (#102) 2020-05-18 15:49:40 +01:00
David Evans eeb9b5a3e6 Fix encoding login strings as strings (#131)
* Encode login parameters as strings

* Fix sanity

* Extra login tests

* Extra cases

* Fix sanity
2020-05-14 16:37:58 +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 6f104261ae Rename StatusAttributeValue to MailboxValue (#122)
* Rename types

* Rename encoding functions

* Rename tests

* Fix format

* Rebase
2020-05-11 15:10:18 +01:00
David Evans 28225ece7d Remove NIOIMAP namespace 2020-05-09 14:46:42 +01:00
David Evans 5898c65b32 Back Mailbox by ByteBuffer (#97)
* Rename to mailbox name

* Underlying bytebuffer storage

* Fix compile

* Better comparison
2020-04-29 11:32:22 +01:00
David Evans 0ed1413b5c Uncomment round trip tests (#103)
* Uncomment some roundtrip tests

* Fix all tests

* Fix tests

* Fix formatting
2020-04-29 11:31:27 +01:00
David Evans cbaa5028bb Remove XCommand (#93)
* Remove XCommand

* Fix formatting
2020-04-24 12:37:01 +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 0f5de678e5 Rename top-level command types and flatten UID commands into Command (#90)
* Flatten UID commands

* Rename command types
2020-04-23 16:22:56 +01:00
David Evans 19ecdb9576 Seperate module (#61) 2020-04-20 12:41:39 +01:00