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.
Resolves#634
The majority of types that were Equatable are now Hashable.
Anywhere that we had a custom == and the type was also Hashable we also now have custom hash functions.
In most cases in IMAP it's possible to allow multiple commands to run concurrently. However, in some cases this would lead to undefined behaviour.
In particular, when appending, append is the only command that can be sent/active, as for authenticating, and obviously IDLE.
This PR implements that by tracking the outgoing tags, and the incoming tagged responses.
Resolves#556
We've talked quite a bit offline, and decided that for now @_spi is the way to go, as it avoids build system issues. The goal is to remove the number of underscored public types and fields.
Resolves#522
Some command names were misleading, they should be better now. Also removed a redundant initialiser.
PartialCommandStream -> SynchronizedCommand
CommandStream -> CommandStreamPart