In Progress

Mail Attachment to Filesystem

PHP or Perl script that runs on any linux system that does the following.

- Checks a certain email address (pop or imap ok)

- Gets the email, strips the attachments out of it, and saves them to

a directory on the server

- File extensions that are allowed as an attachment can be configued in the script. Other extensions are ignored.

- In the script, a root directory for attachments to be saved is specified, and the sub-directory (that is under the hard coded root directory) is specified in the subject of the mail.

Example, if the root directory is hard coded as "/home/me/attachments" and someone sends a mail to the specified email address with an attachment, and the Subject of the mail is "mystuff-docs", then the attachment would be stripped and placed in the /home/me/attachments/mystuff/docs/ directory.

- If the directory that is specified in the Subject of the mail doesnt exist, it should be created, with any other directories in the path specified in the Subject (the whole path should be created if it doesnt exist.

- The body of the mail should be stored in another fixed (configured) directory, with the timestamp of the mail.

- A log of any errors should be stored in another directory that is also configured.

Preferable, this solution should be standalone (not need any other files other than standard PHP libs or perl libs, but if that is impossible, procmail and fetchmail may be used for mail fetching and processing.

Skills: Perl, PHP

See more: attachment filesystem php, mail attachment root, checks in the mail, php attachment filesystem, save email attachment filesystem php, timestamp, mail script, mail php, imap, attachment, php imap pop, perl email subject, file attachment script php, linux script log, email php attachment, linux mail, perl log, cgi email attachment, linux perl script, email attachment file system

About the Employer:
( 0 reviews ) Warsaw, Poland

Project ID: #360086

Awarded to:

tuxer

***************************************************** Hi. 5+ yrs experienced linux admin. See PMB. *****************************************************

$70 USD in 4 days
(0 Reviews)
0.0

8 freelancers are bidding on average $83 for this job

Hariomtechnology

Please check personal message board . ********** "HariOm Technologies" (a Web 2.0 company) is a growing web development company delivering web development services of any complexity to clients worldwide. Being in IT More

$70 USD in 1 day
(64 Reviews)
6.8
Techvallyit

Please check PM.Thanks.

$100 USD in 3 days
(0 Reviews)
1.1
Webstars

Hi, I have already worked on one such script and will be able to do the same for your task if I am selected.

$100 USD in 7 days
(0 Reviews)
2.9
demigraff

This should be a relatively simple project in Perl. How should the script respond if a file already exists?

$90 USD in 14 days
(0 Reviews)
0.0
Awstin

Kindly check PMB. Regards.

$100 USD in 3 days
(0 Reviews)
0.0
valavanp

I am really interested to take up and complete your assingment.

$85 USD in 2 days
(0 Reviews)
0.0
bytecoding

please check pmb for my qualification and potential to work

$50 USD in 1 day
(0 Reviews)
0.0