Standard attachment disposition.
Standard inline disposition.
A bit flag for g_mime_filter_enriched_new() which signifies that the filter should expect Rich Text (aka RTF).
Enclose citation text in blockquotes.
Cites text by prepending "> " to each cited line.
Wrap email addresses in "mailto:" href tags.
Convert new-lines ('\n') into <br> tags.
Preserve whitespace by converting spaces into their appropriate html entities.
Wrap detected URLs in <a href=...> tags.
Converts 8bit characters to '?'.
Change the colour of citation text.
Wrap stream in <pre> and </pre> tags.
GMime's interface age.
GMime's major version.
GMime's micro version.
GMime's minor version.
A convenience macro for masking out the non-error bit flags.
State for the g_mime_encoding_uudecode_step() function, denoting that the 'begin' line has been found.
State for the g_mime_encoding_uudecode_step() function, denoting that the end of the UU encoded block has been found.
Initial state for the g_mime_encoding_uudecode_step() function.
State bit that denotes the yEnc filter has found the =ybegin line.
State bit that denotes yEnc filter has begun decoding the actual yencoded content and will continue to do so until an =yend line is found (or until there is nothing left to decode).
State bit that denoates that g_mime_ydecode_step() has finished decoding.
State bit that denotes the yEnc filter has reached an end-of-line.
This state is for internal use only.
State bit that denotes the yEnc filter has reached an escape sequence.
This state is for internal use only.
Initial state for the g_mime_ydecode_step() function.
State bit that denotes the yEnc filter has found the =ypart line. (Note: not all yencoded blocks have one)
Initial state for the crc and pcrc state variables.
Initial state for the g_mime_ydecode_step() function.
Computes the best charset to use to encode this text buffer.
a UTF-8 text buffer
input buffer length
Attempts to find a canonical charset name for charset
.
Note: Will normally return the same value as g_mime_charset_iconv_name() unless the system iconv does not use the canonical ISO charset names (such as using ISO8859-1 rather than the canonical form ISO-8859-1).
charset name
Attempts to find an iconv-friendly charset name for charset
.
charset name
Maps the ISO-8859-# charset to the equivalent Windows-CP125# charset.
ISO-8859-# charset
Attempts to find a specific language code that is specific to
charset
. Currently only handles CJK and Russian/Ukranian
charset->lang mapping. Everything else will return %NULL.
charset name
Gets the user's locale charset (or iso-8859-1 by default).
Note: This function is deprecated. Use g_mime_locale_charset() instead.
Initializes character set maps.
Note: g_mime_init() calls this routine for you.
Frees internal lookup tables created in g_mime_charset_map_init().
Attempts to find an iconv-friendly charset name for charset
.
Note: This function is deprecated. Use g_mime_charset_iconv_name() instead.
charset name
Checks that the GMime library version meets the requirements of the required version.
Minimum major version
Minimum minor version
Minimum micro version
Gets the appropriate #GMimeContentEncoding enumeration value based on the input string.
a string representing a Content-Transfer-Encoding value
Gets the string value of the content encoding.
a #GMimeContentEncoding
Decodes a chunk of base64 encoded data.
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been decoded
Base64 encodes the input stream to the output stream. Call this when finished encoding data with g_mime_encoding_base64_encode_step() to flush off the last little bit.
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been encoded
Base64 encodes a chunk of data. Performs an 'encode step', only encodes blocks of 3 characters to the output at a time, saves left-over state in state and save (initialise to 0 on first invocation).
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been encoded
Decodes a block of quoted-printable encoded data. Performs a 'decode step' on a chunk of QP encoded data.
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been decoded
Quoted-printable encodes a block of text. Call this when finished encoding data with g_mime_encoding_quoted_encode_step() to flush off the last little bit.
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been encoded
Quoted-printable encodes a block of text. Performs an 'encode step', saves left-over state in state and save (initialise to -1 on first invocation).
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been encoded
Uudecodes a chunk of data. Performs a 'decode step' on a chunk of uuencoded data. Assumes the "begin mode filename" line has been stripped off.
input buffer
input buffer length
output buffer
holds the number of bits that are stored in save
leftover bits that have not yet been decoded
Uuencodes a chunk of data. Call this when finished encoding data with g_mime_encoding_uuencode_step() to flush off the last little bit.
input buffer
input buffer length
output buffer
temporary buffer of 60 bytes
holds the number of bits that are stored in save
leftover bits that have not yet been encoded
Uuencodes a chunk of data. Performs an 'encode step', only encodes
blocks of 45 characters to the output at a time, saves left-over
state in uubuf,
state
and save
(initialize to 0 on first
invocation).
input buffer
input buffer length
output stream
temporary buffer of 60 bytes
holds the number of bits that are stored in save
leftover bits that have not yet been encoded
Gets the default format options.
Allocates a new string buffer containing str
in UTF-8.
string in locale charset
Allocates a new string buffer containing the first n
bytes of
str
converted to UTF-8.
string in locale charset
number of bytes to convert
Allocates a new string buffer containing str
converted to the
user's locale charset.
string in UTF-8 charset
Allocates a new string buffer containing the first n
bytes of
str
converted to the user's locale charset.
string in UTF-8 charset
number of bytes to convert
Initializes GMime.
Gets the user's locale charset (or iso-8859-1 by default).
Gets the user's locale language code (or %NULL by default).
Gets the default parser options.
Decodes a list of msg-ids as in the References and/or In-Reply-To headers defined in rfc822.
a #GMimeParserOptions or %NULL
string containing a list of msg-ids
Frees internally allocated tables created in g_mime_init().
Determines the best content encoding for the first len
bytes of
text
.
text to encode
Attempts to convert text in an unknown 8bit/multibyte charset into UTF-8 by finding the charset which will convert the most bytes into valid UTF-8 characters as possible. If no exact match can be found, it will choose the best match and convert invalid byte sequences into question-marks (?) in the returned string buffer.
a #GMimeParserOptions or %NULL
input text in unknown 8bit/multibyte character set
Decodes a msg-id as defined by rfc822.
string containing a message-id
Generates a unique Message-Id.
Fully qualified domain name
Decodes an rfc2047 encoded 'phrase' header.
a #GMimeParserOptions or %NULL
header to decode
Decodes an rfc2047 encoded 'text' header.
a #GMimeParserOptions or %NULL
header text to decode
Encodes a 'phrase' header according to the rules in rfc2047.
a #GMimeFormatOptions or %NULL
phrase to encode
the charset to use or %NULL to use the default
Encodes a 'text' header according to the rules in rfc2047.
a #GMimeFormatOptions or %NULL
text to encode
the charset to use or %NULL to use the default
Unfolds a raw header value according to the rules in rfc822.
raw header value
Quotes string
as needed according to the rules in rfc2822.
input string
Folds a structured header according to the rules in rfc822.
a #GMimeParserOptions or %NULL
a #GMimeFormatOptions or %NULL
header field and value string
Determines if text
contains 8bit characters within the first len
bytes.
text to check for 8bit chars
Unquotes and unescapes a string.
input string
Folds an unstructured header according to the rules in rfc822.
a #GMimeParserOptions or %NULL
a #GMimeFormatOptions or %NULL
header field and value string
Performs a 'decode step' on a chunk of yEncoded data of length
inlen
pointed to by inbuf
and writes to outbuf
. Assumes the =ybegin
and =ypart lines have already been stripped off.
To get the crc32 value of the part, use #GMIME_YENCODE_CRC_FINAL
(pcrc)
. If there are more parts, you should reuse crc
without
re-initializing. Once all parts have been decoded, you may get the
combined crc32 value of all the parts using #GMIME_YENCODE_CRC_FINAL
(crc)
.
input buffer
input buffer length
output buffer
ydecode state
part crc state
crc state
Call this function when finished encoding data with g_mime_yencode_step() to flush off the remaining state.
#GMIME_YENCODE_CRC_FINAL (pcrc)
will give you the crc32 of the
encoded "part". If there are more "parts" to encode, you should
re-use crc
when encoding the next "parts" and then use
#GMIME_YENCODE_CRC_FINAL (crc)
to get the combined crc32 value of
all the parts.
input buffer
input buffer length
output buffer
yencode state
part crc state
crc state
Performs an yEncode 'encode step' on a chunk of raw data of length
inlen
pointed to by inbuf
and writes to outbuf
.
state
should be initialized to #GMIME_YENCODE_STATE_INIT before
beginning making the first call to this function. Subsequent calls
should reuse state
.
Along the same lines, pcrc
and crc
should be initialized to
#GMIME_YENCODE_CRC_INIT before using.
input buffer
input buffer length
output buffer
yencode state
part crc state
crc state
GMime's binary age.