Skip to content

Instantly share code, notes, and snippets.

@dinhvh
dinhvh / gist:4688850
Last active December 12, 2015 01:08 — forked from mronge/gist:4688812
MCOIMAPSession *session = [[MCOIMAPSession alloc] init];
session.username = @"monkeybreadr@gmail.com";
session.password = @"";
session.hostname = @"imap.gmail.com";
session.port = 993;
session.connectionType = MCOConnectionTypeTLS;
MCOOperation * op = [session checkAccount(Operation)?];
[op start:^(NSError *err) {
if (err) {