KMIME Library
kmime_util.h
217 KMIME_EXPORT extern QByteArray encodeRFC2231String( const QString &src, const QByteArray &charset );
QByteArray unfoldHeader(const QByteArray &header)
Unfolds the given header if necessary.
Definition: kmime_util.cpp:573
This file is part of the API for handling MIME data and defines the Content class.
bool hasAttachment(Content *content)
Returns whether or not the given MIME node contains an attachment part.
Definition: kmime_util.cpp:941
void addQuotes(QByteArray &str, bool forceQuotes)
Converts the given string into a quoted-string if the string contains any special characters (ie...
Definition: kmime_util.cpp:848
bool isSigned(Message *message)
Returns whether or not the given message is partly or fully signed.
Definition: kmime_util.cpp:975
QByteArray cachedLanguage(const QByteArray &name)
Consult the language cache.
Definition: kmime_util.cpp:73
QByteArray cachedCharset(const QByteArray &name)
Consult the charset cache.
Definition: kmime_util.cpp:60
QString decodeRFC2231String(const QByteArray &str, QByteArray &usedCS, const QByteArray &defaultCS, bool forceCS)
Decodes string src according to RFC2231.
Definition: kmime_util.cpp:490
void setUseOutlookAttachmentEncoding(bool violateStandard)
Set whether or not to use outlook compatible attachment filename encoding.
Definition: kmime_util.cpp:193
QByteArray encodeRFC2231String(const QString &str, const QByteArray &charset)
Encodes string src according to RFC2231 using charset charset.
Definition: kmime_util.cpp:428
QByteArray LFtoCRLF(const QByteArray &s)
Converts all occurrences of "\n" (LF) in s to "\r\n" (CRLF).
Definition: kmime_util.cpp:786
void removeQuots(QByteArray &str)
Removes quote (DQUOTE) characters and decodes "quoted-pairs" (ie.
Definition: kmime_util.cpp:817
QString nameForEncoding(Headers::contentEncoding enc)
Returns a user-visible string for a contentEncoding, for example "quoted-printable" for CEquPr...
Definition: kmime_util.cpp:97
QList< QByteArray > extractHeaders(const QByteArray &src, const QByteArray &name)
Tries to extract the headers with name name from the string src, unfolding it if necessary.
Definition: kmime_util.cpp:736
bool isEncrypted(Message *message)
Returns whether or not the given message is partly or fully encrypted.
Definition: kmime_util.cpp:995
QByteArray multiPartBoundary()
Constructs a random string (sans leading/trailing "--") that can be used as a multipart delimiter (ie...
Definition: kmime_util.cpp:568
This file is part of the API for handling MIME data and defines the various header classes: ...
void setFallbackCharEncoding(const QString &fallbackCharEnc)
Set the fallback charset to use when decoding RFC2047-encoded headers.
Definition: kmime_util.cpp:183
QList< Headers::contentEncoding > encodingsForData(const QByteArray &data)
Returns a list of encodings that can correctly encode the data.
Definition: kmime_util.cpp:110
QString decodeRFC2047String(const QByteArray &src, QByteArray &usedCS, const QByteArray &defaultCS, bool forceCS)
Decodes string src according to RFC2047,i.e., the construct =?charset?[qb]?encoded?=.
Definition: kmime_util.cpp:204
QByteArray uniqueString()
Uses current time, pid and random numbers to construct a string that aims to be unique on a per-host ...
Definition: kmime_util.cpp:541
bool isUsAscii(const QString &s)
Checks whether s contains any non-us-ascii characters.
Definition: kmime_util.cpp:86
QString balanceBidiState(const QString &input)
Makes sure that the bidirectional state at the end of the string is the same as at the beginning of t...
Definition: kmime_util.cpp:858
bool isInvitation(Content *content)
Returns whether or not the given MIME content is an invitation message of the iTIP protocol...
Definition: kmime_util.cpp:1014
QString fallbackCharEncoding()
Retrieve the set fallback charset if there is one set.
Definition: kmime_util.cpp:188
bool useOutlookAttachmentEncoding()
Retrieve whether or not to use outlook compatible encodings for attachments.
Definition: kmime_util.cpp:198
QString removeBidiControlChars(const QString &input)
Similar to the above function.
Definition: kmime_util.cpp:904
QByteArray extractHeader(const QByteArray &src, const QByteArray &name)
Tries to extract the header with name name from the string src, unfolding it if necessary.
Definition: kmime_util.cpp:713
QByteArray encodeRFC2047String(const QString &src, const QByteArray &charset, bool addressHeader, bool allow8BitHeaders)
Encodes string src according to RFC2047 using charset charset.
Definition: kmime_util.cpp:268
QByteArray CRLFtoLF(const QByteArray &s)
Converts all occurrences of "\r\n" (CRLF) in s to "\n" (LF).
Definition: kmime_util.cpp:773
This file is part of the KDE documentation.
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Dec 21 2017 20:45:17 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2017 The KDE developers.
Generated on Thu Dec 21 2017 20:45:17 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.