Re: How to parse a mail

Discussion in 'Java' started by zm, Jul 1, 2003.

  1. zm

    zm Guest

    GaryM <> wrote in message news:<Xns93A6DF99B64B1R3344324357788499939@216.168.3.44>...
    > (Van Glass) wrote in
    > news::
    >
    > >
    > > When getting the body of the message you also need to consider the
    > > possibility that the body could be a multipart/alternative
    > > message. For example the body could contain a text/plain message
    > > as well as a text/html message. In this case you will need to
    > > decide in your code whether you want the text/plain or text/html
    > > version of the message body.
    > >

    >
    > In the code I have shown, provided the mail InputStream is rfc822
    > compliant, this is not a concern, i.e. the message will be
    > constructed with associated attachments with their mime encodings.
    > In this case of multipart/alternative you can parse each part out
    > separately once the message is constructed.
    >
    > Gary


    Gary,

    Which one would be the method to get the body? I cannot find any in the api...

    thanks
    zm, Jul 1, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian J. Sayatovic
    Replies:
    1
    Views:
    944
    Chris Uppal
    Jun 25, 2004
  2. Replies:
    19
    Views:
    1,102
    Daniel Vallstrom
    Mar 15, 2005
  3. E-Mail parse library?

    , May 10, 2006, in forum: C Programming
    Replies:
    3
    Views:
    285
    CBFalconer
    May 11, 2006
  4. 7stud --

    optparse: parse v. parse! ??

    7stud --, Feb 20, 2008, in forum: Ruby
    Replies:
    3
    Views:
    173
    7stud --
    Feb 20, 2008
  5. Experienced but Undocumented

    How to parse e-mail messages?

    Experienced but Undocumented, Oct 11, 2003, in forum: Perl Misc
    Replies:
    2
    Views:
    122
    Experienced but Undocumented
    Oct 12, 2003
Loading...

Share This Page