Deciding what kind of file to use to display a message

I have an email system which is a pop system that basically pulls my emails from gmail. And I am trying to also view these emails. In particular cases, emails are just simple plaintext and so I can just display that in a JTextArea or something like that. But certain emails are much more complicated and I do not know how to display it. For example, here is the content from an email: (scroll all the way down for the rest of my question)
--142215290.1247034890965.JavaMail.SYSTEM.sj-besreco038
Content-Type: text/plain;charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
eBay Inc. is located at 2145 Hamilton Avenue, San Jose, CA 95125.
--142215290.1247034890965.JavaMail.SYSTEM.sj-besreco038
Content-Type: text/html;charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<html><head></head><body><div id=3D"Header"><div><table border=3D"0" cellpa=
dding=3D"0" cellspacing=3D"0" width=3D"100%"><tr><td width=3D"100%" style=
=3D"word-wrap:break-word"><table cellpadding=3D"2" cellspacing=3D"3" border=
=3D"0" width=3D"100%"><tr><td width=3D"1%" nowrap=3D"nowrap"><img src=3D"ht=
tp://pics.ebaystatic.com/aw/pics/logos/ebay_95x39.gif" height=3D"39" width=
=3D"95" alt=3D"eBay"></td><td align=3D"left" valign=3D"bottom"><span style=
=3D"font-weight:bold; font-size:xx-small; font-family:verdana, sans-serif; =
color:#666"><b>eBay sent this message .</b><br=
rial, sans-serif; co=
lor:#000" width=3D"15%" nowrap=3D"nowrap" valign=3D"top">Your maximum bid:<=
/td><td style=3D"font-size:10pt; font-family:arial, sans-serif; color:#000"=
valign=3D"top">$43.00</td></tr><tr><td colspan=3D"2"><font style=3D"font-s=
ize:10pt; font-family:arial, sans-serif; color:#000"><a href=3D"http://sear=
ch.ebay.com/search/search.dll?GetResult&ht=3D1&query=3DTiffany+%26+=
Co.+Gift+Card.+%2457.67+credit+on+card%21%21%21&sim=3Dy&itemid=3D17=
0351761886&itemstate=3D2&ssPageName=3DADME:B:EOIBUAA:US:1182">Searc=
h for similar items</a> | <a href=3D"http://countdown.ebay.com/start.j=
sp?ssPageName=3DADME:B:EOIBUAA:US:1">Win next time with Countdown</a></font=
</td></tr></table></td></tr></table></div><td valign=3D"top" width=3D"185"=
<div><span style=3D"font-weight:bold; font-size:10pt; font-family:arial, s=ans-serif; color:#000"><strong>Look for similar items</strong></span><table=
border=3D"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%"><tr><td><i=
mg src=3D"http://pics.ebaystatic.com/aw/pics/s.gif" height=3D"4"></td></tr>=
</table><a href=3D"http://cgi1.ebay.com/ws/eBayISAPI.dll?BuyHub&uid=3D3=
43291963&ssPageName=3DADME:B:EOIBUAA:US:1122" title=3D"http://cgi1.ebay=
.com/ws/eBayISAPI.dll?BuyHub&uid=3D343291963&ssPageName=3DADME:B:EO=
IBUAA:US:1122"><img src=3D"http://pics.ebaystatic.com/aw/pics/buttons/btnFi=
nd.gif" border=3D"0" height=3D"32" width=3D"120"></img></a><br><span style=
=3D"font-style:italic; font-size:8pt; font-family:arial, sans-serif; color:=
#000"></span></div></td></td></tr></table><br></div></div><div id=3D"OneCli=
ckUnsubscribe"><div><style>.cub-cwrp {display:block; border:1px solid #dedf=
de; font-family:arial, sans-serif; font-size:10pt; margin-bottom:20px}
h3.cub-chd {margin:0px; padding:5px; display:block; background:#e7e7e7; fon=
t-size:14px}
.cub-ccnt {padding:0px 10px 10px 5px; display:block}
ul.cub-ulst {margin:0px 0px 0px 10px; padding:0px 0px 0px 10px}
ul.cub-ulst li, ul.cub-ulst li.cub-licn {list-style:square outside none; ma=
rgin:0px; padding:10px 0px 0px 0px; line-height:16px}
.c
=3D"25" alt=3D"Marketplace Safety Tip" align=3D"absmiddle"></td><td style=
=3D"font-weight:bold; font-size:10pt; font-family:arial, sans-serif; color:=
#000" nowrap=3D"nowrap" width=3D"20%">Marketplace Safety Tip</td><td><img s=
rc=3D"http://pics.ebaystatic.com/aw/pics/securityCenter/imgTabCorner_25x25.=
gif" height=3D"25" width=3D"25" alt=3D"" align=3D"absmiddle"></td><td backg=
round=3D"http://pics.ebaystatic.com/aw/pics/securityCenter/imgFlex_1x25.gif=
" height=3D"1" width=3D"80%"></td></tr><tr><td style=3D"font-size:10pt; fon=
t-family:arial, sans-serif; color:#000" colspan=3D"4"><ul style=3D"margin-t=
op: 5px; margin-bottom: 5px;"><li style=3D"padding-bottom: 3px; line-height=
: 120%; padding-top: 3px; list-style-type: square;">Received a Second Chanc=
e Offer email? <a href=3D"http://pages.ebay.com/help/buy/personal-offer.htm=
l">Double check that it's genuine</a>: Second Chance Offer emails come dire=
ctly from eBay and are shown in your My Messages.</li></ul></td></tr><tr><t=
d style=3D"background-color:#c9d2dc" colspan=3D"4"><img src=3D"http://pics.=
ebaystatic.com/aw/pics/s.gif" height=3D"1" width=3D"1"></td></tr></table><b=
r></div></div><div id=3D"Footer"><hr style=3D"HEIGHT: 1px"><table border=3D=
"0" cellpadding=3D"0" cellspacing=3D"0" width=3D"100%"><tr><td width=3D"100=
%"><font style=3D"font-size:xx-small; font-family:verdana; color:#666"><a h=
refademar=
ks and brands are the property of their respective owners. eBay and the eBa=
y logo are trademarks of eBay Inc. eBay Inc. is located at 2145 Hamilton Av=
enue, San Jose, CA 95125. </font></td></tr></table><img src=3D"" height=3D=
"1" width=3D"1"></div></body></html>
--142215290.1247034890965.JavaMail.SYSTEM.sj-besreco038--
*So how would I display this email to the user. I tried placing this in a text file and then making that an html file, but that didn't work. What kind of file/what would I use to display this email in Java? Thanks for your help!*
*Robert*

