The way to do this is:

if (!IsNameInIgnoreList(header->sender) 
{
}

Note the "!" for "not"

Also indent the block inside the braces.