mime decode a message

Discussion in 'Java' started by poster, Oct 21, 2003.

  1. poster

    poster Guest

    Hi,

    I have mail messages stored as a text files, these files contain the
    full raw message, the header, body and if any, mime encoded
    messages/data. Is there a way to use the javamail api to decode these
    messages and save the encoded data (especially multipart/mix data) as
    separate files?

    Thank you.
     
    poster, Oct 21, 2003
    #1
    1. Advertising

  2. (poster) writes:
    > I have mail messages stored as a text files, these files contain the
    > full raw message, the header, body and if any, mime encoded
    > messages/data. Is there a way to use the javamail api to decode these
    > messages and save the encoded data (especially multipart/mix data) as
    > separate files?


    Yes, a straight forward procedure. Read the file into a MimeMessage and
    do whatever you want to do with the message. The API documentation is
    your friend.

    /Thomas
     
    Thomas Weidenfeller, Oct 21, 2003
    #2
    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. Rafal M

    [Linux gcc] decode MIME RFC1522

    Rafal M, Jun 1, 2006, in forum: C Programming
    Replies:
    4
    Views:
    333
    Walter Roberson
    Jun 1, 2006
  2. Kris Kennaway
    Replies:
    2
    Views:
    370
    Kris Kennaway
    Aug 11, 2008
  3. Terry
    Replies:
    6
    Views:
    508
    Brian McCauley
    Aug 18, 2007
  4. Ted Byers
    Replies:
    0
    Views:
    285
    Ted Byers
    Jun 24, 2010
  5. PerlFAQ Server

    FAQ 9.18 How do I decode a MIME/BASE64 string?

    PerlFAQ Server, Apr 7, 2011, in forum: Perl Misc
    Replies:
    0
    Views:
    185
    PerlFAQ Server
    Apr 7, 2011
Loading...

Share This Page