evolution-scalix r87 - in trunk: camel po
- From: psuwalski svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-scalix r87 - in trunk: camel po
- Date: Mon, 9 Jun 2008 23:33:36 +0000 (UTC)
Author: psuwalski
Date: Mon Jun 9 23:33:36 2008
New Revision: 87
URL: http://svn.gnome.org/viewvc/evolution-scalix?rev=87&view=rev
Log:
Adding patch by Christoph Lukas to add option to check all mail folders
for new mail. Scalix Bugzilla Bug #14280.
Modified:
trunk/camel/camel-scalix-provider.c
trunk/camel/camel-scalix-store.c
trunk/po/de.po
Modified: trunk/camel/camel-scalix-provider.c
==============================================================================
--- trunk/camel/camel-scalix-provider.c (original)
+++ trunk/camel/camel-scalix-provider.c Mon Jun 9 23:33:36 2008
@@ -33,6 +33,7 @@
CamelProviderConfEntry scalix_conf_entries[] = {
{ CAMEL_PROVIDER_CONF_SECTION_START, "mailcheck", NULL, N_("Checking for new mail"), "1" },
+ { CAMEL_PROVIDER_CONF_CHECKBOX, "check_all", NULL, N_("C_heck for new messages in all folders"), "1" },
{ CAMEL_PROVIDER_CONF_SECTION_END },
{ CAMEL_PROVIDER_CONF_SECTION_START, "general", NULL, N_("Options") },
Modified: trunk/camel/camel-scalix-store.c
==============================================================================
--- trunk/camel/camel-scalix-store.c (original)
+++ trunk/camel/camel-scalix-store.c Mon Jun 9 23:33:36 2008
@@ -87,6 +87,7 @@
static void scalix_unsubscribe_folder (CamelStore *store, const char *folder_name, CamelException *ex);
static void scalix_noop (CamelStore *store, CamelException *ex);
+static gboolean scalix_can_refresh_folder (CamelStore *store, CamelFolderInfo *info, CamelException *ex);
static CamelFolderInfo *scalix_create_special_folder (CamelStore *store, const char *parent_name, const char *folder_name, guint32 type, CamelException *ex);
@@ -163,6 +164,7 @@
store_class->create_folder = scalix_create_folder;
store_class->delete_folder = scalix_delete_folder;
store_class->rename_folder = scalix_rename_folder;
+ store_class->can_refresh_folder = scalix_can_refresh_folder;
store_class->get_folder_info = scalix_get_folder_info;
store_class->subscribe_folder = scalix_subscribe_folder;
store_class->unsubscribe_folder = scalix_unsubscribe_folder;
@@ -2300,4 +2302,22 @@
#endif
}
+static gboolean
+scalix_can_refresh_folder (CamelStore *store, CamelFolderInfo *info, CamelException *ex)
+{
+ gboolean res;
+
+ res = CAMEL_STORE_CLASS(parent_class)->can_refresh_folder (store, info, ex) ||
+ (camel_url_get_param (((CamelService *)store)->url, "check_all") != NULL);
+
+ /*if (!res && !camel_exception_is_set (ex)) {
+ CamelFolder *folder;
+
+ folder = camel_store_get_folder (store, info->full_name, 0, ex);
+ if (folder && CAMEL_IS_IMAP_FOLDER (folder))
+ res = CAMEL_IMAP_FOLDER (folder)->check_folder;
+ }*/
+
+ return res;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]