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