File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/net-imap-0.3.4/ri/Net/IMAP/list-i.ri
U:RDoc::AnyMethod[iI" list:ETI"Net::IMAP#list;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"fSends a {LIST command [IMAP4rev1 ยง6.3.8]}[https://www.rfc-editor.org/rfc/rfc3501#section-6.3.8] ;TI"Pand returns a subset of names from the complete set of all names available ;TI"Hto the client. +refname+ provides a context (for instance, a base ;TI"Odirectory in a directory-based mailbox hierarchy). +mailbox+ specifies a ;TI"Mmailbox or (via wildcards) mailboxes under that context. Two wildcards ;TI"Mmay be used in +mailbox+: '*', which matches all characters *including* ;TI"Athe hierarchy delimiter (for instance, '/' on a UNIX-hosted ;TI"Odirectory-based mailbox hierarchy); and '%', which matches all characters ;TI"&*except* the hierarchy delimiter.;To:RDoc::Markup::BlankLine o;
; [I"DIf +refname+ is empty, +mailbox+ is used directly to determine ;TI"@which mailboxes to match. If +mailbox+ is empty, the root ;TI"@name of +refname+ and the hierarchy delimiter are returned.;T@o;
; [I"1The return value is an array of MailboxList.;T@o;
; [I" Related: #lsub, MailboxList;T@S:RDoc::Markup::Heading:
leveli
: textI"For example:;T@o:RDoc::Markup::Verbatim; [I"imap.create("foo/bar")
;TI"imap.create("foo/baz")
;TI"p imap.list("", "foo/%")
;TI"Q#=> [#<Net::IMAP::MailboxList attr=[:Noselect], delim="/", name="foo/">, \\
;TI"` #<Net::IMAP::MailboxList attr=[:Noinferiors, :Marked], delim="/", name="foo/bar">, \\
;TI"S #<Net::IMAP::MailboxList attr=[:Noinferiors], delim="/", name="foo/baz">];T:@format0:
@fileI"lib/net/imap.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(refname, mailbox);T@,FI" IMAP;TcRDoc::NormalClass00