first_labeled_message

 $

folder


->first_labeled_message
(

label

)

Returns the message number of the first message in the folder that has label associated with it, or 0 if there are none.