Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Transfer OS X Mail folders to Text?

Transfer OS X Mail folders to Text?
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 29, 2004, 01:20 PM
 
Is it possible, or does something exist that I can Convert the individual OS X Mail Inboxes and/or Mail Folders or Export them somehow to Text Files?

I have a long list of repeating submissions in my Emails and I need to get them over to text and eventually XML.

Thanks.
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Jun 29, 2004, 01:53 PM
 
AppleScript... I just took a look at Mail.app's dictonary, and here is a 30 second demo to get you started:
Code:
tell application "Mail" tell the first account tell the mailbox named "INBOX" get the content of the first message end tell end tell end tell
     
filips  (op)
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 29, 2004, 09:57 PM
 
Hey, I'm thankful for the response... however, I'm not at all familiar with apple scripts... So, I guess a learning curve is in order... If you have any useful links and or tips, besides what I may find in OSX Help, please reply.

Do you think this work for folders too - such that I can target individual folders?

And what $ did you search for in Mail Help? I could not find this my first time around.

Thanks.
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Jun 29, 2004, 10:05 PM
 
Originally posted by filips:
Is it possible, or does something exist that I can Convert the individual OS X Mail Inboxes and/or Mail Folders or Export them somehow to Text Files?

I have a long list of repeating submissions in my Emails and I need to get them over to text and eventually XML.

Thanks.
They're already text files. mbox files are just text files:

Code:
[dshaw@flybook ~] cd Library/Mail/Mailboxes/Filed/Saved.mbox/ [dshaw@flybook ~/Library/Mail/Mailboxes/Filed/Saved.mbox] ls -l mbox total 21000 -rw------- 1 dshaw dshaw 9932875 29 Jun 01:15 mbox [dshaw@flybook ~/Library/Mail/Mailboxes/Filed/Saved.mbox] file mbox mbox: Non-ISO extended-ASCII mail text
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
filips  (op)
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jun 29, 2004, 10:59 PM
 
OK. Thanks. If they are already text files, then that helps.

But I'm also not too familiar with the terminal command in your last line..

when you say "file mbox" what does that do exactly?

Is there a text program I can open a folder in to see all the emails at once?
So I can parse them for URL $'s?

Thanks.
     
filips  (op)
Fresh-Faced Recruit
Join Date: Jun 2004
Status: Offline
Reply With Quote
Jul 9, 2004, 02:58 PM
 
All I had to do was select the emails > save as > text!!

DOH!!!!
     
Mac Elite
Join Date: Oct 2000
Location: Amboy Navada, Canadia.
Status: Offline
Reply With Quote
Jul 10, 2004, 11:57 PM
 
anyone know if Mail.app supports maildir or anything other than mbox?

This insanity brought to you by:
The French CBC, driving antenna users mad since 1937.
     
Mac Elite
Join Date: May 2002
Location: Los Angeles, CA.
Status: Offline
Reply With Quote
Jan 27, 2005, 02:45 PM
 
Will Tiger's Mail.app convert the current mbox format to maildir?


anyone confirm?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:02 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2