X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=lib%2Findexopts.c;h=ca6bf6c962ccddbe37e595e4c1d630ef8b302bd8;hb=d3964e81ac98825a025a6120c488ebd73de2a281;hp=15c31d249620b8c33caa53ed0469e63cd4029262;hpb=de80ede3dfa88d50a3a4d34cedfcd71b8bde165b;p=notmuch diff --git a/lib/indexopts.c b/lib/indexopts.c index 15c31d24..ca6bf6c9 100644 --- a/lib/indexopts.c +++ b/lib/indexopts.c @@ -27,18 +27,18 @@ notmuch_database_get_default_indexopts (notmuch_database_t *db) if (!ret) return ret; - char * try_decrypt; - notmuch_status_t err = notmuch_database_get_config (db, "index.try_decrypt", &try_decrypt); + char * decrypt; + notmuch_status_t err = notmuch_database_get_config (db, "index.decrypt", &decrypt); if (err) return ret; - if (try_decrypt && - ((!(strcasecmp(try_decrypt, "true"))) || - (!(strcasecmp(try_decrypt, "yes"))) || - (!(strcasecmp(try_decrypt, "1"))))) + if (decrypt && + ((!(strcasecmp(decrypt, "true"))) || + (!(strcasecmp(decrypt, "yes"))) || + (!(strcasecmp(decrypt, "1"))))) notmuch_indexopts_set_try_decrypt (ret, true); - free (try_decrypt); + free (decrypt); return ret; }