#include "registrator_mails.hpp" namespace smtp::checker { void RegistratorMails::Add( errors::types::IErrorMailsPtr const& error ) { mErrors.push_back( error ); } bool RegistratorMails::Check( std::string const& line ) const { for( const auto& error : mErrors ) { if( !error->Check( line ) ) { return false; } } return true; } }