diff options
author | claiff <claiff@mail.ru> | 2022-09-21 15:50:34 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-21 15:50:34 +0300 |
commit | 641c95dcf8c6585caaa6e79d4bec9b53fd666369 (patch) | |
tree | 3c7e38f17738c181437f482d05c66dde94f7c28a /src/checker/registrator_mails.cpp | |
parent | 629929ebbe386277c25740bc0f4971aac38444d0 (diff) | |
parent | 6cfc7076808138be2ad5a2b05edd635b5948bf31 (diff) | |
download | obmc-sila-smtp-641c95dcf8c6585caaa6e79d4bec9b53fd666369.tar.xz |
Merge branch 'feature/checking'
Diffstat (limited to 'src/checker/registrator_mails.cpp')
-rw-r--r-- | src/checker/registrator_mails.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/checker/registrator_mails.cpp b/src/checker/registrator_mails.cpp new file mode 100644 index 0000000..7e844c0 --- /dev/null +++ b/src/checker/registrator_mails.cpp @@ -0,0 +1,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 |