{"action":"created","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/429","repository_url":"https://api.github.com/repos/MailCore/mailcore2","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/429/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/429/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/429/events","html_url":"https://github.com/MailCore/mailcore2/issues/429","id":21399103,"number":429,"title":"Difficulty Obtaining Subject and Date for MCOIMAPMessages","user":{"login":"jac300","id":2576454,"avatar_url":"https://avatars.githubusercontent.com/u/2576454?v=3","gravatar_id":"","url":"https://api.github.com/users/jac300","html_url":"https://github.com/jac300","followers_url":"https://api.github.com/users/jac300/followers","following_url":"https://api.github.com/users/jac300/following{/other_user}","gists_url":"https://api.github.com/users/jac300/gists{/gist_id}","starred_url":"https://api.github.com/users/jac300/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jac300/subscriptions","organizations_url":"https://api.github.com/users/jac300/orgs","repos_url":"https://api.github.com/users/jac300/repos","events_url":"https://api.github.com/users/jac300/events{/privacy}","received_events_url":"https://api.github.com/users/jac300/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2013-10-22T17:02:00Z","updated_at":"2016-03-23T19:09:32Z","closed_at":"2013-10-23T18:38:37Z","body":"Whenever I do a message fetch, the subject for each MCOIMAPMessage is always nil, and the date is always the same value for all messages. I am accessing the subjects via (MCOIMAPMessage) message.header.subject and the date via message.header.date.\r\n\r\nI am not sure what I am doing incorrectly. Here is the code for the fetch:\r\n\r\n1) Create fetch operation:\r\n\r\n    MCOIMAPFetchMessagesOperation *fetchOperation = [self.imapSession    \r\n    fetchMessagesByUIDOperationWithFolder:folder.path\r\n                                                                                                        \r\n    requestKind:MCOIMAPMessagesRequestKindExtraHeaders | MCOIMAPMessagesRequestKindInternalDate |                                                                        \r\n    MCOIMAPMessagesRequestKindGmailThreadID |\r\n    MCOIMAPMessagesRequestKindGmailMessageID |                                                                                       \r\n    MCOIMAPMessagesRequestKindHeaderSubject |                                                                                      \r\n    MCOIMAPMessagesRequestKindFlags\r\n\r\n    uids:uids];\r\n\r\n2) Execute fetch:\r\n\r\n    [fetchOperation start:^(NSError *error, NSArray *emails, MCOIndexSet *vanishedMessages) {\r\n             \r\n     for (MCOIMAPMessage *email in emails) {\r\n          \r\n                BOOL isUnread = email.flags != MCOMessageFlagSeen;\r\n                    \r\n                Thread *thread = [self.dataManager fetchOrInsertNewThreadForFolder:folder threadId:email.gmailThreadID ?: email.gmailMessageID ?: email.uid error:&error];\r\n                  \r\n                 if (nil != thread) {\r\n                        [self.dataManager updateOrInsertNewEmailForThread:thread uid:email.uid messageId:email.gmailMessageID date:email.header.date subject:email.header.subject isUnread:isUnread error:&error];\r\n                      \r\n                          NSLog(@\"HEADER DATE IS %@ FOR UID %d\", email.header.date, email.uid); //DATES ARE THE SAME FOR ALL MESSAGES\r\n                          NSLog(@\"HEADER SUBJECT IS %@\", email.header.subject); //ALL SUBJECTS ARE nil\r\n                  \r\n                  }\r\n                }\r\n          }];\r\n\r\nI have looked in the documentation and I see that there is an NSArray property called 'extraHeaders' that I can set on my MCOIMAPFetchMessagesOperation, but I don't see how to set it/what I am supposed to set it to, and when I try to access it after the fetch, it is always nil."},"comment":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/comments/200499702","html_url":"https://github.com/MailCore/mailcore2/issues/429#issuecomment-200499702","issue_url":"https://api.github.com/repos/MailCore/mailcore2/issues/429","id":200499702,"user":{"login":"haneey","id":17991257,"avatar_url":"https://avatars.githubusercontent.com/u/17991257?v=3","gravatar_id":"","url":"https://api.github.com/users/haneey","html_url":"https://github.com/haneey","followers_url":"https://api.github.com/users/haneey/followers","following_url":"https://api.github.com/users/haneey/following{/other_user}","gists_url":"https://api.github.com/users/haneey/gists{/gist_id}","starred_url":"https://api.github.com/users/haneey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haneey/subscriptions","organizations_url":"https://api.github.com/users/haneey/orgs","repos_url":"https://api.github.com/users/haneey/repos","events_url":"https://api.github.com/users/haneey/events{/privacy}","received_events_url":"https://api.github.com/users/haneey/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T19:09:32Z","updated_at":"2016-03-23T19:09:32Z","body":"for (MCOIMAPMessage *message in fetchedMessages) {\r\n            if (message.flags==0) {\r\n                          NSLog(@\"%@\",message);\r\n"}}