diff options
Diffstat (limited to 'plugins/imap-features/imap-headers.c')
-rw-r--r-- | plugins/imap-features/imap-headers.c | 9 |
1 files changed, 6 insertions, 3 deletions
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); |