Commit Graph
10 Commits
Author SHA1 Message Date
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 1e43a90df4 Fix streaming FETCH responses (#496)
* Fix

* Soundness

* Discard read bytes

* Use clear and precondition
2021-03-22 14:28:26 +00: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 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 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 818eda9e7c Fix compile (#67) 2020-04-20 15:40:00 +01:00
David Evans d7b4b5226d Rename ResponseStream to Response (#56)
* Rename ResponseStream to Response

* Fix conflicts
2020-04-17 18:25:17 +01:00
David EvansandCory Benfield 027494d589 Fix response streaming. (#4)
* Start response streaming

* Fix the tests

* It's fixed

* Fix parsing response data

* Fix typo

Co-Authored-By: Cory Benfield <lukasa@apple.com>

* Fix CLI

* Fix buffer

* Uncomment tests

* Uncomment tests

Co-authored-by: Cory Benfield <lukasa@apple.com>
2020-03-09 13:01:46 +00:00
David Evans c453000850 Initial project commit 2020-03-02 17:41:58 +00:00