Git Product home page Git Product logo

Comments (3)

jstedfast avatar jstedfast commented on June 6, 2024

The XLIST command is sent once the client is authenticated because it needs to know which folders are the Sent/Trash/Drafts/etc.

(bunch of other XLIST commands)

Those aren't commands, those are responses. MailKit only sends 1 XLIST command in total, no matter how many folders you might have.

I have 18 folders so it sends 36 commands one after the other.

I suspect you are mistaking responses for commands just like you did above, but I can confirm it if you can provide the relevant portion of the protocol log for me to examine.

Is that how its supposed to work?

Based on what I've seen so far, yes.

from mailkit.

thecodrr avatar thecodrr commented on June 6, 2024

@jstedfast

But why does it need to know special folders when I haven't explicitly requested any folders yet? If it really is necessary, is there a way to use the XLIST response to get the list of folders directly? So far I can only access the folders after doing a GetFolders call. If MailKit already sent an XLIST command, shouldn't it use it to populate the folders too?

I am afk right now but as soon as I am back, I'll send over the relevant protocol logs for LIST & STATUS commands. They definitely were separate but I could be wrong.

Edit: I was definitely wrong. It was just one command and a bunch of responses so that's not an issue (sorry for the confusion). However, the original issue with XLIST command is still there.

from mailkit.

jstedfast avatar jstedfast commented on June 6, 2024

If MailKit already sent an XLIST command, shouldn't it use it to populate the folders too?

It does. This is why ImapClient.GetFolder(SpecialFolder.Drafts) doesn't take a CancellationToken because it does not require a command to be sent to the IMAP server.

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.