I need a PHP script which will extract email address from my GMail Account; which match the following 2 criteria:
(a) New (UnRead) emails
(b) Matching label "XYZ" (supporting multiple labels ie. if any email has 2 lables, the match should be positive)
Please send in your offers.