Re: Module to Parse MIME-encoded Email?

2001-07-08 Thread M.W. Koskamp


- Original Message -
From: Mike Miller [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 6:08 PM
Subject: Module to Parse MIME-encoded Email?



 Gurus:

 As a learning exercise I'm writing my own web-based POP3 client, and
 wish to be able to handle emails which are MIME-encoded.  So I'm looking
 for perhaps a module which will take the full message, give me back
 headers I want, and parse the body and return it in a form that could
 be dumped straight to the browser.  (At the very least, a module to which
 I could feed the MIME-encoded body would be nice, as I can parse the
 headers myself).

Try Mime::Parser.
That might do what you want.
I think it can handle both Base64 and UUencoded messages (beware that
outlook express has some different way in adding padding characters and
things).

Maarten.




Module to Parse MIME-encoded Email?

2001-07-07 Thread Mike Miller


Gurus:

As a learning exercise I'm writing my own web-based POP3 client, and
wish to be able to handle emails which are MIME-encoded.  So I'm looking
for perhaps a module which will take the full message, give me back
headers I want, and parse the body and return it in a form that could
be dumped straight to the browser.  (At the very least, a module to which
I could feed the MIME-encoded body would be nice, as I can parse the
headers myself).

Any ideas?  I've perused MIME::Entity, but it seemed to be more for
_creating_ MIME-encoded objects than anything else.

Thanks!

-Mike



-
'Faith' means not _wanting_ to know what is true.
-- Nietzsche, Der Antichrist