summaryrefslogtreecommitdiff
path: root/src/checker/registrator_mails.cpp
blob: 7e844c074450b90a1631a46259218bac253117de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "registrator_mails.hpp"

namespace smtp::checker
{
    void RegistratorMails::Add(errors::types::IErrorPtr 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;
    }

} // namespace smtp::checker