We need a PHP script that
* logging into a google mail account via POP3 or IMAP,
* move a certain number of email (or all found email),
* with one or more labels,
* to the inbox.
See here what are labels : [url removed, login to view]
We have unknown number of email with the label "someday". We want the script to move 5 random email with the label "someday" to our inbox.
We have a unknown number of email with the 3 labels "D/D/1", "D/M/1" and "D/Deadline". We want the script to move all the emails with these 3 lables to our inbox.
The script should be executed via cronjob.