I need a PHP script that will use imap to fetch all mails in a gmail account into a mysql database. The script should synchronize the database with the gmail account; it means that only new emails are fetched. The mails should be fetched from the gmail, even when the mail is not in the gmail inbox anymore (but in archive). Spam and deleted mails should not be fetched at all.
The following information should go in the database:
The body have to be in html or clean text. If the mail has two or more receivers (CC or BCC) then please insert two or more rows. This means one row per receiver.
15 freelancers are bidding on average $95 for this job
I have this already wrote. Can have up and running on your server in a matter of a few hours. 100% needed in escrow or prepayment via paypal is required. But you won't need to release escrow if needed.