gmime r1548 - in trunk: . build build/vs2008 docs docs/reference docs/tutorial examples mono src tests util



Author: fejj
Date: Sat Apr  4 02:04:31 2009
New Revision: 1548
URL: http://svn.gnome.org/viewvc/gmime?rev=1548&view=rev

Log:
2009-04-03  Jeffrey Stedfast  <fejj novell com>

	* 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.


Added:
   trunk/build/
   trunk/build/vs2008/
   trunk/build/vs2008/basic-example.vcproj
   trunk/build/vs2008/config.h.win32
   trunk/build/vs2008/gmime.sln
   trunk/build/vs2008/gmime.vcproj
   trunk/build/vs2008/imap-example.vcproj
   trunk/build/vs2008/test-cat.vcproj
   trunk/build/vs2008/test-headers.vcproj
   trunk/build/vs2008/test-iconv.vcproj
   trunk/build/vs2008/test-mbox.vcproj
   trunk/build/vs2008/test-mime.vcproj
   trunk/build/vs2008/test-streams.vcproj
Removed:
   trunk/.cvsignore
   trunk/config.h.win32
   trunk/docs/.cvsignore
   trunk/docs/reference/.cvsignore
   trunk/docs/tutorial/.cvsignore
   trunk/examples/.cvsignore
   trunk/gmime.sln
   trunk/gmime.vcproj
   trunk/mono/.cvsignore
   trunk/src/.cvsignore
   trunk/tests/.cvsignore
   trunk/util/.cvsignore
Modified:
   trunk/ChangeLog
   trunk/examples/basic-example.c
   trunk/tests/testsuite.c
   trunk/tests/testsuite.h

Added: trunk/build/vs2008/basic-example.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/basic-example.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,197 @@
+ï<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="basic-example"
+	ProjectGUID="{BA7336F6-9CAC-4669-AE7F-A9E998E6A0D0}"
+	RootNamespace="basicexample"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\examples\basic-example.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/config.h.win32
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/config.h.win32	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,193 @@
+/* config.h.  Generated from config.h.in by configure.  */
+/* config.h.in.  Generated from configure.in by autoheader.  */
+
+/* Define if GMime should enable warning output. */
+/* #undef ENABLE_WARNINGS */
+
+/* Define if libc defines an altzone variable */
+/* #undef HAVE_ALTZONE */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+/* #undef HAVE_DLFCN_H */
+
+/* Define to 1 if you have the `fsync' function. */
+/* #undef HAVE_FSYNC */
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `getdomainname' function. */
+/* #undef HAVE_GETDOMAINNAME */
+
+/* Define to 1 if you have the `gethostname' function. */
+#define HAVE_GETHOSTNAME 1
+
+/* Define to 1 if you have the <getopt.h> header with the GNU `getopt_long'
+   function. */
+/* #undef HAVE_GETOPT_H */
+
+/* Define to 1 if you have the `getpagesize' function. */
+/* #undef HAVE_GETPAGESIZE */
+
+/* Define to 1 if you have the `gmtime_r' function. */
+/* #undef HAVE_GMTIME_R */
+
+/* Define to 1 if you have the `gmtime_s' function. */
+#define HAVE_GMTIME_S 1
+
+/* Define if you have the iconv() function and it works. */
+#define HAVE_ICONV 1
+
+/* Define to 1 to use auto-detected iconv-friendly charset names. */
+/* #undef HAVE_ICONV_DETECT_H */
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+/* #undef HAVE_INTTYPES_H */
+
+/* Define to 1 if you have the `localtime' function. */
+#define HAVE_LOCALTIME 1
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+/* #undef HAVE_MMAP */
+
+/* Define to 1 if you have the `msync' function. */
+/* #undef HAVE_MSYNC */
+
+/* Define to 1 if you have the `munmap' function. */
+/* #undef HAVE_MUNMAP */
+
+/* Define to 1 if you have the <netdb.h> header file. */
+/* #undef HAVE_NETDB_H */
+
+/* Define to 1 if you have the `poll' function. */
+/* #undef HAVE_POLL */
+
+/* Define to 1 if you have the <poll.h> header file. */
+/* #undef HAVE_POLL_H */
+
+/* Define to 1 if you have the <regex.h> header file. */
+/* #undef HAVE_REGEX_H */
+
+/* Define to 1 if you have the `select' function. */
+#define HAVE_SELECT 1
+
+/* Define to 1 if you have the <stdint.h> header file. */
+/* #undef HAVE_STDINT_H */
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strftime' function. */
+#define HAVE_STRFTIME 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+/* #undef HAVE_STRINGS_H */
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+/* #undef HAVE_SYS_MMAN_H */
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+/* #undef HAVE_SYS_PARAM_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define if libc defines a timezone variable */
+/* #undef HAVE_TIMEZONE */
+
+/* Define to 1 if you have the <time.h> header file. */
+#define HAVE_TIME_H 1
+
+/* Define if struct tm has a tm_gmtoff member */
+/* #undef HAVE_TM_GMTOFF */
+
+/* Define to 1 if you have the <unistd.h> header file. */
+/* #undef HAVE_UNISTD_H */
+
+/* Define if struct utsname has a domainname member */
+/* #undef HAVE_UTSNAME_DOMAINNAME */
+
+/* Define to 1 if you have the <zlib.h> header file. */
+#define HAVE_ZLIB_H 1
+
+/* Define if libc defines a _timezone variable */
+/* #undef HAVE__TIMEZONE */
+
+/* Define as const if the declaration of iconv() needs const. */
+#define ICONV_CONST 
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+/* #undef LT_OBJDIR */
+
+/* Define with a value if your <sys/param.h> does not define MAXHOSTNAMELEN */
+/* #undef MAXHOSTNAMELEN */
+
+/* Define to 0 if your system does not have the O_LARGEFILE flag */
+/* #undef O_LARGEFILE */
+
+/* Name of package */
+#define PACKAGE "gmime"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT ""
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME ""
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING ""
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME ""
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION ""
+
+/* The size of `off_t', as computed by sizeof. */
+#define SIZEOF_OFF_T 4
+
+/* The size of `size_t', as computed by sizeof. */
+#define SIZEOF_SIZE_T 4
+
+/* The size of `ssize_t', as computed by sizeof. */
+#define SIZEOF_SSIZE_T 4
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Version number of package */
+#define VERSION "2.4.5"
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+   calls it, or to nothing if 'inline' is not supported under any name.  */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to `unsigned long int' if <poll.h> does not define. */
+#define nfds_t unsigned long int
+
+/* Define to `long int' if <sys/types.h> does not define. */
+/* #undef off_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define to `int' if <sys/types.h> does not define. */
+#define ssize_t int

