Author Topic: Decode an email  (Read 44 times)

0 Members and 4 Guests are viewing this topic.

Online dajTopic starter

  • Irregular
  • Posts: 2
  • Gender: Male
    • View Profile
Decode an email
« on: Yesterday at 04:13:41 PM »
Hi all,

Firstly, i apologise for the long post, but I wanted to give you an overall feel for what I am trying to achieve.  The question is at the end!!

My Plan is to take emails and stores these in MySql for late retrieval and display.  The email could be plain text or html and may contain any number of file attachments (or none)!

I have no problem getting the email or saving it into SQL, but my problem is decoding it and extracting any attachments.  Ultimately in the SQL database I will have all the usual parts (To, From, etc) plus the body of the email (plain and/or html) and a list of attachments.

Everything I have read so far involves getting the emails from an iMap mail server however my emails are all contained in individual text files.

My question is really to enquiry what classes/scripts are available to help me decode the text file (email) and gather all the information I need.

Any help or pointers much appreciated

Thanks

David

Offline spiderwell

  • Devotee
  • Posts: 779
  • Gender: Male
  • if i'm going to stare at a free avatar <(^-^)>
    • View Profile
Re: Decode an email
« Reply #1 on: Yesterday at 07:01:03 PM »
would not a email server be better designed to do this kind of storage? (sorry if that sounds too obvious and is infact incorrect, my knowledge on email servers/software is next to nothing
why is the man trying to pixelate my fractal lifestyle

Need a List? try www.cutandpastelists.com

Online dajTopic starter

  • Irregular
  • Posts: 2
  • Gender: Male
    • View Profile
Re: Decode an email
« Reply #2 on: Today at 04:00:28 AM »
No

I need them in a database for logging.  They do not come to one particular email address