X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-config.c;h=85fc7745bb81bb5b5d6b1c41c0bd7fb99ac49e91;hp=61fda3ea4bafd49ef14d075c2cef70c8d5f2a20c;hb=746fef0aeafe1f29720140ab8778cdee22d519cb;hpb=e77b031a86ea5cbb9488592749bdc694d54fac81 diff --git a/notmuch-config.c b/notmuch-config.c index 61fda3ea..85fc7745 100644 --- a/notmuch-config.c +++ b/notmuch-config.c @@ -377,7 +377,8 @@ notmuch_config_open (void *ctx, if (notmuch_config_get_search_exclude_tags (config, &tmp) == NULL) { if (is_new) { - /* We do not set default search_exclude_tags for 0.12 */ + const char *tags[] = { "deleted", "spam" }; + notmuch_config_set_search_exclude_tags (config, tags, 2); } else { notmuch_config_set_search_exclude_tags (config, NULL, 0); } @@ -750,7 +751,7 @@ notmuch_config_command_get (void *ctx, char *item) for (i = 0; i < length; i++) printf ("%s\n", value[i]); - free (value); + g_strfreev (value); } notmuch_config_close (config);