Mailcommon
cryptoutils.cpp
51 return ct && (ct->isSubtype("pgp-encrypted") || ct->isSubtype("encrypted") || (allowOctetStream && ct->isMimeType("application/octet-stream")));
71KMime::Message::Ptr CryptoUtils::decryptMessage(const KMime::Message::Ptr &msg, bool &wasEncrypted)
109 auto inData = multipart ? msg->encodedContent() : msg->decodedContent(); // decodedContent in fact returns decoded body
156 return header->is("Content-Type") || header->is("Content-Transfer-Encoding") || header->is("Content-Disposition");
159KMime::Message::Ptr CryptoUtils::assembleMessage(const KMime::Message::Ptr &orig, const KMime::Content *newContent)
Headers::Base * headerByType(QByteArrayView type) const
void assemble()
QList< Headers::Base * > headers()
void parse()
QByteArray body() const
void setContent(const QByteArray &s)
void setBody(const QByteArray &body)
virtual const char * type() const
virtual QByteArray as7BitString(bool withHeaderType=true) const=0
bool is(QByteArrayView t) const
bool verify(Part &part)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.