summaryrefslogtreecommitdiff
path: root/src/message/builder/cc.hpp
blob: dbca4b72660b6a58f14201aba8b95a93882984c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "types/idecorator.hpp"
#include "types/imessage_builder.hpp"
#include "managment/general.hpp"

namespace smtp::message::builder
{
    class Cc : public types::IDecorator<types::IMessageBuilder>
    {
    public:
        explicit Cc( manage::MailsSet const& mail_to );
        ~Cc() override = default;

        std::string Get() const override;
    private:
        bool IsFirstElement( std::string const& cc ) const;
        manage::MailsSet const& mMailTo;
    };
}