aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/imap-features
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2008-01-18 21:40:06 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2008-01-18 21:40:06 +0800
commita86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7 (patch)
tree9538e5357d58d824b46f842f0ce57716a511994f /plugins/imap-features
parentde7843234354f8aec863a80b3d354818603023a6 (diff)
downloadgsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.tar
gsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.tar.gz
gsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.tar.bz2
gsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.tar.lz
gsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.tar.xz
gsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.tar.zst
gsoc2013-evolution-a86f257fb8c9c569f40cfb02bc8bb2e4d39dd3c7.zip
Such a useful IMAP plugin. But doesn't detect USE_IMAP for GW users. Fixed
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. svn path=/trunk/; revision=34848
Diffstat (limited to 'plugins/imap-features')
-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);