Added: trunk/build/vs2008/gmime.sln
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/gmime.sln	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,92 @@
+ï
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual C++ Express 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmime", "gmime.vcproj", "{F281AAC0-61AB-4E5C-849D-34FDB3687675}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-mime", "test-mime.vcproj", "{73E5564C-D771-4A6C-8051-5E4B332657E0}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-mbox", "test-mbox.vcproj", "{B73E0CCB-865F-425A-B2B0-7CDA7800225C}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-iconv", "test-iconv.vcproj", "{E6414E36-0022-4795-8EF8-001B4BAE8A13}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-streams", "test-streams.vcproj", "{42063A3C-FABA-476E-BB53-F7852DB18FA6}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-headers", "test-headers.vcproj", "{E337362A-067C-4F60-9C13-AAE59523007E}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test-cat", "test-cat.vcproj", "{0304DFB4-9E94-4944-BCAD-72B9C4071911}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "basic-example", "basic-example.vcproj", "{BA7336F6-9CAC-4669-AE7F-A9E998E6A0D0}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "imap-example", "imap-example.vcproj", "{4222517E-7B56-44B7-A7BD-A1E07AF214B8}"
+	ProjectSection(ProjectDependencies) = postProject
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675} = {F281AAC0-61AB-4E5C-849D-34FDB3687675}
+	EndProjectSection
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Win32 = Debug|Win32
+		Release|Win32 = Release|Win32
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675}.Debug|Win32.ActiveCfg = Debug|Win32
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675}.Debug|Win32.Build.0 = Debug|Win32
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675}.Release|Win32.ActiveCfg = Release|Win32
+		{F281AAC0-61AB-4E5C-849D-34FDB3687675}.Release|Win32.Build.0 = Release|Win32
+		{73E5564C-D771-4A6C-8051-5E4B332657E0}.Debug|Win32.ActiveCfg = Debug|Win32
+		{73E5564C-D771-4A6C-8051-5E4B332657E0}.Debug|Win32.Build.0 = Debug|Win32
+		{73E5564C-D771-4A6C-8051-5E4B332657E0}.Release|Win32.ActiveCfg = Release|Win32
+		{73E5564C-D771-4A6C-8051-5E4B332657E0}.Release|Win32.Build.0 = Release|Win32
+		{B73E0CCB-865F-425A-B2B0-7CDA7800225C}.Debug|Win32.ActiveCfg = Debug|Win32
+		{B73E0CCB-865F-425A-B2B0-7CDA7800225C}.Debug|Win32.Build.0 = Debug|Win32
+		{B73E0CCB-865F-425A-B2B0-7CDA7800225C}.Release|Win32.ActiveCfg = Release|Win32
+		{B73E0CCB-865F-425A-B2B0-7CDA7800225C}.Release|Win32.Build.0 = Release|Win32
+		{E6414E36-0022-4795-8EF8-001B4BAE8A13}.Debug|Win32.ActiveCfg = Debug|Win32
+		{E6414E36-0022-4795-8EF8-001B4BAE8A13}.Debug|Win32.Build.0 = Debug|Win32
+		{E6414E36-0022-4795-8EF8-001B4BAE8A13}.Release|Win32.ActiveCfg = Release|Win32
+		{E6414E36-0022-4795-8EF8-001B4BAE8A13}.Release|Win32.Build.0 = Release|Win32
+		{42063A3C-FABA-476E-BB53-F7852DB18FA6}.Debug|Win32.ActiveCfg = Debug|Win32
+		{42063A3C-FABA-476E-BB53-F7852DB18FA6}.Debug|Win32.Build.0 = Debug|Win32
+		{42063A3C-FABA-476E-BB53-F7852DB18FA6}.Release|Win32.ActiveCfg = Release|Win32
+		{42063A3C-FABA-476E-BB53-F7852DB18FA6}.Release|Win32.Build.0 = Release|Win32
+		{E337362A-067C-4F60-9C13-AAE59523007E}.Debug|Win32.ActiveCfg = Debug|Win32
+		{E337362A-067C-4F60-9C13-AAE59523007E}.Debug|Win32.Build.0 = Debug|Win32
+		{E337362A-067C-4F60-9C13-AAE59523007E}.Release|Win32.ActiveCfg = Release|Win32
+		{E337362A-067C-4F60-9C13-AAE59523007E}.Release|Win32.Build.0 = Release|Win32
+		{0304DFB4-9E94-4944-BCAD-72B9C4071911}.Debug|Win32.ActiveCfg = Debug|Win32
+		{0304DFB4-9E94-4944-BCAD-72B9C4071911}.Debug|Win32.Build.0 = Debug|Win32
+		{0304DFB4-9E94-4944-BCAD-72B9C4071911}.Release|Win32.ActiveCfg = Release|Win32
+		{0304DFB4-9E94-4944-BCAD-72B9C4071911}.Release|Win32.Build.0 = Release|Win32
+		{BA7336F6-9CAC-4669-AE7F-A9E998E6A0D0}.Debug|Win32.ActiveCfg = Debug|Win32
+		{BA7336F6-9CAC-4669-AE7F-A9E998E6A0D0}.Debug|Win32.Build.0 = Debug|Win32
+		{BA7336F6-9CAC-4669-AE7F-A9E998E6A0D0}.Release|Win32.ActiveCfg = Release|Win32
+		{BA7336F6-9CAC-4669-AE7F-A9E998E6A0D0}.Release|Win32.Build.0 = Release|Win32
+		{4222517E-7B56-44B7-A7BD-A1E07AF214B8}.Debug|Win32.ActiveCfg = Debug|Win32
+		{4222517E-7B56-44B7-A7BD-A1E07AF214B8}.Debug|Win32.Build.0 = Debug|Win32
+		{4222517E-7B56-44B7-A7BD-A1E07AF214B8}.Release|Win32.ActiveCfg = Release|Win32
+		{4222517E-7B56-44B7-A7BD-A1E07AF214B8}.Release|Win32.Build.0 = Release|Win32
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

