rem: bool operator()( const GpgME::Key & key ) const { return ( isOpenPGP( format ) && key.protocol() != GpgME::Context::OpenPGP ) || ( isSMIME( format )   && key.protocol() != GpgME::Context::CMS );
add: void EncryptionFormatPreferenceCounter::operator()( const Kleo::KeyResolver::Item & item ) { if ( item.format & (Kleo::InlineOpenPGPFormat|Kleo::OpenPGPMIMEFormat) && std::find_if( item.keys.begin(), item.keys.end(), ValidTrustedOpenPGPEncryptionKey ) != item.keys.end() ) { CASE(OpenPGPMIME); CASE(InlineOpenPGP);
context:     bool operator()( const GpgME::Key & key ) const {      return	( isOpenPGP( format ) && key.protocol() != GpgME::Context::OpenPGP ) ||	( isSMIME( format )   && key.protocol() != GpgME::Context::CMS );    }