evolution-mapi r37 - trunk/src/account-setup-eplugin
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-mapi r37 - trunk/src/account-setup-eplugin
- Date: Fri, 19 Dec 2008 11:07:56 +0000 (UTC)
Author: msuman
Date: Fri Dec 19 11:07:56 2008
New Revision: 37
URL: http://svn.gnome.org/viewvc/evolution-mapi?rev=37&view=rev
Log:
Use en-US as the default language, pass the password to MapiLogonProvider() and use debug mode while creating profile.
Modified:
trunk/src/account-setup-eplugin/ChangeLog
trunk/src/account-setup-eplugin/exchange-mapi-account-setup.c
Modified: trunk/src/account-setup-eplugin/exchange-mapi-account-setup.c
==============================================================================
--- trunk/src/account-setup-eplugin/exchange-mapi-account-setup.c (original)
+++ trunk/src/account-setup-eplugin/exchange-mapi-account-setup.c Fri Dec 19 11:07:56 2008
@@ -49,6 +49,8 @@
#include <exchange-mapi-utils.h>
#define d(x) x
+#define LOGALL() lp_set_cmdline(global_mapi_ctx->lp_ctx, "log level", "10"); global_mapi_ctx->dumpdata = TRUE;
+#define LOGNONE() lp_set_cmdline(global_mapi_ctx->lp_ctx, "log level", "0"); global_mapi_ctx->dumpdata = FALSE;
int e_plugin_lib_enable (EPluginLib *ep, int enable);
@@ -143,6 +145,8 @@
gchar *profname = NULL, *profpath = NULL;
struct mapi_session *session = NULL;
+ LOGALL();
+
d(g_print ("Create profile with %s %s %s\n", username, domain, server));
profpath = g_build_filename (g_get_home_dir(), DEFAULT_PROF_PATH, NULL);
@@ -182,12 +186,12 @@
/* This is only convenient here and should be replaced at some point */
mapi_profile_add_string_attr(profname, "codepage", "0x4e4");
- mapi_profile_add_string_attr(profname, "language", "0x40c");
+ mapi_profile_add_string_attr(profname, "language", "0x409");
mapi_profile_add_string_attr(profname, "method", "0x409");
/* Login now */
d(g_print("Logging into the server... "));
- retval = MapiLogonProvider(&session, profname, NULL, PROVIDER_ID_NSPI);
+ retval = MapiLogonProvider(&session, profname, password, PROVIDER_ID_NSPI);
if (retval != MAPI_E_SUCCESS) {
mapi_errstr("MapiLogonProvider", GetLastError());
g_debug ("Deleting profile %s ", profname);
@@ -227,6 +231,8 @@
g_free (profname);
g_free (profpath);
+ LOGNONE();
+
return result;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]