From 926aecdeb66800d066a43ecdb68ed5fcee9c2a7b Mon Sep 17 00:00:00 2001 From: Thor Harald Johansen Date: Sat, 6 Jun 2020 03:57:59 +0200 Subject: [PATCH] Proper session structure for mail --- include/mail.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/mail.hpp b/include/mail.hpp index 5cfd067..2503184 100644 --- a/include/mail.hpp +++ b/include/mail.hpp @@ -14,7 +14,12 @@ namespace mail { std::vector body; }; - using session_map_t = std::unordered_map; + struct session_t { + bool has_header = 0; + message_t message; + }; + + using session_map_t = std::unordered_map; } #endif \ No newline at end of file