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....
Lars Enderin - 15 Apr 2007 19:08 GMT
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.
Joshua Cranmer - 15 Apr 2007 19:51 GMT
> Hi,
> If i retrieve a message using POP3 in a Message object and call the
[quoted text clipped - 5 lines]
>
> Thanks....
plain/text, multiplart/alternative, and text/html are probably going to
be your most popular content types.
Greg R. Broderick - 16 Apr 2007 00:15 GMT
"Nikhil" <nikhilsbokare@gmail.com> wrote in news:1176657352.235441.79450
@d57g2000hsg.googlegroups.com:
> 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

Signature
---------------------------------------------------------------------
Greg R. Broderick gregb+usenet200612@blackholio.dyndns.org
A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------