2004-02-07 Jeffrey Stedfast * README: Updated. * configure.in: Bumped version to 2.1.2 * examples/README: New README explaining the purpose of each of the example sources. 2004-02-06 Jeffrey Stedfast * gmime/gmime-parser.c (parser_construct_message): If we've been told to respect the Content-Length header, then parse the length value and calculate the offset of the beginning of the next message. (g_mime_parser_get_respect_content_length): New function to get whether we've been told to respect the Content-Length header. (g_mime_parser_set_respect_content_length): New function to set this option. (parser_offset): Now takes a private struct pointer rather than the parser object since it didn't really need it. Also makes it usable from check_boundary(). (g_mime_parser_tell): Updated. (check_boundary): Only scan for end-boundaries if we've reached the projected end-of-content offset as calculated using the Content-Length header. 2004-02-06 Jeffrey Stedfast * configure.in: Generate examples/Makefile * gmime/gmime-utils.c (g_mime_utils_generate_message_id): Simplified and updated for g_gethostbyname_r() API changes. * gmime/gmime-error.h: Changed the #define of GMIME_ERROR_QUARK to just be the GQuark variable. Also added GMIME_ERROR_IS_SYSTEM() to decide if an error is a system error (aka errno) or a GMime error. * gmime/gmime.c: Make gmime_error_quark an actual variable and initialise it here. 2004-02-05 Jeffrey Stedfast * gmime/gmime-host-utils.c (g_gethostbyname_r): Replace the herr argument with a GError to make the interface a bit nicer to use. (g_gethostbyaddr_r): Same. * gmime/url-scanner.c: Added single/double quotes to url_braces[] in case the user is quoting the url. (g_url_web_end): Add "-;:" to list of punctuation to strip off the end of urls. Also fixed to handle user@domain's (g_url_addrspec_start): Strip open brace characters from the beginning of the addr. (g_url_web_start): Make sure "www" wasn't part of something not a url (like "Ewww.Gross") by check that pos[-1] is either an open brace or whitespace. (g_url_addrspec_end): Don't allow toplevel domain addr-specs (if we encounter something that looks like it is a toplevel domain addr, it is more likely to be bogus than correct). 2004-02-04 Jeffrey Stedfast * gmime/gmime-stream-buffer.c (g_mime_stream_buffer_gets): Strip off \r too if the stream is in the canonical form. * gmime/gmime.c (g_mime_shutdown): Oops, call g_mime_charset_map_shutdown(), not g_mime_charset_shutdown(). 2004-01-26 Jeffrey Stedfast * gmime/gmime.c (g_mime_shutdown): New public function to shutdown GMime. Fixes a segfault in applications that dynamically load/unload GMime during execution. * gmime/gmime-iconv.c (g_mime_iconv_init): Don't register an atexit handler. (g_mime_iconv_shutdown): Make public. * gmime/gmime-charset.c (g_mime_charset_map_init): Don't set a g_atexit handler for the shutdown routine. (g_mime_charset_map_shutdown): Make public. 2004-01-25 Jeffrey Stedfast * gmime/gmime-param.c: Disable debugging and conditionally disable warnings. * gmime/gmime-multipart.c: Disable debugging. * gmime/gmime-stream.c: Disable debugging. * gmime/internet-address.c: Same. * gmime/gmime-parser.c: Conditionally disable warnings. 2004-01-19 Jeffrey Stedfast * gmime/gmime-host-utils.c (g_gethostbyaddr_r): Fixed some compile problems in the IPv6 implementation. 2003-12-16 Jeffrey Stedfast * gmime/gmime-stream-mmap.c (g_mime_stream_mmap_new): Don't add getpagesize() to the file length. (g_mime_stream_mmap_new_with_bounds): Same. 2003-12-11 Jeffrey Stedfast * gmime/gmime-gpg-context.c (gpg_ctx_parse_status): Don't immediately prompt for a passwd after receiving the NEED_PASSPHRASE status message. Instead, parse the userid that gpg needs a passwd for and store it on our context. Wait for a GET_HIDDEN status message before prompting, this way if the user has their gpg configured to use gpg-agent, the user won't get 2 passwd prompts. 2003-12-06 Jeffrey Stedfast * gmime/gmime-parser.c (parser_step_headers): If scanning for eoln results in finding inend, request a refill and try again (changed from inptr + 1 >= inend). 2003-12-05 Jeffrey Stedfast * gmime/internet-address.c (decode_domain): Make sure domain->len > 0 before checking domain->str[domain->len - 1]. * gmime/gmime-gpg-context.c (gpg_ctx_op_start): Properly set the O_NONBLOCK flag on each of the pipes (ie. we need to get the current flags first and then add the O_NONBLOCK flag rather than just setting the O_NONBLOCK flag by itself).