aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2010-02-04 12:29:04 -0800
committerGravatar Carl Worth <cworth@cworth.org>2010-02-04 12:42:09 -0800
commit82e47ec92b41973567f4d89bbd6afdb22fc634bd (patch)
tree3017c745fc154d5d2d6ad64d73c9e7fd87789bfd /notmuch-reply.c
parentaea35aa5c6ccc9a1490e9ef387f37f5547c88605 (diff)
notmuch reply: Use strstr instead of strcasestr for portability.
This change was already recommended in a comment in the original implementation of this patch. If someone really wants to support un-munging in the case of To: and Reply-To: having the same address but different case, then they can provide a portable approach for that.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index 671a9155..885bedb1 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -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;
}