Added: trunk/build/vs2008/gmime.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/gmime.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,651 @@
+ï<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="gmime"
+	ProjectGUID="{F281AAC0-61AB-4E5C-849D-34FDB3687675}"
+	RootNamespace="gmime"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="0"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="4"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+				CommandLine="if exist ..\..\config.h goto DONE_CONFIG_H&#x0D;&#x0A;copy config.h.win32 ..\..\config.h&#x0D;&#x0A;:DONE_CONFIG_H&#x0D;&#x0A;"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalOptions="/D &quot;GMIME_MAJOR_VERSION&quot;=&quot;2&quot; /D &quot;GMIME_MINOR_VERSION&quot;=&quot;4&quot; /D &quot;GMIME_MICRO_VERSION&quot;=&quot;5&quot;"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;GMIME_EXPORTS;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLibrarianTool"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+				CommandLine="if exist ..\..\config.h goto DONE_CONFIG_H&#x0D;&#x0A;copy config.h.win32 ..\..\config.h&#x0D;&#x0A;:DONE_CONFIG_H&#x0D;&#x0A;"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				AdditionalOptions="/D &quot;GMIME_MAJOR_VERSION&quot;=&quot;2&quot; /D &quot;GMIME_MINOR_VERSION&quot;=&quot;4&quot; /D &quot;GMIME_MICRO_VERSION&quot;=&quot;5&quot;"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;GMIME_EXPORTS;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="false"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				OutputFile="$(OutDir)\$(ProjectName)-2.4.dll"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="2"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\util\cache.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-charset-map-private.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-charset.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-cipher-context.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-common.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-content-type.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-data-wrapper.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-disposition.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-encodings.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-error.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-basic.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-best.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-charset.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-crlf.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-enriched.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-from.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-gzip.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-html.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-md5.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-strip.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-windows.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-yenc.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-header.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-iconv-utils.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-iconv.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-message-part.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-message-partial.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-message.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-multipart-encrypted.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-multipart-signed.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-multipart.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-object.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-param.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-parse-utils.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-parser.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-part.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-session-simple.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-session.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-buffer.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-cat.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-file.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-filter.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-mem.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-null.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-table-private.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-utils.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\gtrie.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\internet-address.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\list.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\md5-utils.h"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\url-scanner.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\util\cache.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-charset.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-cipher-context.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-common.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-content-type.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-data-wrapper.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-disposition.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-encodings.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-basic.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-best.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-charset.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-crlf.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-enriched.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-from.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-gzip.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-html.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-md5.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-strip.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-windows.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter-yenc.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-filter.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-header.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-iconv-utils.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-iconv.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-message-part.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-message-partial.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-message.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-multipart-encrypted.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-multipart-signed.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-multipart.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-object.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-param.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-parse-utils.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-parser.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-part.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-session-simple.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-session.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-buffer.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-cat.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-file.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-filter.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-mem.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream-null.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-stream.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime-utils.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\gmime.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\gtrie.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\gmime\internet-address.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\list.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\md5-utils.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\util\url-scanner.c"
+				>
+			</File>
+		</Filter>
+		<File
+			RelativePath="..\..\AUTHORS"
+			>
+		</File>
+		<File
+			RelativePath="..\..\ChangeLog"
+			>
+		</File>
+		<File
+			RelativePath=".\config.h.win32"
+			>
+		</File>
+		<File
+			RelativePath="..\..\COPYING"
+			>
+		</File>
+		<File
+			RelativePath="..\..\HACKING"
+			>
+		</File>
+		<File
+			RelativePath="..\..\INSTALL"
+			>
+		</File>
+		<File
+			RelativePath="..\..\LICENSE"
+			>
+		</File>
+		<File
+			RelativePath="..\..\MAINTAINERS"
+			>
+		</File>
+		<File
+			RelativePath="..\..\NEWS"
+			>
+		</File>
+		<File
+			RelativePath="..\..\PORTING"
+			>
+		</File>
+		<File
+			RelativePath="..\..\README"
+			>
+		</File>
+		<File
+			RelativePath="..\..\TODO"
+			>
+		</File>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/imap-example.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/imap-example.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,197 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="imap-example"
+	ProjectGUID="{4222517E-7B56-44B7-A7BD-A1E07AF214B8}"
+	RootNamespace="imapexample"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\examples\imap-example.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/test-cat.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/test-cat.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="test-cat"
+	ProjectGUID="{0304DFB4-9E94-4944-BCAD-72B9C4071911}"
+	RootNamespace="testcat"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\tests\test-cat.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/test-headers.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/test-headers.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="test-headers"
+	ProjectGUID="{E337362A-067C-4F60-9C13-AAE59523007E}"
+	RootNamespace="testheaders"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="2"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				LinkIncremental="1"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\tests\test-headers.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/test-iconv.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/test-iconv.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="test-iconv"
+	ProjectGUID="{E6414E36-0022-4795-8EF8-001B4BAE8A13}"
+	RootNamespace="testiconv"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\tests\test-iconv.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/test-mbox.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/test-mbox.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="test-mbox"
+	ProjectGUID="{B73E0CCB-865F-425A-B2B0-7CDA7800225C}"
+	RootNamespace="testmbox"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\tests\test-mbox.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/test-mime.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/test-mime.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="test-mime"
+	ProjectGUID="{73E5564C-D771-4A6C-8051-5E4B332657E0}"
+	RootNamespace="testmime"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\tests\test-mime.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Added: trunk/build/vs2008/test-streams.vcproj
==============================================================================
--- (empty file)
+++ trunk/build/vs2008/test-streams.vcproj	Sat Apr  4 02:04:31 2009
@@ -0,0 +1,205 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<VisualStudioProject
+	ProjectType="Visual C++"
+	Version="9.00"
+	Name="test-streams"
+	ProjectGUID="{42063A3C-FABA-476E-BB53-F7852DB18FA6}"
+	RootNamespace="teststreams"
+	Keyword="Win32Proj"
+	TargetFrameworkVersion="196613"
+	>
+	<Platforms>
+		<Platform
+			Name="Win32"
+		/>
+	</Platforms>
+	<ToolFiles>
+	</ToolFiles>
+	<Configurations>
+		<Configuration
+			Name="Debug|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				MinimalRebuild="true"
+				BasicRuntimeChecks="3"
+				RuntimeLibrary="3"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="4"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="2"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="1"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="2"
+				EnableIntrinsicFunctions="true"
+				AdditionalIncludeDirectories="&quot;..\..\&quot;; &quot;..\..\util&quot;"
+				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;HAVE_CONFIG_H;G_DISABLE_DEPRECATED;G_LOG_DOMAIN=\&quot;GMime\&quot;"
+				RuntimeLibrary="2"
+				EnableFunctionLevelLinking="true"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				DebugInformationFormat="3"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="ws2_32.lib libiconv.lib glib-2.0.lib gobject-2.0.lib zdll.lib"
+				LinkIncremental="1"
+				GenerateDebugInformation="true"
+				SubSystem="1"
+				OptimizeReferences="2"
+				EnableCOMDATFolding="2"
+				TargetMachine="1"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+			/>
+		</Configuration>
+	</Configurations>
+	<References>
+	</References>
+	<Files>
+		<Filter
+			Name="Source Files"
+			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
+			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.c"
+				>
+			</File>
+			<File
+				RelativePath="..\..\tests\test-streams.c"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Header Files"
+			Filter="h;hpp;hxx;hm;inl;inc;xsd"
+			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
+			>
+			<File
+				RelativePath="..\..\tests\testsuite.h"
+				>
+			</File>
+		</Filter>
+		<Filter
+			Name="Resource Files"
+			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
+			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
+			>
+		</Filter>
+	</Files>
+	<Globals>
+	</Globals>
+</VisualStudioProject>

