$folder->label_exists(msg_num, label)
folder
msg_num
label
Returns 1 if label is associated with message msg_num, otherwise returns 0.
1
0