Re: [evolution-patches] Exchange connector - patch for handling diff login name and mbox paths



This looks good to me.

On Mon, 2005-03-14 at 18:27 +0530, Sushma Rai wrote:
Hi,

This patch finds the mailbox name and owa path for a user.
This is needed when a user's login name and mailbox names 
are different.

+		
+		/* find mailbox and owa_path values */	
+		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';
+			mailbox = strrchr (path, '/');
+		}
+		if (mailbox)
+			*mailbox++ = '\0';
+		owa_path = path;
This owa_path is not necessary. You could directly assign it to the exchange_params->owa_path here.

 		valid = TRUE;
 	}

Thanks
-- Sarfraaz

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