Re: Search for emails in Mail’s previous recipients list from MacOSX app
Re: Search for emails in Mail’s previous recipients list from MacOSX app
- Subject: Re: Search for emails in Mail’s previous recipients list from MacOSX app
- From: Uli Kusterer <email@hidden>
- Date: Fri, 16 Jan 2015 14:35:58 +0100
On 15 Jan 2015, at 22:04, Steffen Andersen <email@hidden> wrote:
> I am currently working on a MacOSX app, where the user will be able to send mails generated based on different user input. To help the user, when writing an email address, it would be great, if it was possible to search in the previous recipients list/db Mail uses. As not all emails will be in the users Contacts.
> From a bit of search I’ve located the previous recipients list/db ~/Library/Containers/com.apple.corerecents.recentsd/Data/Library/Recents/Recents and it seems to be a sqlite. Is there any issues accesses it from with in an app, if I want to launch the app to AppStore?
Others have mentioned that Sandboxing won't let you access that file. Apart from that, it's a bad idea. Apple may, at any time, change the schema of the SQLite database. At best, your app will autocomplete user names into e-mail address fields instead of the addresses, at worst you'll crash. In general, it's not a good idea to just access other apps' files, unless you have talked to the authors and they're willing to supoort you. It's not a reliable mechanism, and you wouldn't want to sell your users unreliable software.
-- Uli
_______________________________________________
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