Commit 82001e7a authored by David Faure's avatar David Faure

IMAP: add folder name in error message about select.

Example:
user/steffen/undetected-spam: Select failed, server replied: A002053 NO Permission denied
parent 8fddc003
......@@ -237,14 +237,14 @@ void RetrieveItemsTask::triggerFinalSelect(const QString &mailBox)
void RetrieveItemsTask::onFinalSelectDone(KJob *job)
{
KIMAP::SelectJob *select = qobject_cast<KIMAP::SelectJob *>(job);
if (job->error()) {
qCWarning(IMAPRESOURCE_LOG) << job->errorString();
cancelTask(job->errorString());
qCWarning(IMAPRESOURCE_LOG) << select->mailBox() << ":" << job->errorString();
cancelTask(select->mailBox() + QStringLiteral(" : ") + job->errorString());
return;
}
KIMAP::SelectJob *select = qobject_cast<KIMAP::SelectJob *>(job);
m_mailBox = select->mailBox();
m_messageCount = select->messageCount();
m_uidValidity = select->uidValidity();
......
Markdown is supported
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