login about faq

In which format should I save the email to Core Data.

I'm currently saving everything as strings, eg. email.Body, email.Subject, email.FromName etc to single attributes in an email entity. The problem is I cant go fetch that exact email on the server when saving/opening it.

What primary key can I use to "sync emails in core data with server", having the exact same emails. If i delete the email from database it should fetch primary key to delete it from the server as well.

This is obviously my first time I've been using Chilkat, really awesome API and would like to learn all there is about it!

Any help would be much appreciated, thanks!

asked Jul 14 '14 at 17:06

emotality's gravatar image


edited Jul 14 '14 at 17:29

First - I don't work with IMAP so I can't be sure this will work, but there is a GetImapUid method that according to some quick research I've done, might return an unchanging unique ID for a message in an IMAP mailbox. You could use this ID to handle synchronization with a specific IMAP server.

Check out section 2.3.1.x of RFC3501 INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1 for more information about IMAP UIDs.


answered Jul 15 '14 at 21:28

jpbro's gravatar image

jpbro ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jul 14 '14 at 17:06

Seen: 2,278 times

Last updated: Jul 15 '14 at 21:28

powered by OSQA