File indexing completed on 2024-09-22 04:50:00
0001 /* 0002 * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <taferner@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 * 0006 */ 0007 0008 #pragma once 0009 0010 #include "filteractionwithcommand.h" 0011 0012 namespace MailCommon 0013 { 0014 //============================================================================= 0015 // FilterActionPipeThrough - use external filter app 0016 // External message filter: executes a shell command with message 0017 // on stdin; altered message is expected on stdout. 0018 //============================================================================= 0019 class FilterActionPipeThrough : public FilterActionWithCommand 0020 { 0021 Q_OBJECT 0022 public: 0023 explicit FilterActionPipeThrough(QObject *parent = nullptr); 0024 [[nodiscard]] ReturnCode process(ItemContext &context, bool applyOnOutbound) const override; 0025 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override; 0026 static FilterAction *newAction(); 0027 [[nodiscard]] QString informationAboutNotValidAction() const override; 0028 }; 0029 }