--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Sends a LIST command, and returns a subset of names from the complete set of all names available to the client. refname provides a context (for instance, a base directory in a directory-based mailbox hierarchy). mailbox specifies a mailbox or (via wildcards) mailboxes under that context. Two wildcards may be used in mailbox: '*', which matches all characters including the hierarchy delimiter (for instance, '/' on a UNIX-hosted directory-based mailbox hierarchy); and '%', which matches all characters except the hierarchy delimiter." - !ruby/struct:SM::Flow::P body: If refname is empty, mailbox is used directly to determine which mailboxes to match. If mailbox is empty, the root name of refname and the hierarchy delimiter are returned. - !ruby/struct:SM::Flow::P body: "The return value is an array of +Net::IMAP::MailboxList+. For example:" - !ruby/struct:SM::Flow::VERB body: " imap.create("foo/bar")\n imap.create("foo/baz")\n p imap.list("", "foo/%")\n #=> [#<Net::IMAP::MailboxList attr=[:Noselect], delim="/", name="foo/">, \\\n #<Net::IMAP::MailboxList attr=[:Noinferiors, :Marked], delim="/", name="foo/bar">, \\\n #<Net::IMAP::MailboxList attr=[:Noinferiors], delim="/", name="foo/baz">]\n" full_name: Net::IMAP#list is_singleton: false name: list params: (refname, mailbox) visibility: public