Ticket #24 (closed enhancement: fixed)

Opened 2 years ago

Last modified 23 months ago

support retrieval of folder flags

Reported by: mhammond Owned by: menno
Priority: major Milestone: 0.6
Version: Keywords:
Cc: eichin@…

Description

Do this as a keyword arg to list_folders?

Change History

  Changed 2 years ago by menno

  • milestone changed from 0.6 to 0.5.2

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

in reply to: ↑ description ; follow-up: ↓ 3   Changed 2 years ago by menno

Replying to menno:

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.

in reply to: ↑ 2   Changed 2 years ago by eichin

  • cc eichin@… added

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?

  Changed 2 years ago by menno

  • reporter changed from menno to mhammond

  Changed 2 years ago by menno

  • milestone changed from 0.5.2 to 0.6

  Changed 2 years ago by menno

  • owner set to menno
  • status changed from new to accepted

select_folder updated in 4319998fc9b5

  Changed 23 months ago by menno

  • status changed from accepted to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.