IMAP
IMAP::FolderEntry& entry = fFolderList[i];
IMAP::FolderEntry& entry = fFolderList[i];
IMAP::FolderEntry& entry = fFolderList[i];
IMAP::Protocol fProtocol;
IMAP::FolderList fFolderList;
IMAP::Protocol& protocol = WorkerPrivate(worker).Protocol();
class FetchBodiesCommand : public SyncCommand, public IMAP::FetchListener {
IMAP::Protocol& protocol = WorkerPrivate(worker).Protocol();
using IMAP::MessageUIDList;
IMAP::FetchCommand fetch(fUID, fUID, IMAP::kFetchBody);
class FetchHeadersCommand : public SyncCommand, public IMAP::FetchListener {
IMAP::Protocol& protocol = WorkerPrivate(worker).Protocol();
IMAP::FetchCommand fetch(fUIDs, kMaxFetchEntries,
IMAP::kFetchHeader | IMAP::kFetchFlags);
IMAP::Protocol& protocol = WorkerPrivate(worker).Protocol();
IMAP::Protocol& Protocol()
IMAP::MessageEntryList entries;
IMAP::FetchMessageEntriesCommand fetch(entries, from, to, false);
IMAP::Protocol& protocol = WorkerPrivate(worker).Protocol();
IMAP::SetFlagsCommand set(fUID, fFlags);
IMAP::SelectCommand select(folder.MailboxName().String());
class IMAPConnectionWorker : public IMAP::ExistsListener,
IMAP::ExpungeListener {
IMAP::Protocol fProtocol;
IMAP::ExistsHandler fExistsHandler;
IMAP::ExpungeHandler fExpungeHandler;
fProtocol.UpdateMessageFlags(*this, uid, IMAP::kDeleted);
IMAP::kSeen, nextFlags);
IMAP::kAnswered, nextFlags);
if ((fetchFlags & IMAP::kFetchFlags) != 0)
IMAPFolder::RegisterPendingBodies(IMAP::MessageUIDList& uids,
IMAP::MessageUIDList::const_iterator iterator = uids.begin();
fProtocol.MessageStored(*this, ref, file, IMAP::kFetchBody, attributes);
if ((flags & IMAP::kAnswered) != 0)
else if ((flags & IMAP::kFlagged) != 0)
else if ((flags & IMAP::kSeen) != 0)
flags &= ~(IMAP::kAnswered | IMAP::kSeen);
flags |= IMAP::kAnswered | IMAP::kSeen;
flags |= IMAP::kSeen;
flags |= IMAP::kFlagged | IMAP::kSeen;
IMAP::MessageUIDList& uids,
IMAPMailbox::IMAPMailbox(IMAP::Protocol& protocol, const BString& mailboxName)
namespace IMAP {
IMAPMailbox(IMAP::Protocol& protocol,
IMAP::Protocol& fProtocol;
IMAP::MessageUIDList fUIDs;
if ((fetchFlags & (IMAP::kFetchHeader | IMAP::kFetchBody))
== (IMAP::kFetchHeader | IMAP::kFetchBody)) {
} else if ((fetchFlags & IMAP::kFetchHeader) != 0) {
} else if ((fetchFlags & IMAP::kFetchBody) != 0) {
IMAPProtocol::CheckSubscribedFolders(IMAP::Protocol& protocol, bool idle)
namespace IMAP {
IMAP::Protocol& protocol, bool idle);
if ((flags & IMAP::kSeen) != 0)
if ((flags & IMAP::kAnswered) != 0)
if ((flags & IMAP::kFlagged) != 0)
if ((flags & IMAP::kDeleted) != 0)
if ((flags & IMAP::kDraft) != 0)
ParseFlags(IMAP::ArgumentList& list)
flags |= IMAP::kSeen;
flags |= IMAP::kAnswered;
flags |= IMAP::kFlagged;
flags |= IMAP::kDeleted;
flags |= IMAP::kDraft;
namespace IMAP {
IMAP::ResponseParser parser(*fBufferedSocket);
if (IMAP::LiteralHandler* literalHandler
= dynamic_cast<IMAP::LiteralHandler*>(command))
IMAP::Response response;
class IDCommand : public IMAP::Command, public IMAP::Handler {
bool HandleUntagged(IMAP::Response& response)
namespace IMAP {
namespace IMAP {
info.inboundType = IMAP;
if (info.inboundType == IMAP)
if (info.inboundType == IMAP) {
if (info.inboundType == IMAP) {
if (fAccountInfo.inboundType == IMAP) {
flags = IMAP::kFetchBody;
IMAP::FetchCommand command(from, to, flags | IMAP::kFetchFlags);
class Listener : public IMAP::FetchListener {
IMAP::MessageEntryList entries;
IMAP::FetchMessageEntriesCommand command(entries, from, to, true);
IMAP::RawCommand command("NOOP");
class RawCommand : public IMAP::Command, public IMAP::Handler {
bool HandleUntagged(IMAP::Response& response)
static IMAP::Protocol sProtocol;
IMAP::SelectCommand command(folder);
IMAP::FolderList folders;
uint32 flags = IMAP::kFetchAll;
flags = IMAP::kFetchHeader;
IMAP::RFC3501Encoding encoding;