class Net::IMAP

def xlist(refname, mailbox)

++
unless the SPECIAL-USE return option is supplied.
servers MAY return SPECIAL-USE attributes, but are not *required* to
TODO: Net::IMAP doesn't yet have full SPECIAL-USE support. Supporting
--
a deprecated Gmail extension (replaced by +SPECIAL-USE+).
The server's capabilities must include +XLIST+,

===== Capabilities

Related: #list, MailboxList

#]
#, \\
#=> [#, \\
p imap.xlist("", "foo/%")
imap.create("foo/baz")
imap.create("foo/bar")

The return value is an array of MailboxList objects. For example:

returned refer to the function of the folder/mailbox, e.g. :Sent
The XLIST command is like the LIST command except that the flags

name of +refname+ and the hierarchy delimiter are returned.
which mailboxes to match. If +mailbox+ is empty, the root
If +refname+ is empty, +mailbox+ is used directly to determine

which matches all characters *except* the hierarchy delimiter.
'/' on a UNIX-hosted directory-based mailbox hierarchy); and '%',
all characters *including* the hierarchy delimiter (for instance,
Two wildcards may be used in +mailbox+: '*', which matches
a mailbox or (via wildcards) mailboxes under that context.
in a directory-based mailbox hierarchy). +mailbox+ specifies
+refname+ provides a context (for instance, a base directory
the complete set of all names available to the client.
Sends a XLIST command, and returns a subset of names from
def xlist(refname, mailbox)
  synchronize do
    send_command("XLIST", refname, mailbox)
    clear_responses("XLIST")
  end
end