]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
notmuch reply: Fix the support for reply-to un-munging.
[notmuch] / notmuch-reply.c
index 31679a57225e1f2212797f05575c4aeef307a625..671a915589421cf63cac451eaa553202235d6eb9 100644 (file)
@@ -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 */
     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;
     }
     {
        return 1;
     }