Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

Of what types can a message be?

Thread view: 
Nikhil - 15 Apr 2007 18:15 GMT
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?
---------------------------------------------------------------------



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.