Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
5b6ead07
Commit
5b6ead07
authored
Nov 03, 2021
by
David Faure
Browse files
Add mailbox name in "Refetching complete mailbox" warning
parent
2657333b
Pipeline
#93597
failed with stage
in 25 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/imap/retrieveitemstask.cpp
View file @
5b6ead07
...
...
@@ -443,9 +443,9 @@ void RetrieveItemsTask::prepareRetrieval()
// New messages are available, but not enough to justify the difference between the local and remote message count.
// This can be triggered if we i.e. clear the local cache, but the keep the annotations.
// If we didn't catch this case, we end up inserting flags only for every missing message.
qCWarning
(
IMAPRESOURCE_LOG
)
<<
"D
etected inconsistency in local cache, we're missing some messages. Server: "
<<
m_messageCount
qCWarning
(
IMAPRESOURCE_LOG
)
<<
m_mailBox
<<
": d
etected inconsistency in local cache, we're missing some messages. Server: "
<<
m_messageCount
<<
" Local: "
<<
realMessageCount
;
qCWarning
(
IMAPRESOURCE_LOG
)
<<
"R
efetching complete mailbox
.
"
;
qCWarning
(
IMAPRESOURCE_LOG
)
<<
m_mailBox
<<
": r
efetching complete mailbox"
;
setTotalItems
(
m_messageCount
);
retrieveItems
(
KIMAP
::
ImapSet
(
1
,
m_nextUid
),
scope
,
false
,
true
);
}
else
if
(
m_nextUid
>
oldNextUid
)
{
...
...
@@ -474,9 +474,9 @@ void RetrieveItemsTask::prepareRetrieval()
// Error recovery:
// We didn't detect any new messages based on the uid, but according to the message count there are new ones.
// Our local cache is invalid and has to be refetched.
qCWarning
(
IMAPRESOURCE_LOG
)
<<
"D
etected inconsistency in local cache, we're missing some messages. Server: "
<<
m_messageCount
qCWarning
(
IMAPRESOURCE_LOG
)
<<
m_mailBox
<<
": d
etected inconsistency in local cache, we're missing some messages. Server: "
<<
m_messageCount
<<
" Local: "
<<
realMessageCount
;
qCWarning
(
IMAPRESOURCE_LOG
)
<<
"R
efetching complete mailbox
.
"
;
qCWarning
(
IMAPRESOURCE_LOG
)
<<
m_mailBox
<<
": r
efetching complete mailbox"
;
setTotalItems
(
m_messageCount
);
retrieveItems
(
KIMAP
::
ImapSet
(
1
,
m_nextUid
),
scope
,
false
,
true
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment