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
PIM MailCommon
Commits
5d29271d
Commit
5d29271d
authored
Oct 16, 2020
by
Laurent Montel
😁
Browse files
Minor optimization
parent
715f411d
Pipeline
#37813
passed with stage
in 29 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/job/expirejob.cpp
View file @
5d29271d
...
...
@@ -116,13 +116,14 @@ void ExpireJob::itemFetchResult(KJob *job)
continue
;
}
time_t
maxTime
=
status
.
isRead
()
?
mMaxReadTime
:
mMaxUnreadTime
;
if
(
!
mb
->
date
(
false
))
{
auto
mailDate
=
mb
->
date
(
false
);
if
(
!
mailDate
)
{
continue
;
}
if
(
mb
->
date
()
->
dateTime
().
toSecsSinceEpoch
()
<
maxTime
)
{
const
time_t
maxTime
=
status
.
isRead
()
?
mMaxReadTime
:
mMaxUnreadTime
;
if
(
mailDate
->
dateTime
().
toSecsSinceEpoch
()
<
maxTime
)
{
mRemovedMsgs
.
append
(
item
);
}
}
...
...
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