evolution-data-server r9063 - in branches/gnome-2-22/servers/exchange: . lib
- From: pchen svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9063 - in branches/gnome-2-22/servers/exchange: . lib
- Date: Sun, 29 Jun 2008 19:53:55 +0000 (UTC)
Author: pchen
Date: Sun Jun 29 19:53:55 2008
New Revision: 9063
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9063&view=rev
Log:
2008-06-03 Milan Crha <mcrha redhat com>
** Part of fix for bug #273627
* lib/e2k-autoconfig.c: (validate):
Use mailbox value from ExchangeParams structure if set,
otherwise
extract mailbox from the home_uri as before.
Modified:
branches/gnome-2-22/servers/exchange/ChangeLog
branches/gnome-2-22/servers/exchange/lib/e2k-autoconfig.c
Modified: branches/gnome-2-22/servers/exchange/lib/e2k-autoconfig.c
==============================================================================
--- branches/gnome-2-22/servers/exchange/lib/e2k-autoconfig.c (original)
+++ branches/gnome-2-22/servers/exchange/lib/e2k-autoconfig.c Sun Jun 29 19:53:55 2008
@@ -1506,15 +1506,21 @@
euri = e2k_uri_new (ac->home_uri);
path = g_strdup (euri->path + 1);
e2k_uri_free (euri);
- mailbox = strrchr (path, '/');
- if (mailbox && !mailbox[1]) {
- *mailbox = '\0';
+
+ /* change a mailbox only if not set by the caller */
+ if (!exchange_params->mailbox || !*exchange_params->mailbox) {
mailbox = strrchr (path, '/');
+ if (mailbox && !mailbox[1]) {
+ *mailbox = '\0';
+ mailbox = strrchr (path, '/');
+ }
+ if (mailbox)
+ *mailbox++ = '\0';
+
+ g_free (exchange_params->mailbox);
+ exchange_params->mailbox = g_strdup (mailbox);
}
- if (mailbox)
- *mailbox++ = '\0';
- exchange_params->mailbox = g_strdup (mailbox);
exchange_params->owa_path = g_strdup_printf ("%s%s", "/", path);
g_free (path);
exchange_params->host = g_strdup (ac->pf_server);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]