You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
496 B
26 lines
496 B
#ifndef _MAIL_
|
|
#define _MAIL_
|
|
|
|
#include <protocol/protocol.hpp>
|
|
|
|
#include <functional>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <unordered_map>
|
|
|
|
namespace mail {
|
|
struct message_t {
|
|
std::vector<std::string> header;
|
|
std::vector<std::string> body;
|
|
};
|
|
|
|
struct session_t {
|
|
bool has_header = 0;
|
|
protocol::token::string_t token;
|
|
message_t message;
|
|
};
|
|
|
|
using session_map_t = std::unordered_map<protocol::session_key_t, session_t>;
|
|
}
|
|
|
|
#endif |