]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-reply.c
notmuch reply: Use strstr instead of strcasestr for portability.
[notmuch] / notmuch-reply.c
index 671a915589421cf63cac451eaa553202235d6eb9..885bedb14871f79894853f0e3ba47e41ffc5c7cb 100644 (file)
@@ -219,9 +219,8 @@ mailing_list_munged_reply_to (notmuch_message_t *message)
     mailbox = INTERNET_ADDRESS_MAILBOX (address);
     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 (strstr (notmuch_message_get_header (message, "to"), addr) != 0 ||
+       strstr (notmuch_message_get_header (message, "cc"), addr) != 0)
     {
        return 1;
     }