aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/imap-features/ChangeLog6
-rw-r--r--plugins/imap-features/imap-headers.c9
2 files changed, 12 insertions, 3 deletions
diff --git a/plugins/imap-features/ChangeLog b/plugins/imap-features/ChangeLog
index 3eb469782a..fb125322e0 100644
--- a/plugins/imap-features/ChangeLog
+++ b/plugins/imap-features/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2007-12-02 Tobias Mueller <tobiasmue@svn.gnome.org>
* imap-headers.glade:
Make it selectable, fixes bug 401523, patch by
diff --git a/plugins/imap-features/imap-headers.c b/plugins/imap-features/imap-headers.c
index 4b5c28912f..4f6fbf77d8 100644
--- a/plugins/imap-features/imap-headers.c
+++ b/plugins/imap-features/imap-headers.c
@@ -78,11 +78,13 @@ imap_headers_commit (EPlugin *efp, EConfigHookItemFactoryData *data)
{
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 @@ org_gnome_imap_headers (EPlugin *epl, EConfigHookItemFactoryData *data)
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);