Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PIM MailCommon
Commits
5d29271d
Commit
5d29271d
authored
Oct 16, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/job/expirejob.cpp
src/job/expirejob.cpp
+4
-3
No files found.
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
Markdown
is supported
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