Find Jobs
Hire Freelancers

Script to write email Attachment to Filesystem (m2fs)

$30-250 USD

In Progress
Posted over 14 years ago

$30-250 USD

Paid on delivery
PHP script that runs on any linux system that does the following. - Checks a certain email address (pop and/or imap ok, but it must work with gmail accounts, see google help pages on ports and ssl connections) - 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 configured in the script. Other extensions are ignored. - In the script, a root directory, and a directory in that root directory for attachments to be saved is specified in a configuration file, and the sub-directory will be specified in the subject of the mail. Example, if the attachments directory is configured as "/home/me/m2fs/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. - If the mail subject has spaces or any special characters other than - or _ in it, then those characters should be replaced with "_". - A log of any errors should be stored in another directory under the root dir that is also configured in the config file. Additional specifications: - zip files should be extracted (not left as zip files) and the contents of the zip file should be saved with their original file names in the directory that is specified in the subject of the email. There is no need to create another directory for the zip file content, just treat those contents as if they were attached to the email unzipped. - If a file of the same name exists already in the same directory that is specified, then a "_n" (where n is a number starting at one) should be added to the new file before the extension. Eg: if [login to view URL] exists, and [login to view URL] is sent by email to the same directory, then it should be renamed [login to view URL] and saved. If it is sent yet again after that, it should become [login to view URL] and so on. - Each saved email (body file, text without attachments) will be saved. - The file body (text file) however should be saved in another directory, with the timestamp as the file name e.g. [login to view URL] (timestamp until second). The full text should remain in the body file, but not the attachment content. The attachment names however should remain in the content, as this will facilitate searching who sent which attachment later on. 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. Best is a php script that can be run from php-cli by cron. Otherwise a perl script that can be run by cron is ok. Anyone who proposes php will be chosen over people who chose perl.
Project ID: 580744

About the project

11 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
11 freelancers are bidding on average $165 USD for this job
User Avatar
I can do this job for you. See PM for details.
$100 USD in 3 days
5.0 (669 reviews)
8.0
8.0
User Avatar
I can do this with php for you.
$210 USD in 8 days
5.0 (59 reviews)
6.7
6.7
User Avatar
I can do it for IMAP/Gmail. I've done similar script before (see my review). Escrow required to start the project.
$75 USD in 3 days
5.0 (24 reviews)
4.8
4.8
User Avatar
Dear Sir, I can provide what you need, please read PMB
$200 USD in 5 days
5.0 (9 reviews)
4.7
4.7
User Avatar
I can write a standalone php script for this job.
$200 USD in 3 days
5.0 (13 reviews)
4.0
4.0
User Avatar
Please see PMB.
$40 USD in 0 day
4.8 (12 reviews)
3.3
3.3
User Avatar
Dear Project Owner, I can create this script, all in php+shell scripting. on further communication if you like, i will send you a development plan about steps and time required. Thank you
$400 USD in 15 days
0.0 (0 reviews)
0.0
0.0
User Avatar
lets do it... check pm for details
$80 USD in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi, I'm ready to finish the job for you. See my profile to assure you.
$250 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of POLAND
Warsaw, Poland
0.0
0
Member since Dec 20, 2008

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.