Commit Graph
18 Commits
Author SHA1 Message Date
David Evans 81c8e9158d Underscore EncodeBuffer (#479)
* Underscore

* Underscore everything

* Add soundness self insert
2021-03-18 11:25:05 +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
Matt Diephouse 2118f38e9b Use a SequenceNumber for ResponseTextCode.unseen (#404) 2021-01-14 15:23:23 +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
Matt Diephouse c28bc3756a Use UIDs for nextUIDs and UIDValiditys for uidValiditys (#346) 2020-11-05 19:39:51 +00:00
David EvansandGeorge Barnett 9642c5a063 Document the various core writing functions. (#333)
* Simplify array has minimum size

* Document the writing functions

* Fix sanity

* Many documentation comments

* Update Sources/NIOIMAPCore/ByteBuffer+WriteLiteral.swift

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

* Address PR comments

* PR comments

Co-authored-by: George Barnett <gbarnett@apple.com>
2020-10-13 11:39:45 +01:00
David EvansandGeorge 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 155c7113c7 Fix various uses of "mod" (#317)
* Fix some mods

* Finish fixing mod

* Forgot to commit this

* Fix sanity
2020-09-22 15:38:58 +01:00
David Evans 8c81869e72 Implement RFC 5464 Metadata (#315)
* Add capability

* Add metadata value

* Add entry

* Add scope option

* Add response text code

* Fix entry types

* Add metadata option

* Add get metadata

* Add Metadata response

* Finish up

* Fix sanity

* Change space parsing order
2020-09-21 10:06:15 +01:00
David Evans ffdda2a02b Implement RFC 7162 CONDSTORE (#308)
* Add closed

* Entry types

* Support vanished

* Add attribute flag support

* Add sequence match data support

* Add select parameter

* Add SearchSortModifierSequence

* Add SelectParameter.condstore

* Add SortData

* Fix sanity

* Implement SearchSort

* Implement EntryFlagName

* Implement FetchModifierResponse

* Implement ResponseTextCode

* Implement ChangedSince and FetchModifier

* Implement SearchModifierSequence

* Implement SearchKey

* Implement StoreModifier

* Fix sanity

* Fix select spacing

* Fix sanity
2020-09-15 17:29:52 +01:00
Peter Adams f1939cc2cc RFC 5182 (Reference Last Search Result) (#311)
Motivation:

User requested IMAP extension

Modifications:

Add seq-last-command("$") to sequence-set
Add "NOTSAVED" to resp-text-code

Result:

RFC 5182 is supported
2020-09-15 15:31:21 +01:00
David Evans fd3e16ad49 Implement RFC 6154 SPECIAL-USE (#303)
* Implement

* Tests for new types

* Tests

* Fix

* Fix tests

* Fix sanity

* Fix warnings

* Silence warnings
2020-09-08 11:25:48 +01:00
David Evans 2fef4ba772 Implement RFC 4315 UIDPLUS (#302)
* Implement

* Test

* Fix tests
2020-09-03 10:51:04 +01:00
Johannes Weiss 626de3daf0 command encoder (#102) 2020-05-18 15:49:40 +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 19ecdb9576 Seperate module (#61) 2020-04-20 12:41:39 +01:00