Modified: trunk/examples/basic-example.c
==============================================================================
--- trunk/examples/basic-example.c	(original)
+++ trunk/examples/basic-example.c	Sat Apr  4 02:04:31 2009
@@ -18,17 +18,19 @@
  */
 
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <fcntl.h>
 #include <errno.h>
 
 #include <glib.h>
 #include <gmime/gmime.h>
 
+#ifndef G_OS_WIN32
 static char *path = "/usr/bin/gpg";
 /*static char *userid = "pgp-mime xtorshun org";*/
 static char *passphrase = "PGP/MIME is rfc2015, now go and read it.";
@@ -103,16 +105,17 @@
 #endif
 	return g_strdup (/*buffer*/passphrase);
 }
+#endif /* ! G_OS_WIN32 */
 
 static GMimeMessage *
-parse_message (int fd)
+parse_message (FILE *fp)
 {
 	GMimeMessage *message;
 	GMimeParser *parser;
 	GMimeStream *stream;
 	
 	/* create a stream to read from the file descriptor */
-	stream = g_mime_stream_fs_new (dup (fd));
+	stream = g_mime_stream_file_new (fp);
 	
 	/* create a new parser object to parse the stream */
 	parser = g_mime_parser_new_with_stream (stream);
@@ -188,6 +191,7 @@
 	printf ("There are %d parts in the message\n", count);
 }
 
