Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
MailCore 1.0 is a Mac/iOS framework for working with the e-mail protocols IMAP and SMTP.
Objective-C XSLT C Other
tree: d2fd023d68

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Examples
MailCore.xcodeproj
Resources
Scripts/DocScripts
Source
TestData
Tests
iOSPorts @ ae66845
libetpan @ e43d8a0
.gitignore
.gitmodules
AUTHORS
Info.plist
LICENSE
MailCore_Prefix.pch
README.md
Tests-Info.plist
build_docs.sh
main.m

README.md

 __    __     ______     __     __         ______     ______     ______     ______    
/\ "-./  \   /\  __ \   /\ \   /\ \       /\  ___\   /\  __ \   /\  == \   /\  ___\   
\ \ \-./\ \  \ \  __ \  \ \ \  \ \ \____  \ \ \____  \ \ \/\ \  \ \  __<   \ \  __\   
 \ \_\ \ \_\  \ \_\ \_\  \ \_\  \ \_____\  \ \_____\  \ \_____\  \ \_\ \_\  \ \_____\ 
  \/_/  \/_/   \/_/\/_/   \/_/   \/_____/   \/_____/   \/_____/   \/_/ /_/   \/_____/ 

Getting the code

First checkout the code and pulldown the required dependencies as submodules:

git clone https://github.com/mronge/MailCore.git
cd MailCore/
git submodule update --update

Now open up MailCore.xcodeproj and build either the iOS static library or the Mac OS X framework depending on your needs.

Website

The official site contains documentation, FAQs, and step by step instructions on how to include MailCore

http://www.libmailcore.com

Migrating to Version 1.0

The latest version of MailCore is no longer backwards compatible with earlier versions. I tried to keep backwards compatibility, but it became too complex, sorry :(

The biggest change is that exceptions are no longer used. Instead each method either returns a BOOL or an object that can be checked for success. If an error occurs each object has a - (NSError *)lastError method that can be consulted.

Here are a list of major changes:

  • The method - (int)fetchBody has been renamed to - (BOOL)fetchBodyStructure
  • The methods messageObjectsFromIndex:toIndex: and messageListWithFetchAttributes: have both been removed. They've been replaced by the new and improved messagesFromSequenceNumber:to:withFetchAttributes: and messagesFromUID:to:withFetchAttributes:. Please see the header file CTCoreFolder.m for details.
  • NSException is no longer used, instead NSError is used.
  • A CTCoreMessage's to, from, sender, bcc, cc, and subject values are nil when they have not been downloaded or message doesn't have them
  • Message UIDs are now NSUIntegers instead of NSStrings
  • - (BOOL)isUIDValid:(NSString *)uid has been removed. Instead check your uid validity value manually

Thanks,

Matt Ronge

Something went wrong with that request. Please try again.