summaryrefslogtreecommitdiff
path: root/src/checker/errors/mail/empty.cpp
blob: 8a1591e62ca37517e5c3de19e33673c442b41a5a (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::mail
{
    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;
    }
}