Commit 57b30228 authored by Laurent Montel's avatar Laurent Montel 😁

Remove directly header

parent 5b54d0b8
......@@ -67,9 +67,8 @@ FilterAction::ReturnCode FilterActionRemoveHeader::process(ItemContext &context,
KMime::Message::Ptr msg = context.item().payload<KMime::Message::Ptr>();
const QByteArray param(mParameter.toLatin1());
bool headerRemove = false;
while (msg->headerByType(param.constData())) {
while (msg->removeHeader(param.constData())) {
headerRemove = true;
if (headerRemove) {
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