+#ifndef G_OS_WIN32
 static void
 verify_foreach_callback (GMimeObject *parent, GMimeObject *part, gpointer user_data)
 {
@@ -242,6 +246,7 @@
 	/* descend the mime tree and verify any signed parts */
 	g_mime_message_foreach (message, verify_foreach_callback, ctx);
 }
+#endif
 
 static void
 write_message_to_screen (GMimeMessage *message)
@@ -249,7 +254,8 @@
 	GMimeStream *stream;
 	
 	/* create a new stream for writing to stdout */
-	stream = g_mime_stream_fs_new (dup (1));
+	stream = g_mime_stream_file_new (stdout);
+	g_mime_stream_file_set_owner ((GMimeStreamFile *) stream, FALSE);
 	
 	/* write the message to the stream */
 	g_mime_object_write_to_stream ((GMimeObject *) message, stream);
@@ -332,17 +338,19 @@
 
 int main (int argc, char **argv)
 {
+#ifndef G_OS_WIN32
 	GMimeSession *session;
 	GMimeCipherContext *ctx;
+#endif
 	GMimeMessage *message;
-	int fd;
+	FILE *fp;
 	
 	if (argc < 2) {
 		printf ("Usage: a.out <message file>\n");
 		return 0;
 	} else {
-		if ((fd = open (argv[1], O_RDONLY)) == -1) {
-			fprintf (stderr, "Cannot open message `%s': %s\n", argv[1], strerror (errno));
+		if ((fp = fopen (argv[1], "rt")) == NULL) {
+			fprintf (stderr, "Cannot open message `%s': %s\n", argv[1], g_strerror (errno));
 			return 0;
 		}
 	}
@@ -350,6 +358,13 @@
 	/* init the gmime library */
 	g_mime_init (0);
 	
+	/* parse the message */
+	message = parse_message (fp);
+	
+	/* count the number of parts in the message */
+	count_parts_in_message (message);
+	
+#ifndef G_OS_WIN32
 	/* create our cipher context (and session - which is used by the context to query the user) */
 	session = g_object_new (example_session_get_type (), NULL);
 	ctx = g_mime_gpg_context_new (session, path);
@@ -358,15 +373,10 @@
 	/* set the always_trust flag so that gpg will be spawned with `gpg --always-trust` */
 	g_mime_gpg_context_set_always_trust ((GMimeGpgContext *) ctx, TRUE);
 	
-	/* parse the message */
-	message = parse_message (fd);
-	close (fd);
-	
-	/* count the number of parts in the message */
-	count_parts_in_message (message);
-	
 	/* verify any signed parts */
 	verify_signed_parts (message, ctx);
+	g_object_unref (ctx);
+#endif
 	
 	/* add and remove parts */
 	add_a_mime_part (message);
@@ -378,8 +388,5 @@
 	/* free the mesage */
 	g_object_unref (message);
 	
-	/* free the gpg context */
-	g_object_unref (ctx);
-	
 	return 0;
 }

Modified: trunk/tests/testsuite.c
==============================================================================
--- trunk/tests/testsuite.c	(original)
+++ trunk/tests/testsuite.c	Sat Apr  4 02:04:31 2009
@@ -326,7 +326,7 @@
 }
 
 void
