aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-23 20:06:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-23 20:06:34 +0100
commit3944ae59e74c31103d3bd10fe4dd025b05d74679 (patch)
tree6556701646c1d1b3d35d5b8766236a1995ef88bf /src/libmime/message.h
parente9c773e6bb0e09b4802f3cb06b93b7a082e464ed (diff)
downloadrspamd-3944ae59e74c31103d3bd10fe4dd025b05d74679.tar.gz
rspamd-3944ae59e74c31103d3bd10fe4dd025b05d74679.zip
[Project] Further changes in unicode operations
* Normalise unicode * Add normality flag for text parts * Store UCS in text parts * Rework unicode conversions and operations
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r--src/libmime/message.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h
index b0a7983b4..baabb762a 100644
--- a/src/libmime/message.h
+++ b/src/libmime/message.h
@@ -73,6 +73,8 @@ struct rspamd_mime_part {
#define RSPAMD_MIME_TEXT_PART_FLAG_HTML (1 << 3)
#define RSPAMD_MIME_TEXT_PART_FLAG_8BIT (1 << 4)
#define RSPAMD_MIME_TEXT_PART_FLAG_8BIT_ENCODED (1 << 5)
+#define RSPAMD_MIME_TEXT_PART_HAS_SUBNORMAL (1 << 6)
+#define RSPAMD_MIME_TEXT_PART_NORMALISED (1 << 7)
#define IS_PART_EMPTY(part) ((part)->flags & RSPAMD_MIME_TEXT_PART_FLAG_EMPTY)
#define IS_PART_UTF(part) ((part)->flags & RSPAMD_MIME_TEXT_PART_FLAG_UTF)
@@ -88,7 +90,7 @@ struct rspamd_mime_text_part {
rspamd_ftok_t parsed; /* decoded from mime encodings */
GByteArray *content; /* utf8 encoded processed content */
- UChar *ucs_raw_content; /* unicode raw content */
+ GArray *ucs_raw_content; /* unicode raw content (of UChar) */
GByteArray *utf_raw_content; /* utf raw content */
GByteArray *stripped_content; /* utf content with no newlines */
GPtrArray *newlines; /**< positions of newlines in text, relative to content*/