KMIME Library
kmime_util.h
219 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:574
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:942
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:849
bool isSigned(Message *message)
Returns whether or not the given message is partly or fully signed.
Definition: kmime_util.cpp:976
QByteArray cachedLanguage(const QByteArray &name)
Consult the language cache.
Definition: kmime_util.cpp:74
QByteArray cachedCharset(const QByteArray &name)
Consult the charset cache.
Definition: kmime_util.cpp:61
QString decodeRFC2231String(const QByteArray &str, QByteArray &usedCS, const QByteArray &defaultCS, bool forceCS)
Decodes string src according to RFC2231.
Definition: kmime_util.cpp:491
void setUseOutlookAttachmentEncoding(bool violateStandard)
Set whether or not to use outlook compatible attachment filename encoding.
Definition: kmime_util.cpp:194
QByteArray encodeRFC2231String(const QString &str, const QByteArray &charset)
Encodes string src according to RFC2231 using charset charset.
Definition: kmime_util.cpp:429
QByteArray LFtoCRLF(const QByteArray &s)
Converts all occurrences of "\n" (LF) in s to "\r\n" (CRLF).
Definition: kmime_util.cpp:787
void removeQuots(QByteArray &str)
Removes quote (DQUOTE) characters and decodes "quoted-pairs" (ie.
Definition: kmime_util.cpp:818
QString nameForEncoding(Headers::contentEncoding enc)
Returns a user-visible string for a contentEncoding, for example "quoted-printable" for CEquPr...
Definition: kmime_util.cpp:98
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:737
bool isEncrypted(Message *message)
Returns whether or not the given message is partly or fully encrypted.
Definition: kmime_util.cpp:996
QByteArray multiPartBoundary()
Constructs a random string (sans leading/trailing "--") that can be used as a multipart delimiter (ie...
Definition: kmime_util.cpp:569
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:184
QList< Headers::contentEncoding > encodingsForData(const QByteArray &data)
Returns a list of encodings that can correctly encode the data.
Definition: kmime_util.cpp:111
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:205
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:542
bool isUsAscii(const QString &s)
Checks whether s contains any non-us-ascii characters.
Definition: kmime_util.cpp:87
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:859
bool isInvitation(Content *content)
Returns whether or not the given MIME content is an invitation message of the iTIP protocol...
Definition: kmime_util.cpp:1015
QString fallbackCharEncoding()
Retrieve the set fallback charset if there is one set.
Definition: kmime_util.cpp:189
bool useOutlookAttachmentEncoding()
Retrieve whether or not to use outlook compatible encodings for attachments.
Definition: kmime_util.cpp:199
QString removeBidiControlChars(const QString &input)
Similar to the above function.
Definition: kmime_util.cpp:905
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:714
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:269
QByteArray CRLFtoLF(const QByteArray &s)
Converts all occurrences of "\r\n" (CRLF) in s to "\n" (LF).
Definition: kmime_util.cpp:774
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:02:28 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Nov 26 2013 09:02:28 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.