Git Product home page Git Product logo

Comments (6)

jstedfast avatar jstedfast commented on July 17, 2024

Let me know if you have any specific issues.

from mailkit.

mwpowellhtx avatar mwpowellhtx commented on July 17, 2024

My concern here is how much of an effort it would be to break out an index-only API. I see some effort around a Command pattern also, but no Response pattern, per se, which is equally part of the protocol reading and parsing received lines from server.

Something like:

class Pop3Command
{
}

class Pop3Response
{
}

class Pop3Transaction<TCommand, TResponse>
  where TCommand : Pop3Command
  where TResponse : Pop3Response
{
}

Where command is pretty much responsible for writing through the Stream and Response is responsible for reading from the Stream. Key point being: writing and/or reading is done once, in one place, instead of repeating greeting = ReadLine, pattern I am seeing.

And so on. What I am mulling over is whether I would want to contribute along these lines.

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

What do you mean break out an index-only API?

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

FWIW, the Command/Handler pattern I'm using is simpler and more efficient than a Command/Response pattern you are talking about would be.

I still don't know what you mean by breaking out an index-only API, though. That doesn't make any sense to me because there's already an index-based API that you can use if you don't want to use the UID-based API.

from mailkit.

mwpowellhtx avatar mwpowellhtx commented on July 17, 2024

I think I see in the GetMessageForSequenceId API. I will have a closer gander through that lens. Thank ye...

from mailkit.

jstedfast avatar jstedfast commented on July 17, 2024

GetMessageForSequenceId is internal, you want Pop3Client.GetMessage (int index, CancellationToken token)

from mailkit.

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.