Messagelib

dkimcheckpolicy.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "messageviewer/messageviewersettings.h"
10#include "messageviewer_export.h"
11namespace MessageViewer
12{
13/**
14 * @brief The DKIMCheckPolicy class
15 * @author Laurent Montel <montel@kde.org>
16 */
17class MESSAGEVIEWER_EXPORT DKIMCheckPolicy
18{
19public:
21
22 [[nodiscard]] int rsaSha1Policy() const;
23 [[nodiscard]] bool verifySignatureWhenOnlyTest() const;
24 void setRsaSha1Policy(int rsaSha1Policy);
25
26 void setVerifySignatureWhenOnlyTest(bool verifySignatureWhenOnlyTest);
27
28 [[nodiscard]] bool saveDkimResult() const;
29 void setSaveDkimResult(bool saveDkimResult);
30
31 [[nodiscard]] int saveKey() const;
32 void setSaveKey(int saveKey);
33
34 [[nodiscard]] bool autogenerateRule() const;
35 void setAutogenerateRule(bool autogenerateRule);
36
37 [[nodiscard]] bool checkIfEmailShouldBeSigned() const;
38 void setCheckIfEmailShouldBeSigned(bool checkIfEmailShouldBeSigned);
39
40 [[nodiscard]] bool useDMarc() const;
41 void setUseDMarc(bool useDMarc);
42
43 [[nodiscard]] bool useDefaultRules() const;
44 void setUseDefaultRules(bool useDefaultRules);
45
46 [[nodiscard]] bool useAuthenticationResults() const;
47 void setUseAuthenticationResults(bool useAuthenticationResults);
48
49 [[nodiscard]] bool useRelaxedParsing() const;
50 void setUseRelaxedParsing(bool useRelaxedParsing);
51
52 [[nodiscard]] bool useOnlyAuthenticationResults() const;
53 void setUseOnlyAuthenticationResults(bool useOnlyAuthenticationResults);
54
55 [[nodiscard]] bool autogenerateRuleOnlyIfSenderInSDID() const;
56 void setAutogenerateRuleOnlyIfSenderInSDID(bool autogenerateRuleOnlyIfSenderInSDID);
57
58 [[nodiscard]] int publicRsaTooSmallPolicy() const;
59 void setPublicRsaTooSmallPolicy(int publicRsaTooSmallPolicy);
60
61private:
62 int mRsaSha1Policy = -1;
63 int mSaveKey = -1;
64 int mPublicRsaTooSmallPolicy = -1;
65 bool mVerifySignatureWhenOnlyTest = false;
66 bool mSaveDkimResult = false;
67 bool mAutogenerateRule = false;
68 bool mCheckIfEmailShouldBeSigned = false;
69 bool mUseDMarc = false;
70 bool mUseDefaultRules = false;
71 bool mUseAuthenticationResults = false;
72 bool mUseRelaxedParsing = false;
73 bool mUseOnlyAuthenticationResults = false;
74 bool mAutogenerateRuleOnlyIfSenderInSDID = false;
75};
76}
The DKIMCheckPolicy class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.