GithubHelp home page GithubHelp logo

Comments (7)

danieleggert avatar danieleggert commented on July 24, 2024 1

@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.

weissi avatar weissi commented on July 24, 2024

@danieleggert so you would not want us to decode it? We could the UTF7/8 decoding?

from swift-nio-imap.

weissi avatar weissi commented on July 24, 2024

We have #10 right now to to that because we assumed that we can do a lossless decoding.

from swift-nio-imap.

danieleggert avatar danieleggert commented on July 24, 2024

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.

weissi avatar weissi commented on July 24, 2024

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.

Davidde94 avatar Davidde94 commented on July 24, 2024

Sounds good to me.

from swift-nio-imap.

weissi avatar weissi commented on July 24, 2024

Thanks, commenting on #10

from swift-nio-imap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.