Fix rule "is not in addressbook" if the given header is missing.

BUGS: 132348

svn path=/branches/KDE/3.5/kdepim/; revision=575078
wilder-work
Andreas Gungl 20 years ago
parent 5bd64e4e97
commit 74c7a4c29b
  1. 2
      kmsearchpattern.cpp

@ -371,7 +371,7 @@ bool KMSearchRuleString::matches( const KMMessage * msg ) const
// I think only the "from"-field makes sense.
msgContents = msg->headerField( field() );
if ( msgContents.isEmpty() )
return false;
return ( function() == FuncIsInAddressbook ) ? false : true;
}
// these two functions need the kmmessage therefore they don't call matchesInternal

Loading…
Cancel
Save