Lines Matching refs:flags
29 static const char* kFlagsAttribute = "IMAP:flags";
148 uint32 flags;
161 uint32 flags = B_BENDIAN_TO_HOST_INT32(entries[i].flags);
163 fFlagsMap.insert(std::make_pair(uid, flags));
234 /*! Synchronizes the message flags/state from the server with the local
274 // Compare flags to previous/current flags, and update either the
294 // Update server flags
305 // Synchronize all pending flags first
362 /*! Writes UID, and flags to the message, and notifies the protocol that a
367 uint32 uid, uint32 flags)
372 _WriteFlags(file, flags);
375 _IMAPToMailFlags(flags, attributes);
539 uint32 flags = _ReadFlags(node);
546 fFlagsMap.insert(std::make_pair(uid, flags));
555 // if (flagsFound != flags) {
556 // // Its flags have changed locally, and need to be updated
558 // flagsFound, flags);
640 IMAPFolder::_IMAPToMailFlags(uint32 flags, BMessage& attributes)
643 if ((flags & IMAP::kAnswered) != 0)
645 else if ((flags & IMAP::kFlagged) != 0)
647 else if ((flags & IMAP::kSeen) != 0)
653 IMAPFolder::_MailToIMAPFlags(BNode& node, uint32& flags)
660 flags &= ~(IMAP::kAnswered | IMAP::kSeen);
664 flags |= IMAP::kAnswered | IMAP::kSeen;
666 flags |= IMAP::kSeen;
668 flags |= IMAP::kFlagged | IMAP::kSeen;
680 // The flags on the mailbox changed, update local flags
684 // Both flags changed. Since we don't have the means to do
691 // Previous message flags, and mailbox flags are identical, see
747 IMAPFolder::_WriteFlags(BNode& node, uint32 flags) const
749 return _WriteUInt32(node, kFlagsAttribute, flags);