aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/subscribe-dialog.c28
2 files changed, 31 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0c2b5591d1..4803929966 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2000-10-11 Chris Toshok <toshok@helixcode.com>
+
+ * subscribe-dialog.c (folder_etree_value_at): special case for
+ folders with NULL urls (which aren't selected/subscribeable).
+ (unsubscribe_folder_info): can't (un)subscribe from folders with
+ non-NULL urls.
+ (subscribe_folder_info): same.
+
2000-10-12 Christopher James Lahey <clahey@helixcode.com>
* message-list.c: Replace To with From except in Drafts, Outbox,
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index fc8b6b7282..d486df97df 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -144,8 +144,13 @@ static void
subscribe_folder_info (SubscribeDialog *sc, CamelFolderInfo *info)
{
char *path;
- CamelException *ex = camel_exception_new ();
+ CamelException *ex;
+ /* folders without urls cannot be subscribed to */
+ if (info->url == NULL)
+ return;
+
+ ex = camel_exception_new ();
path = g_strdup_printf ("/%s", info->full_name);
camel_store_subscribe_folder (sc->store, path, ex);
@@ -166,8 +171,13 @@ static void
unsubscribe_folder_info (SubscribeDialog *sc, CamelFolderInfo *info)
{
char *path;
- CamelException *ex = camel_exception_new ();
+ CamelException *ex;
+
+ /* folders without urls cannot be subscribed to */
+ if (info->url == NULL)
+ return;
+ ex = camel_exception_new ();
path = g_strdup_printf ("/%s", info->full_name);
camel_store_unsubscribe_folder (sc->store, path, ex);
@@ -381,10 +391,18 @@ folder_etree_value_at (ETreeModel *etree, ETreePath *path, int col, void *model_
SubscribeDialog *dialog = SUBSCRIBE_DIALOG (model_data);
CamelFolderInfo *info = e_tree_model_node_get_data (etree, path);
- if (col == FOLDER_COL_NAME)
+ if (col == FOLDER_COL_NAME) {
return info->name;
- else /* FOLDER_COL_SUBSCRIBED */
- return GINT_TO_POINTER(folder_info_subscribed(dialog, info));
+ }
+ else /* FOLDER_COL_SUBSCRIBED */ {
+ /* folders without urls cannot be subscribed to */
+ if (info->url == NULL)
+ return 0; /* empty */
+ else if (!folder_info_subscribed(dialog, info))
+ return 0; /* XXX unchecked */
+ else
+ return 1; /* checked */
+ }
}
static void
4/cgit/freebsd-ports-gnome/commit/math/wxMaxima?h=dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8&id=0d308966c11339773e9f09cdd69a8b5876b4f04e'>The FreeBSD x11@ and graphics team proudly presentszeising2014-04-171-1/+1 * Fix properties on pkg-plistbapt2014-01-221-1/+0 * Update lang/sbcl to 1.1.12 [1] and math/maxima to 5.31.1; adjustbf2013-10-031-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - Update to 13.04.2nivit2013-06-174-5/+7 * update lang/sbcl to 1.1.8, and adjust dependent portsbf2013-06-061-1/+1 * update lang/sbcl to 1.1.7, and adjust dependent portsbf2013-05-061-1/+1 * - Convert USE_GETTEXT to USES (part 3)ak2013-04-251-1/+1 * update lang/sbcl to 1.1.5+bugfixes, and adjust dependent portsbf2013-03-031-1/+1 * update lang/sbcl to 1.1.4 and adjust dependent portsbf2013-02-031-1/+1 * update lang/sbcl to 1.1.3 and adjust dependent portsbf2013-01-051-6/+2 * update sbcl to 1.1.2 and maxima to 5.29.1; adjust dependent portsbf2012-12-161-1/+1 * update lang/sbcl to 1.0.58 and switch to the new options format;bf2012-09-131-1/+1 * - Update to 12.04.0nivit2012-07-235-9/+30 * - update png to 1.5.10dinoex2012-06-011-1/+1 * update lang/sbcl to 1.0.57, and adjust dependent portsbf2012-05-231-1/+1 * update math/maxima to 5.27.0, and adjust a dependent portbf2012-04-231-1/+1 * update lang/sbcl to 1.0.55, and adjust dependent portsbf2012-01-241-1/+1 * - Update to 11.08.0nivit2012-01-243-4/+6 * - Update to 11.04.0nivit2011-04-222-3/+3 * - Update to 0.8.7nivit2011-02-283-4/+7 * - Update to 0.8.6nivit2010-09-112-5/+5 * Bounce PORTREVISION for gettext-related ports. Have fun, ya'll.ade2010-05-311-1/+1 * - Update to 0.8.5nivit2010-05-063-5/+7 * - update to 1.4.1dinoex2010-03-281-1/+1 * - update to jpeg-8dinoex2010-02-051-1/+1 * - Add DESKTOP_ENTRIES (patch provided by makc@ via email)nivit2010-02-03