did you put the entire content of the email in a file and try to load it as html? is so, that would be your problem. that email is a mime multipart, which means there are separate sections which are different types. if you take the second part, between the "<html>....</html>" tags, that should be a valid html. the first part is plain text. please read up on mime multipart encoding and that should give you a better idea how to handle these emails.

Similar Messages

  • Distribution mobileprovision and Developer mobileprovision what kind of files can be uploaded

    Distribution mobileprovision and Developer mobileprovision what kind of files can be uploaded
    Hi
    Im trying to opload Distribution mobileprovision and Developer mobileprovision files in the DPS Viewer Builder, but cant see what i need
    I have tre .p12 setificats but none of them are able to be selected when i browse.
    Must be doing something wrong here, just wonder what ... can you hel?
    Helen

    Go through the attached Publishing Companion Guide. You need to create Mobile Provisioning files using Apple iOS provisioning Portal. The guide gives you step by step information on creating these.

  • "What kind of file is this" Loop Browser error

    Hi there,
    I just re-installed Logic after doing an erase & install of my system. Seems okay so far, except that when I open the Loop Browser and click on a loop to hear it, I get the error message:
    "Club Dance Beat 002 [or whatever the loop name is].caf" - what kind of file is this?
    And then there's an 'Abort' button, but no other options. The file won't preview, nor will it drop into my Arrange window when I try to drag it over. This happens with both green & blue (midi & audio) loops in the browser.
    Odd. Any thoughts? Thanks!

    Sorry so long to respond to this. Apparently my 'Subscribe to this Topic' notification thing isn't working, and I didn't realize there had been any responses....
    I've re-installed from the Logic content disc, but still no change. From the other discussions I've read, it looks like most folks encountered this when they installed GB08 AFTER Logic was already on their system. After I did my erase & install, I installed iLife 08 BEFORE I installed Logic Pro. Would that be causing this weirdness?
    Odder still is that the ONLY loops I'm finding on my computer are the GB08 Loops (and iLife sound effects), but then maybe I'm not looking in the right place for the Logic loops? Further, in my GB08 loops folder, there seem to be .caf and.aiff versions of each loop, but no matter what I try to use in Logic's Loop Browser, I get the same error about the caf file....
    Perplexed.

  • WHAT KIND OF FILES CAN YOU EDIT IN IMOVIE!

    WHAT KIND OF FILES CAN YOU EDIT IN IMOVIE!

    The PCMCIA digital TV tuner card I have is the Formac Watchandgo which I purchased here for the equivalent of around US$50:
    http://www.formac.com/webapp/productsavwatchandgo.php
    However, it is only usable in countries which use the PAL TV system (such as Europe and here in Australia).
    I’m not familiar with the American NTSC TV system, or what TV tuners might be available. You will probably find most tuners are USB these days.

  • What kind of files are compatible with iMovie?

    What kind of files are compatible with iMovie?

    Hello Jonsi41,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Import video from movie files
    http://support.apple.com/kb/ph2153
    files can be in a number of formats, including MPEG-4 and standard (DV) file formats and some .mov file formats.
    Best of luck,
    Mario

  • "____.m4a" - what kind of file is this? (What kind of question is this?)

    Hi,
    I recently got a new MacBook, and installed my copy of Logic Express 7 on it. I previously had it running on my old MacBook, with no problems. My new MacBook has Leopard on it, and my old one had Tiger.
    When I try to open a project that uses samples from ".m4a" sound files, I get the message "'__.m4a' - what kind of file is this?" I am forced to hit "abort" for every sample in the project, and once I've done this, Logic gives me the message "Logic Express has found 109 files in 8-bit format. This format is unsupported and cannot be played back." I then hit "OK," and my project loads, full of blank samples.
    No other audio applications are experiencing any sorts of problems like these. On my old MacBook, I had similar problems (http://discussions.apple.com/thread.jspa?threadID=991819&tstart=1245), but these were not specific to Logic. I've tried "Verifying Drive" and "Repairing Permissions" in Disk Utility, as was the suggestion last time I got a similar message, but it hasn't worked at all.
    Does anyone have any ideas as to how I might fix this?
    Thanks very much!
    - David

    David Kanaga wrote:
    Hi,
    I recently got a new MacBook, and installed my copy of Logic Express 7 on it. I previously had it running on my old MacBook, with no problems. My new MacBook has Leopard on it, and my old one had Tiger.
    When I try to open a project that uses samples from ".m4a" sound files, I get the message "'__.m4a' - what kind of file is this?" I am forced to hit "abort" for every sample in the project, and once I've done this, Logic gives me the message "Logic Express has found 109 files in 8-bit format. This format is unsupported and cannot be played back." I then hit "OK," and my project loads, full of blank samples.
    No other audio applications are experiencing any sorts of problems like these. On my old MacBook, I had similar problems (http://discussions.apple.com/thread.jspa?threadID=991819&tstart=1245), but these were not specific to Logic. I've tried "Verifying Drive" and "Repairing Permissions" in Disk Utility, as was the suggestion last time I got a similar message, but it hasn't worked at all.
    Does anyone have any ideas as to how I might fix this?
    Thanks very much!
    - David
    Convert the m4a files into aiff or wav files. and then re-import them into your project sampler.
    Cheers

  • Wanna know what kind of effect that used on this video?

    wanna know what kind of effect that used in transformation in this video or can we  just crop the effect .

    That transformation is a result of careful planning, 3-D modeling, and layering. It is not just an effect. 3-D tracking, camera tracking, match moving, rotoscope, keying, and other effects can be used to create this kind of transformation. Without careful preproduction planning this kind of a shot/effect is nearly impossible.
    If you already knew that then what part of the transformation is giving you troubl?

  • What kind of authentication is used on .mac accounts ???

    does anybody know what kind of authentication Apple uses to protect the Sites folder on a .Mac account?
    Is it "modauthbasic" or "modauthdigest"

    Quote from: Nichrome on 16-June-15, 00:31:36
    Hi
    I believe it's black plastic. Or at least feels like it's not painted but plain black plastic.
    Please note that if you paint it, you will void warranty. Unless you remove all paint before RMAing if you'll ever have to send it back for warranty (hopefully never).
    Duly noted, thanks for your help!

  • "What kind of file is this?" message

    When I try to open GB projects (created in GB3 and stored on a hard disk) now in GB 08 I get the message "RecordingXXX. What kind of file is this?" and the only option I have is "Abort." Then I get a message that some of the regions are 8-bit. When the GB file opens, several regions will not play/are not there.
    Any help?
    RS

    I'm getting the same thing in Logic Express.

  • What does this file be used for?

    What does this file be used for: $COHERENCE_HOME/lib/coherence/coherence-client.xml ?
    The contents of this file is show as the following:
    ?xml version='1.0'?>
    <license-document>
      <license>
        <software>Oracle Coherence: Data Client</software>
        <licensee>n/a</licensee>
        <type>production</type>
        <id>0x00A800CC0000011295888F24BC6C730B</id>
        <signature>302C02147737DBFAC8F3931DC9A50EFB78A9DF824414054B0214277CACA4CA2B3D01292FBEB080A18DDCC79DBF0F</signature>
      </license>
    </license-document>What is the difference between $COHERENCE_HOME/lib/coherence/ coherence-client.xml and
    $COHERENCE_HOME/lib/coherence/ coherence-rtc.xml about the purpose of usage?
    Edited by: junez on 30-Nov-2009 08:50

    Hello Junez,
    The coherence-client.xml is for the Data Client.
    The coherence-rtc.xml is for the Real Time Client.
    Please take a look at the following page for more information and let me know if you have anymore questions.
    I am also curious what version of Coherence are you using?
    Best regards
    -Dave

  • What kind of glass is used for the iPhone 6?

    I want to get a case before we upgrade to the iPhone 6.  Some of the cases we are looking at (Speck Mightyshell) do not come with screen protectors.  I was wondering what kind of glass is used for the iPhone 6 and if a screen protector is even necessary?

    The iPhone 6 currently uses Corning’s Gorilla Glass. There was some speculation that they would start using Sapphire glass but I guess they’re not ready yet. I have had my iPad 2 for years now and the glass is still perfectly fine. My new iPhone 6 uses a more developed version of the same glass. Will the glass break? Yes. Will the glass scratch? Yes, if you carry your phone in the same pocket as your car keys, the screen will scratch. It’s not impervious, just highly resistant.
    I do have a real life controlled experiment going on in the family. My wife and one son have their iPhone 6s in a case WITH a screen protector. Myself and my other son carry our iPhone 6s around without ANY protection whatsoever, no case and no screen protector. So far they all still look perfectly fine. We’ll se how this experiment turns out.

  • What kind software we should use under VISTA to creat new partition.

    hi,there. i've use the boot camp to install the window vista in my macbook. but the boot camp only creat one partition for it. therefore all the partition i have under vista is C partiton. i want to divide that C partiton into 2 or more partitons, but i just wonder will that gonna destroy the boot information for Mac OS? what kind software i should use to avoid that problem? thanks.

    Don't know. Never used it. You should probably post your question in the Boot Camp discussions
    http://discussions.apple.com/forum.jspa?forumID=1165

  • ".aif - What kind of file is this?" (Logic asks)

    Hi, I'm having problems with Logic right now. When I try to import an audio file into the arrange window, Logic says "Cannot open 'file.aif' - what kind of file is this?" This happens when I try to import all different varieties of files, most of them not AIFs.
    Before I got Logic, GarageBand was also having this problem.
    I got a M-Audio FastTrack Pro recently. Is it possible that this has something to do with it?
    Also, QuickTime is not able to play audio files (and possibly video, though I haven't tried). Who knows if that is related.
    Any help would be great. I'm wanting to be able to import song files into what I'm doing right now, but unfortunately, it's currently impossible.
    Thanks.

    Hi,
    The problem is that you must have installed some new software, which has now changed the assignment of .aiff extensions, so that now, your Mac does not open them with the right software.
    You need to repair permission,s and also re-bind the links between the document types and the applications.
    Cheers

  • What do i do if my ipod displays this message "this ipod cannot be used because the mobil device service is not started"

    what do i do if my ipod displays this message "this ipod cannot be used because the mobil device service is not started"

    Make sure the Apple Mobile Device Service is installed and running.  I would start with this Apple support document.
    http://support.apple.com/kb/ts1567
    B-rock

  • What kind of alerts we use?

    hi friends,
    what kind of alerts we create in reporting?
    Thanking u
    suneel.

    Hi Suneel,
    We can create as per the requirements.
    One is E-mail alerts for Manager levels.
    Lets example in MM module:
           Material1(10-06-2007),  Material2(01-07-2007).
    In this scenario we have to set for materials i.e Material1 is going to expire on next 4 days and Materail2 is going to expire next 25 days.
    Hope this is useful....
    Regards,
    Venkat

Maybe you are looking for