A PHP Script to Monitor Google Apps/Gmail Attachments

IN PROGRESS
Bids
9
Avg Bid (USD)
$190
Project Budget (USD)
$30 - $100

Project Description:
I need someone to make a PHP script that monitors a google apps email account and forwards every email with an PDF or TIFF attachment to an email. The forwarded email needs a different subject, what subject to use is decided by where the email/attachment was originally sent to.

How the script should work:
1. Our suppliers send invoices to a given email ex. invoice[at]company1.com
2. Emails sent to invoice[at]company1.com, invoice[at]company2.com and invoice[at]company3.com (etc) will all be forwarded to invoicebox[at]mydomain.com (this is the invoice box)
3. Based on the original sent-to email we know what subject to use when the PHP script forward the attachment.
4. When the attachment is forwarded, mark the email as unread and move to a folder named ”completed”.


The script needs two types of configuration, the first is static and can be defined in the top of the PHP file, this config is:
Forward attachment to what email
A default email for error reports
A list of valid attachments (PDF, TIFF).
Log in details to the invoice box (Google Apps Email / Gmail)

The forward configuration should be a .txt file, separate fields with ; and each line is a new company, example:
invoice[at]company1.com;subject1
invoice[at]company2.com;subject2

If the email is sent directly to the invoice box , to an email that is not listed in the config file or the emails monitored does not have an attachment, notify the default email (error report).


If you have read the whole description, please start your bid comment with GA.

I need you to develop the script from section 3 and I want to forward the emails through Google Apps Email (NOT with the PHP mail() function), this because I want to track forwarded emails through the email account (invoice box).


The script has to be light weight and efficient. I’ll run the script with cronjob.

Please give examples if you have done similar work earlier.

Skills required:
PHP, Software Architecture
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 30
in 5 days
$ 100
in 1 days
$ 300
in 10 days
$ 100
in 2 days
$ 250
in 5 days
$ 30
in 1 days
$ 350
in 8 days
Hire iacovos
$ 300
in 8 days
Hire cagatayoncul
$ 250
in 7 days