Commit 88b0b638 authored by Carl Schwan's avatar Carl Schwan 🚴
Browse files

Hangle imap id <= 0 better



It will crash later on when retriving the items if it the ID is <= 0 and not
only when Id == 0

Signed-off-by: Carl Schwan's avatarCarl Schwan <carl@carlschwan.eu>
parent 3e991e3f
Pipeline #242918 passed with stage
in 34 minutes and 24 seconds
......@@ -30,7 +30,7 @@ void RetrieveItemTask::doStart(KIMAP::Session *session)
const QString mailBox = mailBoxForCollection(item().parentCollection());
m_uid = item().remoteId().toLongLong();
if (m_uid == 0) {
if (m_uid <= 0) {
qCWarning(IMAPRESOURCE_LOG) << "Remote id is " << item().remoteId();
cancelTask(i18n("Remote id is empty or invalid"));
return;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment