diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.0) -set(PIM_VERSION "5.6.40") +set(PIM_VERSION "5.6.41") project(KMime VERSION ${PIM_VERSION}) diff --git a/src/kmime_content.h b/src/kmime_content.h --- a/src/kmime_content.h +++ b/src/kmime_content.h @@ -248,6 +248,12 @@ void setHead(const QByteArray &head); /** + * Returns all headers. + * @since 5.7 + */ + QVector headers() const; + + /** Returns the first header of type @p type, if it exists. Otherwise returns 0. Note that the returned header may be empty. @param type the header type to find diff --git a/src/kmime_content.cpp b/src/kmime_content.cpp --- a/src/kmime_content.cpp +++ b/src/kmime_content.cpp @@ -615,6 +615,11 @@ } } +QVector Content::headers() const +{ + return d_ptr->headers; +} + Headers::Base *Content::headerByType(const char *type) const { Q_ASSERT(type && *type);