DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
mail_elements.h
1 /*********************************************************************************************************************************************/
2 /* DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. */
3 /* Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, */
4 /* document analysis. Offline processing possible for security and confidentiality */
5 /* */
6 /* Copyright (c) SILVERCODERS Ltd, http://silvercoders.com */
7 /* Project homepage: https://github.com/docwire/docwire */
8 /* */
9 /* SPDX-License-Identifier: GPL-2.0-only OR LicenseRef-DocWire-Commercial */
10 /*********************************************************************************************************************************************/
11 
12 #ifndef DOCWIRE_MAIL_ELEMENTS_H
13 #define DOCWIRE_MAIL_ELEMENTS_H
14 
15 #include <cstddef>
16 #include <cstdint>
17 #include "file_extension.h"
18 #include "core_export.h"
19 #include <optional>
20 #include <string>
21 
22 namespace docwire
23 {
24 namespace mail
25 {
26 
27 struct DOCWIRE_CORE_EXPORT Mail
28 {
29  std::optional<std::string> subject;
30  std::optional<std::uint32_t> date;
31  std::optional<int> level;
32 };
33 
34 struct DOCWIRE_CORE_EXPORT CloseMail {};
35 
36 struct DOCWIRE_CORE_EXPORT MailBody {};
37 struct DOCWIRE_CORE_EXPORT CloseMailBody { };
38 
39 struct DOCWIRE_CORE_EXPORT Attachment
40 {
41  std::optional<std::string> name;
42  std::size_t size;
43  std::optional<file_extension> extension;
44 };
45 
46 struct DOCWIRE_CORE_EXPORT CloseAttachment { };
47 
48 struct DOCWIRE_CORE_EXPORT Folder
49 {
50  std::optional<std::string> name;
51  std::optional<int> level;
52 };
53 
54 struct DOCWIRE_CORE_EXPORT CloseFolder { };
55 
56 } // namespace mail
57 } // namespace docwire
58 
59 #endif // DOCWIRE_MAIL_ELEMENTS_H
The main namespace for the DocWire SDK.
Definition: ai_elements.h:19