• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: email
      • From: Chris Page <email@hidden>
References: 
 >email (From: email@hidden)

  • Prev by Date: Re: Cocoa Classes from C++?
  • Next by Date: Re: Cover Flow in Cocoa?
  • Previous by thread: Re: email
  • Next by thread: Re: email
  • Index(es):
    • Date
    • Thread