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 / November 2005

Tip: Looking for answers? Try searching our database.

Getting Data out of Outlook

Thread view: 
Roedy Green - 07 Nov 2005 08:55 GMT
Every once in a while I see people trying to get email messages out of
Outlook format.  Here is an idea.

Eudora has a way of importing Outlook messages.  Eudora will export as
HTML. Further Eudora's internal format looks pretty simple so you
could likely crack it easily.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Igor Planinc - 07 Nov 2005 14:11 GMT
> Every once in a while I see people trying to get email messages out of
> Outlook format.  Here is an idea.
>
> Eudora has a way of importing Outlook messages.  Eudora will export as
> HTML. Further Eudora's internal format looks pretty simple so you
> could likely crack it easily.

And then one has to parse HTML. ;-)

Outlook can export as .eml, right? All that remains to do is to
1. strip eml headers,
2. implement a DataSource wich takes the remaining byte[], wrapped into
ByteArrayInputStream, as a source,
3. instantiate new MimeMultipart() with 2. and
4. make a traversal over 3.

BTW: if content type is text/plain, one can do without 3 and 4.
Igor Planinc - 07 Nov 2005 14:17 GMT
> 2. implement a DataSource wich takes the remaining byte[], wrapped into
> ByteArrayInputStream, as a source,

Like this:
http://jakarta.apache.org/commons/email/apidocs/org/apache/commons/mail/ByteArra
yDataSource.html

Roedy Green - 07 Nov 2005 14:44 GMT
>Outlook can export as .eml

does it do a bulk export? or only message by message?
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Igor Planinc - 07 Nov 2005 15:28 GMT
>>Outlook can export as .eml
>
> does it do a bulk export? or only message by message?

Oh, I don't know. I was just guessing. I never used Outlook. In the old days I
used Outlook Express. As far as I can remember it didn't have bulk export in
.eml, just a message at a time. But since Outlook is a "pro" version, I think it
should have it. Or maybe some other format close to MimeMultipart, maybe even
MimeMultipart itself.


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.