alienscience / imapsrv

An IMAP server written in Go
BSD 3-Clause "New" or "Revised" License
48 stars 9 forks source link

LIST Command #3

Closed twitchyliquid64 closed 9 years ago

twitchyliquid64 commented 9 years ago

The LIST command returns a subset of names from the complete set of all names available to the client. Zero or more untagged LIST replies are returned, containing the name attributes, hierarchy delimiter, and name; see the description of the LIST reply for more detail.

TL;DR - returns the hirarchy of mailboxes.

twitchyliquid64 commented 9 years ago

Example: C: A101 LIST "" "" S: * LIST (\Noselect) "/" "" S: A101 OK LIST Completed C: A102 LIST #news.comp.mail.misc "" S: * LIST (\Noselect) "." #news. S: A102 OK LIST Completed C: A103 LIST /usr/staff/jones "" S: * LIST (\Noselect) "/" / S: A103 OK LIST Completed C: A202 LIST ~/Mail/ % S: * LIST (\Noselect) "/" ~/Mail/foo S: * LIST () "/" ~/Mail/meetings S: A202 OK LIST completed

twitchyliquid64 commented 9 years ago

https://workaround.org/ispmail/lenny/test-fetching-with-imap-and-pop3

alienscience commented 9 years ago

This is sort of working on the list-command branch. I will continue development sometime in the next 2 week.s

alienscience commented 9 years ago

I have commited an initial implementation.