Comments (7)
@danieleggert any other instances where we NEED to preserve the non-decoded bytes even if we can correctly decode then?
Not that I can think of right now, but I’ll comment as I go through.
from swift-nio-imap.
@danieleggert so you would not want us to decode it? We could the UTF7/8 decoding?
from swift-nio-imap.
We have #10 right now to to that because we assumed that we can do a lossless decoding.
from swift-nio-imap.
It’s important to preserve the non-decoded byte stream since that’s what we can round-trip.
The non-decoded byte stream is the identity of the mailbox, whereas the decoded is the user-displayable String
.
The decoding would be great, too, but on second thought, that should probably be part of something else, since you’d want to split the MailboxName
into components (based on the separator from the LIST
response), and then transform each part as needed, i.e. basically turn (/
, a/b
) into ["a", "b"]
. But for nested folders, we may only need / want to convert the last component or such.
from swift-nio-imap.
Thanks v much @danieleggert , that makes sense. @Davidde94 let's preserve MailboxName as ByteBuffer then, alongside a comment that is basically what Daniel writes :).
@danieleggert any other instances where we NEED to preserve the non-decoded bytes even if we can correctly decode then?
from swift-nio-imap.
Sounds good to me.
from swift-nio-imap.
Thanks, commenting on #10
from swift-nio-imap.
Related Issues (20)
- `MailboxInfo.Attribute` has a broken `Hashable` conformance
- Add conversion between MessageIdentifierSet<UnknownMessageIdentifier> and its UID / Sequence number counter parts
- `uidStore` + `store` should use `StoreModifier` (similar to `fetch` using `FetchModifier`) with `unchangedSince`
- `Command.fetch` / `.uidFetch` add extra `(())` at the end if `[FetchModifier]` is empty.
- Ability to create “log output” from ResponseOrContinuationRequest and CommandStreamPart
- FramingParser.defaultFrameSizeLimit should be 8192
- Can't parse RFC822.TEXT NIL
- Protect against run-away literal lengths
- Add String map to GrammarParser
- MailboxData.search should use UnknownMessageIdentifier instead of UInt32
- `LITERAL-` is broken. Needs to encode as `{50}+`, not `{50}-`
- Failing to parse complex BODYSTRUCTURE HOT 1
- Message Identifier Convenience
- BODYSTRUCTURE fails to parse
- Parse SEARCH / ESEARCH responses with SIMD
- FETCH response due to FLAGS change when IDLE'ing
- `MailboxData.searchSort` should be rolled into `.search`
- Should remove FetchModificationResponse and use ModificationSequenceValue directly
- Enforce mailbox attribute requirements from RFC 9051
- Example use of SwiftNIO ChannelHandlers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-nio-imap.