所有软件外包项目 Gray arrow bg Parse email - save attachments

Parse email - save attachments 资金已经托管 线上项目,线下洽谈,智城安排

发包方 : Mary hall 接包方 : Getwebhelp 状态 :完成
项目编号 : 90174
项目预算 : $1,000-5,000
开发周期 : 7 天
技能 : MySQL
发布日期 : 2009-10-23

描述

We need a script that will parse multi-part emails. The script will be required to do the following:



Needs to be IMAP, SSL context (potentially using gmail).



1. Verify the following before doing anything else


- Fetch *new* emails (script will run from cron job)


- from address: will be the primary key for users. If email already exists, grab the user id. if it doesn't, create a new user (id, email & name from headers).


- attachment type (only accept images)


- attachment size (needs to be a variable that we can change later if need be)



Once user is identified (fetched or created), we save the attachment.



2. Save the the email to a MySQL database


Whatever is needed to identify email , +


- user id


- subject


- date/time


- body (html/text)


- attachments (name of the attachment, location of the file on the server)



3. Save the file on the web server


- Location will be (uploads/yyyy/mm/dd/)



4. Send email to the user to confirm the process or inform of an error.



Nothing is set in stone, and any recommendation or advice is welcome.



** We require full ownership



** We require clean and detailed commenting within the code, we will review every line of code).



** If you have questions on any requirements please let us know.



竞标

请您先登录,然后提交此项目的竞标方案。
还不是智城用户? 智城期待您的加入,请注册成为我们的一员吧!
Project ad2