evolution r34848 - trunk/plugins/imap-features



Author: sragavan
Date: Fri Jan 18 13:40:06 2008
New Revision: 34848
URL: http://svn.gnome.org/viewvc/evolution?rev=34848&view=rev

Log:
2008-01-18  Srinivasa Ragavan  <sragavan novell com>

	* imap-headers.c: (imap_headers_commit), (org_gnome_imap_headers):
	Such a useful IMAP plugin. But doesn't detect USE_IMAP for GW users.
	Fixed it.


Modified:
   trunk/plugins/imap-features/ChangeLog
   trunk/plugins/imap-features/imap-headers.c

Modified: trunk/plugins/imap-features/imap-headers.c
==============================================================================
--- trunk/plugins/imap-features/imap-headers.c	(original)
+++ trunk/plugins/imap-features/imap-headers.c	Fri Jan 18 13:40:06 2008
@@ -78,11 +78,13 @@
 {
 	EMConfigTargetAccount *target_account;
 	EAccount *account;
+	gboolean use_imap = g_getenv ("USE_IMAP") != NULL;
 
 	target_account = (EMConfigTargetAccount *)data->config->target;
 	account = target_account->account;
 
-	if (g_str_has_prefix (account->source->url, "imap://")) {
+	if (g_str_has_prefix (account->source->url, "imap://") ||
+			(use_imap && g_str_has_prefix (account->source->url, "groupwise://"))) {
 		EAccount *temp = NULL;
 		EAccountList *accounts = mail_config_get_accounts ();
 		CamelURL *url = NULL;
@@ -259,13 +261,14 @@
 	GtkCellRenderer *renderer;
 	GtkTreeViewColumn *column;
 	GtkTreeIter first, iter;
-
+	gboolean use_imap = g_getenv ("USE_IMAP") != NULL;
+	
 	ui = g_new0 (EPImapFeaturesData, 1);
 
 	target_account = (EMConfigTargetAccount *)data->config->target;
 	account = target_account->account;
 
-	if(!g_str_has_prefix (account->source->url, "imap://"))
+	if(!g_str_has_prefix (account->source->url, "imap://") && !(use_imap && g_str_has_prefix (account->source->url, "groupwise://")))
 		return NULL;
 
 	gladefile = g_build_filename (EVOLUTION_GLADEDIR, "imap-headers.glade", NULL);



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