Comments (6)
Let me know if you have any specific issues.
from mailkit.
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.
What do you mean break out an index-only API?
from mailkit.
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.
I think I see in the GetMessageForSequenceId API. I will have a closer gander through that lens. Thank ye...
from mailkit.
GetMessageForSequenceId is internal, you want Pop3Client.GetMessage (int index, CancellationToken token)
from mailkit.
Related Issues (20)
- Leading double period from .NET Framework's SmtpClient not decoded HOT 5
- Pop settings using mailkit HOT 1
- Why am I getting "**MailKit.Net.Smtp.SmtpCommandException:** 'Local Error, closing transmission channel'" when execution gets to client.Connect("mail.2kks.com.ng", 587, SecureSocketOptions.StartTls)? HOT 1
- Handle Envelope-to header HOT 1
- Setting up email configuration in .net core 6 HOT 1
- Memory leak in Crypto32 APi Class SafeCertContextHandle due to Mailkit handling of SSL Certs HOT 43
- LinkedResource from byte[] or stream - more info please HOT 3
- Occasional Problems Downloading IMAP from Office365 HOT 7
- How do I delete an email to trash on gmail.com? HOT 1
- Doc Bug...I think HOT 4
- Can MailKit save a message to file? HOT 3
- Cannot sign into GMail using SMTP HOT 2
- Could not load the file 'I18N.CJK'. HOT 5
- MDaemon server: errors while using MailKit HOT 4
- Get mailbox Size using pop3 HOT 4
- Office365 and ConfidentialClientApplicationBuilder HOT 16
- Can not fetch custom header HOT 2
- Example how to use GetStreamAsync method for ImapFolder HOT 3
- UniqueIdRange.ToList() doesn't work for large arrays. HOT 3
- Unable to delete certain e-mails - Index was outside the bounds of the array. HOT 5
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 mailkit.