// Copyright (c) 2014 Martin Knafve / hMailServer.com. // http://www.hmailserver.com #pragma once #include "../Common/TCPIP/CipherInfo.h" namespace HM { class CipherInfo; class MimeHeader; class SMTPMessageHeaderCreator { public: SMTPMessageHeaderCreator(const String &username, const AnsiString &remote_ip_address, bool is_authenticated, String helo_host, std::shared_ptr original_headers); AnsiString Create(); void SetCipherInfo(const CipherInfo &cipher_info); private: String GenerateReceivedHeader_(const String &overriden_received_ip); String username_; AnsiString remote_ip_address_; AnsiString helo_host_; std::shared_ptr original_headers_; CipherInfo cipher_info_; bool is_tls_; bool is_authenticated_; }; }