GMime Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#define BASE64_ENCODE_LEN (x) #define QP_ENCODE_LEN (x) |
#define BASE64_ENCODE_LEN(x) ((guint) ((x) * 5 / 3) + 4) /* conservative would be ((x * 4 / 3) + 4) */ |
x : |
#define QP_ENCODE_LEN(x) ((guint) ((x) * 7 / 2) + 4) /* conservative would be ((x * 3) + 4) */ |
x : |
|
in : | input date string |
saveoffset : | |
Returns : | the time_t representation of the date string specified by
|
|
time : | time_t date representation |
offset : | Timezone offset |
Returns : | a valid string representation of the date. |
|
in : | input header string |
Returns : | an allocated string containing the folded header. |
|
format : | string format |
... : | arguments |
Returns : | an allocated string containing the folded header specified
by |
|
string : | input string |
Returns : | an allocated string containing the escaped and quoted (if needed to be) input string. The decision to quote the string is based on whether or not the input string contains any 'tspecials' as defined by rfc2045. |
void g_mime_utils_unquote_string ( |
Unquotes and unescapes a string.
string : |
|
text : | text to check for 8bit chars |
Returns : | TRUE if the text contains 8bit characters or FALSE otherwise. |
GMimePartEncodingType g_mime_utils_best_encoding (const |
text : | text to encode |
Returns : | a GMimePartEncodingType that is determined to be the best encoding type for the specified block of text. ("best" in this particular case means best compression) |
|
in : | header to decode |
Returns : | the mime encoded header as 8bit text. |
|
in : | header to encode |
Returns : | the header as several encoded atoms. Useful for encoding headers like "Subject". |
|
in : | header to encode |
Returns : | the header phrase as 1 encoded atom. Useful for encoding internet addresses. |
|
in : | input stream |
inlen : | max length of data to decode |
out : | output stream |
state : | holds the number of bits that are stored in save |
save : | leftover bits that have not yet been decoded |
Returns : | the number of bytes decoded (which have been dumped in |
|
in : | input stream |
inlen : | length of the input |
out : | output string |
state : | holds the number of bits that are stored in save |
save : | leftover bits that have not yet been encoded |
Returns : | the number of bytes encoded. 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). |
|
in : | input stream |
inlen : | length of the input |
out : | output string |
state : | holds the number of bits that are stored in save |
save : | leftover bits that have not yet been encoded |
Returns : | the number of bytes encoded. Call this when finished encoding data with base64_encode_step to flush off the last little bit. |
|
in : | input stream |
inlen : | max length of data to decode ( normally strlen(in) ??) |
out : | output stream |
state : | holds the number of bits that are stored in save |
save : | leftover bits that have not yet been decoded |
uulen : | holds the value of the length-char which is used to calculate how many more chars need to be decoded for that 'line' |
Returns : | the number of bytes decoded. Performs a 'uudecode step' on a chunk of uuencoded data. Assumes the "begin <mode> <file name>" line has been stripped off. |
|
in : | input stream |
inlen : | max length of data to decode |
out : | output stream |
savestate : | holds the number of bits that are stored in save |
saved : | leftover bits that have not yet been decoded |
Returns : | the number of bytes decoded. Performs a 'decode step' on a chunk of QP encoded data. |
|
in : | input stream |
inlen : | length of the input |
out : | output string |
state : | holds the number of bits that are stored in save |
save : | leftover bits that have not yet been encoded |
Returns : | the number of bytes encoded. Performs an 'encode step', saves left-over state in state and save (initialise to -1 on first invocation). |
|
in : | input stream |
inlen : | length of the input |
out : | output string |
state : | holds the number of bits that are stored in save |
save : | leftover bits that have not yet been encoded |
Returns : | the number of bytes encoded. Call this when finished encoding data with quoted_encode_step to flush off the last little bit. |