The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
We need a small standalone PHP script written that we can run regularly using Cron that will access an IMAP account and copy the contents of the emails to folders as files.
The emails are accounting receipts with attachements (usually PDF) and are sent with formatted subject lines:
[date YYYY-MM-DD] - [amount] - [company] - [description] - [notes (optional)]
2010-01-25 - $24.95 - Google Inc - Addwords Advertising - Paid using VISA
The script should check the inbox of a specified IMAP account and parse any new emails in the inbox not flagged as processed. Successfully parsed emails with correctly formatted subjects should do the following:
- Create a directory with the date as the name (if it does not already exist) in format YYYY-MM-DD
- Create a subdirectory with the name [amount]-[company]-[transaction description]
- Copy readable content of the email to that subdirectory in a file called details.html
- Copy any file attachements to that subdirectory with their...
Sign in or Register to see more