Notices
ScoobyNet General General Subaru Discussion
Sponsored by:
Sponsored by:

Information from email to database?

Thread Tools
 
Search this Thread
 
Old 24 January 2001, 04:24 PM
  #1  
Carl Harvey
Scooby Regular
Thread Starter
 
Carl Harvey's Avatar
 
Join Date: Jan 2000
Location: Peterborough
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

Help.

I volunteered to receive competition forms (via email) for a client and to print them and then data capture the information into a database. Unfortunately for me I am getting over 100 responses per day.

Does anyone know how I can extract the information from plain text emails into a database.

Old 24 January 2001, 04:52 PM
  #2  
RichB
Scooby Regular
 
RichB's Avatar
 
Join Date: Apr 1999
Location: Bore Knee Muff
Posts: 3,666
Likes: 0
Received 0 Likes on 0 Posts
Cool

Mac or PC?
Mac - I can help, PC I can't...
Old 24 January 2001, 04:55 PM
  #3  
mattski
Scooby Regular
 
mattski's Avatar
 
Join Date: Oct 2000
Posts: 1,092
Likes: 0
Received 0 Likes on 0 Posts
Post

if it is a Solaris/Linux box no prob

lemon squeezy as long as you are willing to install a couple of perl modules and mysql.
Old 24 January 2001, 05:23 PM
  #4  
chiark
Scooby Regular
 
chiark's Avatar
 
Join Date: Jun 2000
Posts: 13,735
Likes: 0
Received 0 Likes on 0 Posts
Post

PERL and MySQL are your friends. Even on a windows box, PERL was practically made for this sort of task.

Your eyes will be opened to the power of the language.

(If I was being pedantic, I should point out that there's a "Non Scooby Related" area for this sort of thing, but I'm not so I wont)
Old 24 January 2001, 05:36 PM
  #5  
GranTurismo
Scooby Regular
 
GranTurismo's Avatar
 
Join Date: Apr 1999
Posts: 882
Likes: 0
Received 0 Likes on 0 Posts
Post

Hello,

Depending on the structure of the text you may be able to export them into a csv file or via word into excel
Old 24 January 2001, 06:55 PM
  #6  
Carl Harvey
Scooby Regular
Thread Starter
 
Carl Harvey's Avatar
 
Join Date: Jan 2000
Location: Peterborough
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks for the help

Its PC not mac and Win 98.

chiark & mattski how would I go about using PERL and MySQL?

Is there an easy way to automate exporting to say excel?

Old 24 January 2001, 09:34 PM
  #7  
kurtw
Scooby Regular
 
kurtw's Avatar
 
Join Date: Jul 2000
Posts: 294
Likes: 0
Received 0 Likes on 0 Posts
Post

Try downloading a product called listking from the internet.

Sorry I can't tell you where to obtain it, but I'm pretty sure it'll do the job you are looking for.

Regards
Kurt
Old 24 January 2001, 10:01 PM
  #8  
KF
Scooby Regular
 
KF's Avatar
 
Join Date: Feb 2000
Posts: 405
Likes: 0
Received 0 Likes on 0 Posts
Post

Surely the quickest way would be to write a macro (or record one) to run under your chosen MS app.
Tools->Macros->Record.

Edit: Just thought I would illucidate. If you have a more recent version of Excel, you can open plain text files. It runs you through a set of options, so that you should be able to do some of the work then.
Then run your macro which will do a search for you keywords and copy and paste to a seperate sheet.
KF.

[This message has been edited by KF (edited 24 January 2001).]
Old 24 January 2001, 10:20 PM
  #9  
RichardH
Scooby Regular
 
RichardH's Avatar
 
Join Date: Sep 2000
Posts: 122
Likes: 0
Received 0 Likes on 0 Posts
Post

If you need a good search engine then I've been using a tool called WebFerret (www.ferretsoft.com). Its quick and usually finds the site or software your after better than any other search engine I've used in the last 6 years!

Ric
Old 24 January 2001, 10:24 PM
  #10  
106rallye
Scooby Regular
 
106rallye's Avatar
 
Join Date: Aug 2001
Posts: 722
Likes: 0
Received 0 Likes on 0 Posts
Post

Is the competition web based? if so you could look into this alternitive.
If the web page host has PHP and mysql on the server you can use that to do it without you having to recieve the emails. I used this recently from a direct input from a form on a web page to a MySQL database and it worked really well. Then the client can access the database without any effort from you! just need to modify the input web page to include a few lines of PHP code
Good luck!
Old 25 January 2001, 09:02 AM
  #11  
GranTurismo
Scooby Regular
 
GranTurismo's Avatar
 
Join Date: Apr 1999
Posts: 882
Likes: 0
Received 0 Likes on 0 Posts
Post

Hello,

My mail client is Outlook 97 I just did the following.

Try this on about 10 mails before you try th whole lot!

Move the Emails to one folder
Click file
Then Import and Export
PIck Export to another file
Pick the type as CSV or Excel
Pick the folder to export from
Click the Destination drive/dir


It worked very wll for me, but it depends on How structured the mail is.

You may get funny Charactors where there was a return in the text, but that should help you restructure it.

Good luck.

Dave.
Old 25 January 2001, 09:18 AM
  #12  
Carl Harvey
Scooby Regular
Thread Starter
 
Carl Harvey's Avatar
 
Join Date: Jan 2000
Location: Peterborough
Posts: 231
Likes: 0
Received 0 Likes on 0 Posts
Post

Many Thanks.

I'll give your suggestions a try.

Mattski. Where can I get hold of Perl (5.x) and MySQL and how much is it likely to cost?

Unfortunately I can't make any changes on the host site.
Old 25 January 2001, 12:36 PM
  #13  
mattski
Scooby Regular
 
mattski's Avatar
 
Join Date: Oct 2000
Posts: 1,092
Likes: 0
Received 0 Likes on 0 Posts
Post

Carl,

You will need Perl (5.x) and MySQL of some description. In addition you will need some perl modules so that you can talk to MySQL. These are called DBI and Msql/MySQL modules.

They are available from CPAN. (
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
fumbduck
Wheels, Tyres & Brakes
3
04 October 2015 07:27 PM
Iqy7861
Insurance
5
01 October 2015 07:57 PM
wms-racing
Wanted
0
28 September 2015 10:05 AM
Pro-Line Motorsport
Car Parts For Sale
0
27 September 2015 11:19 AM



Quick Reply: Information from email to database?



All times are GMT +1. The time now is 03:34 AM.