Page MenuHome GnuPG

No OneTemporary

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..6a5adc5
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,7 @@
+# SPDX-FileCopyrightText: 2020-2021 Laurent Montel <montel@kde.org>
+# SPDX-License-Identifier: CC0-1.0
+
+include:
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/reuse-lint.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/linux.yml
+ - https://invent.kde.org/sysadmin/ci-utilities/raw/master/gitlab-templates/freebsd.yml
diff --git a/.kde-ci.yml b/.kde-ci.yml
new file mode 100644
index 0000000..e191b12
--- /dev/null
+++ b/.kde-ci.yml
@@ -0,0 +1,13 @@
+# SPDX-FileCopyrightText: None
+# SPDX-License-Identifier: CC0-1.0
+
+Dependencies:
+- 'on': ['Linux/Qt5', 'FreeBSD/Qt5']
+ 'require':
+ 'frameworks/extra-cmake-modules': '@latest'
+ 'frameworks/kcalendarcore' : '@latest'
+ 'pim/kmime' : '@same'
+ 'pim/kmbox' : '@same'
+
+Options:
+ require-passing-tests-on: ['Linux']
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97a2c61..44e7b20 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,111 +1,111 @@
# SPDX-FileCopyrightText: 2023 Carl Schwan <carl.schwan@gnupg.com>
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
set(PIM_VERSION "5.23.42")
project(MimeTreeParserNG VERSION ${PIM_VERSION})
# ECM setup
set(KF_MIN_VERSION "5.105.0")
find_package(ECM ${KF_MIN_VERSION} CONFIG REQUIRED)
set(CMAKE_MODULE_PATH
${CMAKE_MODULE_PATH}
${ECM_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules
)
set(QT_REQUIRED_VERSION "5.15.2")
if (QT_MAJOR_VERSION STREQUAL "6")
set(QT_REQUIRED_VERSION "6.4.0")
endif()
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(ECMGeneratePriFile)
include(ECMQmlModule)
include(ECMSetupVersion)
include(FeatureSummary)
include(KDEGitCommitHooks)
include(KDEClangFormat)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h *.c)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
include(ECMQtDeclareLoggingCategory)
include(ECMDeprecationSettings)
include(ECMAddQch)
if (QT_MAJOR_VERSION STREQUAL "6")
set(QT_REQUIRED_VERSION "6.4.0")
set(KF_MIN_VERSION "5.240.0")
set(KF_MAJOR_VERSION "6")
else()
set(KF_MAJOR_VERSION "5")
endif()
set(KPIM_MIME_VERSION "5.23.40")
ecm_setup_version(PROJECT
VARIABLE_PREFIX MIMETREEPARSERNG
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/mimetreeparserng_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KPim${KF_MAJOR_VERSION}MimeTreeParserCoreConfigVersion.cmake"
SOVERSION 5
)
configure_file(mimetreeparserng-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/src/mimetreeparserng-version.h @ONLY)
option(BUILD_QCH "Build API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)" OFF)
add_feature_info(QCH ${BUILD_QCH} "API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)")
if(BUILD_TESTING)
add_definitions(-DBUILD_TESTING)
endif()
########### Find packages ###########
find_package(Qt${KF_MAJOR_VERSION}Gui ${QT_MIN_VERSION} CONFIG REQUIRED)
find_package(KF${KF_MAJOR_VERSION}I18n ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF${KF_MAJOR_VERSION}Codecs ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KF${KF_MAJOR_VERSION}CalendarCore ${KF_MIN_VERSION} CONFIG REQUIRED)
find_package(KPim${KF_MAJOR_VERSION}Mime ${KPIM_MIME_VERSION} CONFIG REQUIRED)
find_package(Gpgme REQUIRED)
find_package(Qt${KF_MAJOR_VERSION}Quick ${QT_MIN_VERSION} CONFIG)
find_package(Qt${KF_MAJOR_VERSION}Widgets ${QT_MIN_VERSION} CONFIG)
if (BUILD_TESTING)
find_package(Qt${KF_MAJOR_VERSION}Test ${QT_MIN_VERSION} CONFIG REQUIRED)
endif()
########### Targets ###########
ecm_set_disabled_deprecation_versions(QT 6.4 KF 5.105.0)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" OFF)
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT OFF)
if (USE_UNITY_CMAKE_SUPPORT)
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT ON)
add_definitions(-DCOMPILE_WITH_UNITY_CMAKE_SUPPORT)
endif()
add_subdirectory(src)
add_subdirectory(examples)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/mimetreeparserng_version.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/KPim${KF_MAJOR_VERSION}/MimeTreeParserCore
COMPONENT Devel
)
ecm_qt_install_logging_categories(
- EXPORT MIMETREEPARSER2
+ EXPORT MIMETREEPARSERNG
FILE mimetreeparser2.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
ki18n_install(po)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff --git a/README.md b/README.md
index 637932e..a5cda61 100644
--- a/README.md
+++ b/README.md
@@ -1,22 +1,24 @@
# MimeTreeParser
This repository contains a parser for a MIME tree and is based on KMime. The
goal is given a MIME tree to extract a list of parts (e.g. text, html) and a
list of attachments, check the validity of the signatures and decrypt any
encrypted part.
+![coverage](https://invent.kde.org/carlschwan/mimetreeparser/badges/master/coverage.svg?job=suse_tumbleweed_qt515)
+
## Example
Example usage of this library can be found in the examples folder.
QML usage (examples/qml):
![](screenshots/screenshot.png)
Widgets usage (examples/widgets):
![](screenshots/widgets.png)
## License
This project is licensed under the GNU General License (GPL-2.0-only AND GPL-2.0-or-later). New file are expected to be licensed under the GPL-2.0-or-later
diff --git a/mimetreeparserng-version.h.cmake b/mimetreeparserng-version.h.cmake
new file mode 100644
index 0000000..defabe1
--- /dev/null
+++ b/mimetreeparserng-version.h.cmake
@@ -0,0 +1,7 @@
+// This file is part of the KDE project
+// SPDX-FileCopyrightText: 2015-2023 Laurent Montel <montel@kde.org>
+// SPDX-License-Identifier: LGPL-2.0-or-later
+
+#pragma once
+#define MIMETREEPARSERNG_VERSION "@MIMETREEPARSERNG_LIB_VERSION@"
+

File Metadata

Mime Type
text/x-diff
Expires
Fri, Dec 5, 6:25 PM (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3f/00/fdfb550d9d4b6d7e5bbf7ee95085

Event Timeline