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 Messagelib
Commits
aa7e26cb
Commit
aa7e26cb
authored
Oct 28, 2020
by
Sandro Knauß
🐝
Browse files
MimeTreeParser: Check if an header exists in any owerwrite.
parent
51376b22
Changes
1
Show whitespace changes
Inline
Side-by-side
mimetreeparser/src/nodehelper.cpp
View file @
aa7e26cb
...
@@ -490,6 +490,13 @@ void NodeHelper::magicSetType(KMime::Content *node, bool aAutoDecode)
...
@@ -490,6 +490,13 @@ void NodeHelper::magicSetType(KMime::Content *node, bool aAutoDecode)
bool
NodeHelper
::
hasMailHeader
(
const
char
*
header
,
const
KMime
::
Content
*
message
)
const
bool
NodeHelper
::
hasMailHeader
(
const
char
*
header
,
const
KMime
::
Content
*
message
)
const
{
{
if
(
mHeaderOverwrite
.
contains
(
message
))
{
foreach
(
const
auto
messagePart
,
mHeaderOverwrite
.
value
(
message
))
{
if
(
messagePart
->
hasHeader
(
header
))
{
return
true
;
}
}
}
return
message
->
hasHeader
(
header
);
return
message
->
hasHeader
(
header
);
}
}
...
...
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