From a2b10aedf060838482a3e4114db6ee25fc822ede Mon Sep 17 00:00:00 2001 From: Jenya Sovetkin Date: Thu, 3 Aug 2017 10:17:30 +0200 Subject: [PATCH] nm_description_to_path: fix a mailbox type In nm_description_to_path a mailbox type is supposed to be MUTT_NOTMUCH, since the function queries the path of a *notmuch* mailbox using a description string. Fixes #683. --- mutt_notmuch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt_notmuch.c b/mutt_notmuch.c index 433ca60f8..fca5bac8b 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -2164,7 +2164,7 @@ int nm_description_to_path(const char *desc, char *buf, size_t bufsz) for (struct Buffy *b = Incoming; b; b = b->next) { - if ((b->magic != MUTT_NOTMUCH) && b->desc && (strcmp(desc, b->desc) == 0)) + if ((b->magic == MUTT_NOTMUCH) && b->desc && (strcmp(desc, b->desc) == 0)) { strncpy(buf, b->path, bufsz); buf[bufsz - 1] = '\0'; -- 2.40.0