Coder Social home page Coder Social logo

support retrieval of folder flags about imapclient HOT 4 CLOSED

mjs avatar mjs commented on May 30, 2024
support retrieval of folder flags

from imapclient.

Comments (4)

mjs avatar mjs commented on May 30, 2024

Original comment by Menno Smits (Bitbucket: mjs0):


select_folder updated in 4319998fc9b5

from imapclient.

mjs avatar mjs commented on May 30, 2024

Original comment by Mark Eichin (Bitbucket: eichin):


As a motivational example - I was digging into why list_folders returns [Gmail] but select_folder can't select it (though list_sub_folders works fine on the same string) I found that if I server._imap.debug=5 and ran server.list_folders() it gets back

29:32.75 < * LIST (\Noselect \HasChildren) "/" "[Gmail]"

so either \Noselect should be exposed somehow (so the caller can actually not select it, instead of catching the exception), or perhaps _proc_folder_list should actually filter on it outright.

I don't know what more-complicated folder hierarchies look like, though; perhaps os.walk is a better (more pythonic) model for the interface here?

from imapclient.

mjs avatar mjs commented on May 30, 2024

Original comment by Menno Smits (Bitbucket: mjs0):


Replying to Issue #24:

Do this as a keyword arg to list_folders?

Create a select() and a list() which provide access to all available information.

list_folders() and select_folder() can call these.

from imapclient.

mjs avatar mjs commented on May 30, 2024

Original comment by Menno Smits (Bitbucket: mjs0):


This applies to both list_folders() and select().

from imapclient.

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.