aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/imap
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/imap')
-rw-r--r--src/core/imap/MCIMAPSession.cc10
-rw-r--r--src/core/imap/MCIMAPSession.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/core/imap/MCIMAPSession.cc b/src/core/imap/MCIMAPSession.cc
index 542f7e14..207ad17c 100644
--- a/src/core/imap/MCIMAPSession.cc
+++ b/src/core/imap/MCIMAPSession.cc
@@ -329,7 +329,7 @@ void IMAPSession::init()
mUIDNext = 0;
mModSequenceValue = 0;
mFolderMsgCount = 0;
- mFolderUnseenCount = 0;
+ mFirstUnseenUid = 0;
mLastFetchedSequenceNumber = 0;
mCurrentFolder = NULL;
pthread_mutex_init(&mIdleLock, NULL);
@@ -842,9 +842,9 @@ void IMAPSession::select(String * folder, ErrorCode * pError)
}
if (mImap->imap_selection_info->sel_first_unseen) {
- mFolderUnseenCount = (unsigned int) (mImap->imap_selection_info->sel_first_unseen);
+ mFirstUnseenUid = mImap->imap_selection_info->sel_first_unseen;
} else {
- mFolderUnseenCount = -1;
+ mFirstUnseenUid = -1;
}
@@ -2702,9 +2702,9 @@ unsigned int IMAPSession::lastFolderMessageCount()
return mFolderMsgCount;
}
-unsigned int IMAPSession::lastFolderUnseenCount()
+uint32_t IMAPSession::firstUnseenUid()
{
- return mFolderUnseenCount;
+ return mFirstUnseenUid;
}
IMAPSyncResult * IMAPSession::syncMessagesByUID(String * folder, IMAPMessagesRequestKind requestKind,
diff --git a/src/core/imap/MCIMAPSession.h b/src/core/imap/MCIMAPSession.h
index 5a052744..4c651aa5 100644
--- a/src/core/imap/MCIMAPSession.h
+++ b/src/core/imap/MCIMAPSession.h
@@ -122,7 +122,7 @@ namespace mailcore {
virtual uint32_t uidNext();
virtual uint64_t modSequenceValue();
virtual unsigned int lastFolderMessageCount();
- virtual unsigned int lastFolderUnseenCount();
+ virtual uint32_t firstUnseenUid();
virtual bool isIdleEnabled();
@@ -159,7 +159,7 @@ namespace mailcore {
uint32_t mUIDNext;
uint64_t mModSequenceValue;
unsigned int mFolderMsgCount;
- unsigned int mFolderUnseenCount;
+ uint32_t mFirstUnseenUid;
unsigned int mLastFetchedSequenceNumber;
String * mCurrentFolder;