CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Re: [andy7t] MySQL: Chaning $indata with <BR>'s.

 



andy7t
User

Feb 24, 2004, 3:07 AM

Post #1 of 7 (1121 views)
Re: [andy7t] MySQL: Chaning $indata with <BR>'s. Can't Post

Also,

I am using Net::POP3 to get emails.

I want to log these into my mysql database.

I've managed to grab the from and subject, but how do i get the message.

Sometimes the message follows straight after the DATE field, and on others, such as from outlook express you get loads of headers, like ContentType and X-Mailer etc.
How do i just get the message?

Andrew


davorg
Thaumaturge / Moderator

Feb 24, 2004, 1:01 PM

Post #2 of 7 (1118 views)
Re: [andy7t] MySQL: Chaning $indata with <BR>'s. [In reply to] Can't Post

The end of the headers is always marked by the first blank line in the mail.

p.s. I've broken this question out into a separate thread. It's not a good idea to add completely unrelated questions to the end of a thread.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


andy7t
User

Feb 24, 2004, 1:39 PM

Post #3 of 7 (1117 views)
Re: [davorg] MySQL: Chaning $indata with <BR>'s. [In reply to] Can't Post

OK, i've got rid of the headers, now what about all the MIME rubbish?


davorg
Thaumaturge / Moderator

Feb 24, 2004, 2:07 PM

Post #4 of 7 (1116 views)
Re: [andy7t] MySQL: Chaning $indata with <BR>'s. [In reply to] Can't Post

You need either MIME-tools or MIME::Lite.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


andy7t
User

Feb 24, 2004, 2:10 PM

Post #5 of 7 (1115 views)
Re: [davorg] MySQL: Chaning $indata with <BR>'s. [In reply to] Can't Post

Isn't this all about Sending OUT MIME messages.

I need to get rid of all the stuff once i've got it.


andy7t
User

Feb 24, 2004, 2:14 PM

Post #6 of 7 (1114 views)
Re: [andy7t] MySQL: Chaning $indata with <BR>'s. [In reply to] Can't Post

All of this is way over my head.

Maybe someone could break it down into some code....

Thanks!

Andrew


davorg
Thaumaturge / Moderator

Feb 24, 2004, 2:27 PM

Post #7 of 7 (1113 views)
Re: [andy7t] MySQL: Chaning $indata with <BR>'s. [In reply to] Can't Post


In Reply To
Isn't this all about Sending OUT MIME messages.

I need to get rid of all the stuff once i've got it.


Well, MIME::Lite is all about sending email, so it's probably going to be useful to you, but MIME-Tools includes many modules for parsing MIME messages.

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives