mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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.
This commit is contained in:
parent
aea35aa5c6
commit
82e47ec92b
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue