$folder->select_label(label)
folder
label
Returns a list of messages with the label label. If called in scalar context, returns the number of messages that have the label.