summaryrefslogtreecommitdiff
path: root/src/checker/errors/mail/empty.cpp
blob: 1c39e7866cf4466cb80fb07a14dca949d61ae8c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "empty.hpp"
#include "logger/logger_set.hpp"

namespace smtp::checker::errors::settings
{
    bool Empty::Check( std::string const& line ) const
    {
        auto result = !line.empty() && line != " ";
        if(!result)
        {
            logger::LoggerSet::GetInstance()->LogError( GetMethodName(), "Mails are empty" );
        }
        return result;
    }
}