2009-04-09 Jeffrey Stedfast * README: Bumped version * configure.in: Bumped version to 2.4.6 2009-04-05 Jeffrey Stedfast * gmime/gmime-encodings.c (g_mime_encoding_uudecode_step): Fixed a bug wrt updating uulen when the data isn't an exact multiple of 3. * src/uuencode.c (uuencode): Don't bother dup()ing the stdout fd, just use set_owner(FALSE) so that it doesn't close when we destroy the stream instead. * gmime/gmime-stream-file.c (stream_read, stream_write): Don't depend on simple arithmetic to update our stream->position on Windows since it may do line-ending translation behind our backs. Call ftell() to get our real position after reading or writing. * gmime/gmime-stream-fs.c (stream_read, stream_write): Same idea. * gmime/gmime-utils.c (mktime_utc): Fixed the Windows code-path. (charset_convert): In the Windows case, fake the E2BIG error condition if outleft <= inleft on any error as errno doesn't seem to get properly set in this case. * tests/test-headers.c: Removed unused headers to fix the build on Windows. 2009-04-04 Jeffrey Stedfast * gmime/gmime-stream-fs.c: Ported to Windows by #including io.h * examples/basic-example.c: Reverted to the old GMimeStreamFs logic and #included io.h for G_OS_WIN32 systems. * examples/imap-example.c: Ported to Windows by #including io.h and using g_ascii_strcasecmp(). 2009-04-03 Jeffrey Stedfast * build/vs2008: New directory for Visual Studio 2008 Solution & Project files. * gmime.vcproj: Moved to build/vs2008 * config.h.win32: Same. * gmime.sln: Same. * examples/basic-example.c: Fixed to build under Visual Studio by using GMimeStreamFile instead of GMimeStreamFs and by #ifdef'ing out the GnuPG code. * tests/testsuit.[c,h]: Fixed to compile under Visual Studio which basically means we can't use _try() as a function. Renamed to g_try(). Also renamed throw() to g_throw() for consistency. 2009-04-02 Jeffrey Stedfast * tests/testsuite.c: Modified to compile without the need for pthread.h * gmime.vcproj: Added logic to the PreBuild step to copy config.h.win32 to config.h * config.h.win32: Added. 2009-04-01 Jeffrey Stedfast * gmime/gmime-utils.c: #include for getpid() and ws2tcpip.h for getaddrinfo() on Windows platforms. (mktime_utc): Use _get_timezone() when building on Windows. (g_mime_utils_header_format_date): Windows has gmtime_s() instead of gmtime_r(), so use that on Windows. * gmime/gmime-parser.c: If glib is >= 2.14, use GRegex instead of glibc regex. 2009-04-01 Jeffrey Stedfast * gmime/gmime-utils.c: Need to #include for getpid(). * gmime/gmime-stream-fs.c: Need to #include here. * gmime/gmime-multipart-signed.c: Got rid of an unused variable. * gmime/gmime-message.c: Removed unused variables. * gmime/gmime-content-type.c: Don't need to #include "gmime-table-private.h" here as we don't actually use it. * util/gtrie.c: Disable g_warning()'s when compiled w/o --enable-warnings and also fixed some compile warnings. 2009-03-31 Jeffrey Stedfast * gmime.sln: New Microsoft Visual Studio 2008 Solution file for GMime. * gmime.vcproj: New Microsoft Visual C++ Project file for GMime. 2009-03-31 Jeffrey Stedfast * gmime/gmime-utils.c: Removed unneeded #include * configure.in: Check for unistd.h * gmime/gmime-multipart.c (read_random_pool): Implement using rand() in the case that unistd.h is not available. * gmime/gmime-parser.c (parser_scan_content): Fixed 'crlf' argument to be a guint to make it easier to avoid compile warnings about comparison between signed/unsigned ints in the callers. * gmime/internet-address.c (internet_address_group_add_member): Fixed g_return macros to return a value. (internet_address_mailbox_get_addr): Same. 2009-03-30 Jeffrey Stedfast * configure.in: Check for regex.h * gmime/gmime-parser.c: #ifdef out the regex functionality if the system does not have regex.h * gmime/gmime-stream-fs.h: Don't #include here. * gmime/gmime-stream.h: Removed #include as it isn't needed there. * gmime/gmime-part.c: Removed unused includes. * gmime/gmime-utils.c: Only #include if we have utsname.domainname. Helps build process on Windows.