Re: email
Re: email
- Subject: Re: email
- From: Jens Alfke <email@hidden>
- Date: Wed, 28 May 2008 08:02:09 -0700
On 28 May '08, at 4:38 AM, email@hidden wrote:
I've build an email application,which doesn't using any email
clients.In this application i've to extract emails and email addresses
from other email clients(example mail.app,entourage etc).
Importing messages from Mail via AppleScript may not be fast enough —
my highly scientific estimate* is "a couple of messages" a second.
Importing someone's entire mail archive would take a long time.
What you can do instead is scan the mailbox files in ~/Library/Mail.
The format is pretty simple, if you take a look. Folders per account
(named like "email@hidden"), then inside a folder per
mailbox, and the messages are in individual ".emlx" files that are
basically raw RFC822 message bodies.
Alternatively, since the messages are all indexed by Spotlight, you
can just use Metadata.framework to search for all the ones you want
and get the info you need.
—Jens
* Quant Suff!
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >email (From: email@hidden) |