diff options
author | CodaFi <devteam.codafi@gmail.com> | 2013-06-22 22:11:37 -0600 |
---|---|---|
committer | CodaFi <devteam.codafi@gmail.com> | 2013-06-22 22:11:37 -0600 |
commit | d8117be520bd873c87bbcd278b7f5c59ff9301ff (patch) | |
tree | b96669b4827c52f19f0e2457aa6eb4879679c31e /src | |
parent | b0a968ba727c703528efbfa803267fa67aec37d1 (diff) |
Whitespace
Diffstat (limited to 'src')
-rw-r--r-- | src/core/imap/MCIMAPMessage.h | 64 | ||||
-rw-r--r-- | src/core/imap/MCIMAPSession.cc | 34 |
2 files changed, 49 insertions, 49 deletions
diff --git a/src/core/imap/MCIMAPMessage.h b/src/core/imap/MCIMAPMessage.h index dd3edb89..8f54ebfc 100644 --- a/src/core/imap/MCIMAPMessage.h +++ b/src/core/imap/MCIMAPMessage.h @@ -17,30 +17,30 @@ namespace mailcore { class IMAPMessage : public AbstractMessage { public: - IMAPMessage(); - ~IMAPMessage(); - - virtual uint32_t uid(); - virtual void setUid(uint32_t uid); - - virtual void setFlags(MessageFlag flags); - virtual MessageFlag flags(); - - virtual void setOriginalFlags(MessageFlag flags); - virtual MessageFlag originalFlags(); - - virtual uint64_t modSeqValue(); - virtual void setModSeqValue(uint64_t uid); + IMAPMessage(); + ~IMAPMessage(); - virtual void setMainPart(AbstractPart * mainPart); - virtual AbstractPart * mainPart(); - - virtual void setGmailLabels(Array * /* String */ labels); - virtual Array * /* String */ gmailLabels(); + virtual uint32_t uid(); + virtual void setUid(uint32_t uid); + + virtual void setFlags(MessageFlag flags); + virtual MessageFlag flags(); + + virtual void setOriginalFlags(MessageFlag flags); + virtual MessageFlag originalFlags(); + + virtual uint64_t modSeqValue(); + virtual void setModSeqValue(uint64_t uid); + + virtual void setMainPart(AbstractPart * mainPart); + virtual AbstractPart * mainPart(); + + virtual void setGmailLabels(Array * /* String */ labels); + virtual Array * /* String */ gmailLabels(); + + virtual void setGmailThreadID(String * threadID); + virtual String * /* String */ gmailThreadID(); - virtual void setGmailThreadID(String * threadID); - virtual String * /* String */ gmailThreadID(); - virtual AbstractPart * partForPartID(String * partID); virtual AbstractPart * partForContentID(String * contentID); @@ -51,19 +51,19 @@ namespace mailcore { HTMLRendererTemplateCallback * htmlCallback = NULL); public: // subclass behavior - IMAPMessage(IMAPMessage * other); - virtual Object * copy(); - virtual String * description(); + IMAPMessage(IMAPMessage * other); + virtual Object * copy(); + virtual String * description(); private: uint64_t mModSeqValue; - uint32_t mUid; - MessageFlag mFlags; - MessageFlag mOriginalFlags; - AbstractPart * mMainPart; - Array * /* String */ mLabels; - String * mThreadID; - void init(); + uint32_t mUid; + MessageFlag mFlags; + MessageFlag mOriginalFlags; + AbstractPart * mMainPart; + Array * /* String */ mLabels; + String * mThreadID; + void init(); }; } diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc index e0c00d39..11e063ae 100644 --- a/src/core/imap/MCIMAPSession.cc +++ b/src/core/imap/MCIMAPSession.cc @@ -1582,7 +1582,7 @@ struct msg_att_handler_data { bool needsBody; bool needsFlags; bool needsGmailLabels; - bool needsGmailThreadID; + bool needsGmailThreadID; uint32_t startUid; }; @@ -1609,7 +1609,7 @@ static void msg_att_handler(struct mailimap_msg_att * msg_att, void * context) bool needsBody; bool needsFlags; bool needsGmailLabels; - bool needsGmailThreadID; + bool needsGmailThreadID; uint32_t startUid; msg_att_context = (struct msg_att_handler_data *) context; @@ -1624,7 +1624,7 @@ static void msg_att_handler(struct mailimap_msg_att * msg_att, void * context) needsBody = msg_att_context->needsBody; needsFlags = msg_att_context->needsFlags; needsGmailLabels = msg_att_context->needsGmailLabels; - needsGmailThreadID = msg_att_context->needsGmailThreadID; + needsGmailThreadID = msg_att_context->needsGmailThreadID; startUid = msg_att_context->startUid; hasHeader = false; @@ -1723,13 +1723,13 @@ static void msg_att_handler(struct mailimap_msg_att * msg_att, void * context) } labels->release(); } - if (ext_data->ext_extension == &mailimap_extension_xgmthrid) { - String * threadID; - - threadID = String::stringWithUTF8Characters((char *) ext_data->ext_data); - msg->setGmailThreadID(threadID); - hasGmailThreadID = true; - } + else if (ext_data->ext_extension == &mailimap_extension_xgmthrid) { + String * threadID; + + threadID = String::stringWithUTF8Characters((char *) ext_data->ext_data); + msg->setGmailThreadID(threadID); + hasGmailThreadID = true; + } } } for(item_iter = clist_begin(msg_att->att_list) ; item_iter != NULL ; item_iter = clist_next(item_iter)) { @@ -1765,9 +1765,9 @@ static void msg_att_handler(struct mailimap_msg_att * msg_att, void * context) return; } if (needsGmailThreadID && !hasGmailThreadID) { - msg->release(); - return; - } + msg->release(); + return; + } if (uid != 0) { msg->setUid(uid); } @@ -1795,7 +1795,7 @@ IMAPSyncResult * IMAPSession::fetchMessages(String * folder, IMAPMessagesRequest bool needsBody; bool needsFlags; bool needsGmailLabels; - bool needsGmailThreadID; + bool needsGmailThreadID; Array * messages; IndexSet * vanishedMessages; @@ -1819,7 +1819,7 @@ IMAPSyncResult * IMAPSession::fetchMessages(String * folder, IMAPMessagesRequest needsBody = false; needsFlags = false; needsGmailLabels = false; - needsGmailThreadID = false; + needsGmailThreadID = false; fetch_type = mailimap_fetch_type_new_fetch_att_list_empty(); fetch_att = mailimap_fetch_att_new_uid(); @@ -1836,12 +1836,12 @@ IMAPSyncResult * IMAPSession::fetchMessages(String * folder, IMAPMessagesRequest mailimap_fetch_type_new_fetch_att_list_add(fetch_type, fetch_att); needsGmailLabels = true; } - if ((requestKind & IMAPMessagesRequestKindGmailThreadID) != 0) { + if ((requestKind & IMAPMessagesRequestKindGmailThreadID) != 0) { MCLog("request flags"); fetch_att = mailimap_fetch_att_new_xgmthrid(); mailimap_fetch_type_new_fetch_att_list_add(fetch_type, fetch_att); needsGmailThreadID = true; - } + } if ((requestKind & IMAPMessagesRequestKindFullHeaders) != 0) { clist * hdrlist; char * header; |