From a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 18 Jan 2008 13:40:06 +0000 Subject: Such a useful IMAP plugin. But doesn't detect USE_IMAP for GW users. Fixed 2008-01-18 Srinivasa Ragavan * 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. svn path=/trunk/; revision=34848 --- plugins/imap-features/ChangeLog | 6 ++++++ plugins/imap-features/imap-headers.c | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'plugins/imap-features') 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 + + * 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 * 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); -- cgit v1.2.3