How to save/write javax.mail.Folder to file?

Discussion in 'Java' started by Tomas, Sep 28, 2005.

  1. Tomas

    Tomas Guest

    Hi,

    Im making an e-mail client and i want to write received Messages to file.
    I tried to write the hole object javax.mail.Folder,via ObjectOutPutStream,
    to file but it dos not implement Serializable so i got Exception.

    Is there any specific classes or methods in the java mail api that handles
    writing messages and folders to file(i cant find it)? If not, any suggestions
    on how to solve this in an easy way?

    Best regards
    /Tomas
     
    Tomas, Sep 28, 2005
    #1
    1. Advertising

  2. Tomas

    Roedy Green Guest

    On 28 Sep 2005 03:12:52 GMT, "Tomas" <> wrote or
    quoted :

    > javax.mail.Folder,via ObjectOutPutStream,
    >to file but it dos not implement Serializable so i got Exception.


    JavaMail is like a set of Chinese boxes. You will have to take the
    Folder apart until you get either to text or something that is
    serialisable.
    --
    Canadian Mind Products, Roedy Green.
    http://mindprod.com Again taking new Java programming contracts.
     
    Roedy Green, Sep 28, 2005
    #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. Replies:
    1
    Views:
    747
    Esmond Pitt
    Mar 27, 2005
  2. lizard
    Replies:
    0
    Views:
    1,771
    lizard
    Jan 30, 2006
  3. Andrew Thompson

    javax.servlet and javax.servlet.http

    Andrew Thompson, Apr 24, 2007, in forum: Java
    Replies:
    1
    Views:
    664
    newbie_at_tomcat
    Apr 25, 2007
  4. Replies:
    4
    Views:
    283
  5. Laura Schmidt
    Replies:
    13
    Views:
    158
    Lars Enderin
    May 30, 2014
Loading...

Share This Page