Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 9th, 2003, 05:14 AM
ollo ollo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Posts: 1 ollo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question File upload by email plus mysql entries ?

Hi folks,

My plan is to realize this :

Anybody sents a mail with Text and attachment to the e-mail adress URL. My mailserver is putting this mail into the ascii file of the mail account (for example in the file web1_3) - so far so good.

Now i want a script which scans permanently the file of this mailaccount, extracts the attachement - stores the file in any path of the server and puts the text into an table of a mysql database.

Anybody got an idea if there is a ready-to-use script or a script i could start and manipulate ?

For better understanding : I have a picture archive for users and i want to offer them them the possibility just to send an e-mail with a little text and just after sending the file is available in my running gallery with the text under the picture. ( I alredy have the gallery script - i'm just searching for the shell script as interface between mail and gallery).

Hopefully anybody got an idea ?

Greetings, OllO

Reply With Quote
  #2  
Old October 9th, 2003, 05:43 AM
NoXcuz's Avatar
NoXcuz NoXcuz is offline
Wiking
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Sep 2000
Location: Sweden
Posts: 3,608 NoXcuz User rank is Sergeant (500 - 2000 Reputation Level)NoXcuz User rank is Sergeant (500 - 2000 Reputation Level)NoXcuz User rank is Sergeant (500 - 2000 Reputation Level)NoXcuz User rank is Sergeant (500 - 2000 Reputation Level)NoXcuz User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 7 h 49 m 27 sec
Reputation Power: 21
One idea would be to use procmail and set up a filter for incoming mails to user@test.com and have it call a perl script which uses DBI and DBD::MYSQL to insert the contents into a mysql database.
As for the images, checkout the procmail mailing list for a few ideas.
These lines were found here, and should give you something to start with
Code:
#####################
# delete all .pif, .scr, .com, and .bats
:0 B
*^Content-Type:
(audio/x-wav|application/octet-stream|multipart/mixed|audio/x-midi);
*.*name=.*\.(pif|scr|com|bat)
/dev/null
######################


//NoXcuz
__________________
UN*X is sexy!
who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep

Reply With Quote
  #3  
Old August 2nd, 2007, 07:13 AM
joehamilton joehamilton is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 1 joehamilton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 51 sec
Reputation Power: 0
Has anyone had any luck tracking down more information on this?
I am looking for more info and just wondering if it is possible to do with PHP.
Know any sites with a script or how to?
cheers!

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > File upload by email plus mysql entries ?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway