Messagelib

dkimcheckpolicy.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messageviewer_export.h"
10 #include <messageviewer/messageviewersettings.h>
11 namespace MessageViewer
12 {
13 /**
14  * @brief The DKIMCheckPolicy class
15  * @author Laurent Montel <[email protected]>
16  */
17 class MESSAGEVIEWER_EXPORT DKIMCheckPolicy
18 {
19 public:
21 
22  Q_REQUIRED_RESULT int rsaSha1Policy() const;
23  Q_REQUIRED_RESULT bool verifySignatureWhenOnlyTest() const;
24  void setRsaSha1Policy(int rsaSha1Policy);
25 
26  void setVerifySignatureWhenOnlyTest(bool verifySignatureWhenOnlyTest);
27 
28  Q_REQUIRED_RESULT bool saveDkimResult() const;
29  void setSaveDkimResult(bool saveDkimResult);
30 
31  Q_REQUIRED_RESULT int saveKey() const;
32  void setSaveKey(int saveKey);
33 
34  Q_REQUIRED_RESULT bool autogenerateRule() const;
35  void setAutogenerateRule(bool autogenerateRule);
36 
37  Q_REQUIRED_RESULT bool checkIfEmailShouldBeSigned() const;
38  void setCheckIfEmailShouldBeSigned(bool checkIfEmailShouldBeSigned);
39 
40  Q_REQUIRED_RESULT bool useDMarc() const;
41  void setUseDMarc(bool useDMarc);
42 
43  Q_REQUIRED_RESULT bool useDefaultRules() const;
44  void setUseDefaultRules(bool useDefaultRules);
45 
46  Q_REQUIRED_RESULT bool useAuthenticationResults() const;
47  void setUseAuthenticationResults(bool useAuthenticationResults);
48 
49  Q_REQUIRED_RESULT bool useRelaxedParsing() const;
50  void setUseRelaxedParsing(bool useRelaxedParsing);
51 
52  Q_REQUIRED_RESULT bool useOnlyAuthenticationResults() const;
53  void setUseOnlyAuthenticationResults(bool useOnlyAuthenticationResults);
54 
55  Q_REQUIRED_RESULT bool autogenerateRuleOnlyIfSenderInSDID() const;
56  void setAutogenerateRuleOnlyIfSenderInSDID(bool autogenerateRuleOnlyIfSenderInSDID);
57 
58  Q_REQUIRED_RESULT int publicRsaTooSmallPolicy() const;
59  void setPublicRsaTooSmallPolicy(int publicRsaTooSmallPolicy);
60 
61 private:
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-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:01:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.