Commit aa7e26cb authored by Sandro Knauß's avatar Sandro Knauß 🐝
Browse files

MimeTreeParser: Check if an header exists in any owerwrite.

parent 51376b22
......@@ -490,6 +490,13 @@ void NodeHelper::magicSetType(KMime::Content *node, bool aAutoDecode)
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);
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