From: Carl Worth Date: Thu, 4 Feb 2010 20:27:42 +0000 (-0800) Subject: notmuch reply: Fix the support for reply-to un-munging. X-Git-Tag: 0.1~121 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=aea35aa5c6ccc9a1490e9ef387f37f5547c88605 notmuch reply: Fix the support for reply-to un-munging. The condition was using a reversed sense for the test of the return value of strcasestr, (perhaps confusing it with the usage of strcmp?). --- diff --git a/notmuch-reply.c b/notmuch-reply.c index 31679a57..671a9155 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -220,8 +220,8 @@ mailing_list_munged_reply_to (notmuch_message_t *message) addr = internet_address_mailbox_get_addr (mailbox); /* Note that strcasestr() is a GNU extension, strstr() might be sufficient */ - if (strcasestr (notmuch_message_get_header (message, "to"), addr) == 0 || - strcasestr (notmuch_message_get_header (message, "cc"), addr) == 0) + if (strcasestr (notmuch_message_get_header (message, "to"), addr) != 0 || + strcasestr (notmuch_message_get_header (message, "cc"), addr) != 0) { return 1; }