summaryrefslogtreecommitdiff
path: root/src/checker/registrator_mails.cpp
blob: b2352c793876d532bc17328bd971378210eb9112 (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::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;
    }

} // namespace smtp::checker