Of what types can a message be?

N

Nikhil

Hi,
If i retrieve a message using POP3 in a Message object and call the
getContentType() method on it, what all values can I get?(I know
"plain/text" and "Multipart/alternate")

If I want to display this message or store it somewhere(in some file)
how do I do that?(even for a Multipart message)

Thanks....
 
L

Lars Enderin

Nikhil skrev:
Hi,
If i retrieve a message using POP3 in a Message object and call the
getContentType() method on it, what all values can I get?(I know
"plain/text" and "Multipart/alternate")

You don't know much ... It's "text/plain" and "multipart/alternative".
There are other variants of text/ and multipart/. You should read the
RFCs. Try googling for multipart/alternative, or MIME.
If I want to display this message or store it somewhere(in some file)
how do I do that?(even for a Multipart message)
Depends on what you want to do. Read the API documentation.
 
J

Joshua Cranmer

Nikhil said:
Hi,
If i retrieve a message using POP3 in a Message object and call the
getContentType() method on it, what all values can I get?(I know
"plain/text" and "Multipart/alternate")

If I want to display this message or store it somewhere(in some file)
how do I do that?(even for a Multipart message)

Thanks....

plain/text, multiplart/alternative, and text/html are probably going to
be your most popular content types.
 
G

Greg R. Broderick

Hi,
If i retrieve a message using POP3 in a Message object and call the
getContentType() method on it, what all values can I get?(I know
"plain/text" and "Multipart/alternate")

See RFCs 2045 - 2049.

then see

http://www.iana.org/assignments/media-types/index.html
http://www.iana.org/assignments/media-types-parameters
http://www.iana.org/assignments/media-type-sub-parameters

--
---------------------------------------------------------------------
Greg R. Broderick (e-mail address removed)

A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top