-_try (ExceptionEnv *env)
+g_try (ExceptionEnv *env)
 {
 	ExceptionEnv *penv = exception_env_get ();
 	
@@ -337,7 +337,7 @@
 }
 
 void
-throw (Exception *ex)
+g_throw (Exception *ex)
 {
 	ExceptionEnv *env;
 	

Modified: trunk/tests/testsuite.h
==============================================================================
--- trunk/tests/testsuite.h	(original)
+++ trunk/tests/testsuite.h	Sat Apr  4 02:04:31 2009
@@ -66,13 +66,13 @@
 	jmp_buf env;
 } ExceptionEnv;
 
-void _try (ExceptionEnv *env);
-
+void g_try (ExceptionEnv *env);
+void g_throw (Exception *ex) G_GNUC_NORETURN;
 
 /* PUBLIC: try/throw/catch/finally - similar to c++, etc */
-#define try { ExceptionEnv __env; _try (&__env); if (setjmp (__env.env) == 0)
+#define try { ExceptionEnv __env; g_try (&__env); if (setjmp (__env.env) == 0)
 #define catch(e) else { Exception *e = __env.ex; if (e != NULL)
-void throw (Exception *ex) G_GNUC_NORETURN;
+#define throw(e) g_throw (e)
 #define finally } if (__env.ex != NULL) exception_free (__env.ex); }
 
 G_END_DECLS



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]