$folder->list_all_labels
folder
Returns a list, in no specific order, of all labels associated with messages in the folder. If called in scalar context, returns the number of labels associated with the messages.
Copyright © 2001 O'Reilly & Associates. All rights reserved.