aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/message.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-16 15:11:41 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-16 15:11:41 +0100
commit253bad00ac438c3683f971b94c9a11bd76e06594 (patch)
tree555e3fb80d8104169ac68165ead57b6f9a453c29 /src/libmime/message.h
parent1a5e9eb0d746468340e29f291ea5488ff0946c97 (diff)
downloadrspamd-253bad00ac438c3683f971b94c9a11bd76e06594.tar.gz
rspamd-253bad00ac438c3683f971b94c9a11bd76e06594.zip
[Feature] Use one pass to remove newlines and store their positions
Diffstat (limited to 'src/libmime/message.h')
-rw-r--r--src/libmime/message.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libmime/message.h b/src/libmime/message.h
index 619154c6b..8017514f3 100644
--- a/src/libmime/message.h
+++ b/src/libmime/message.h
@@ -46,6 +46,7 @@ struct mime_text_part {
GByteArray *orig;
GByteArray *content;
GByteArray *stripped_content; /**< no newlines or html tags */
+ GPtrArray *newlines; /**< positions of newlines in text */
struct html_content *html;
GList *urls_offset; /**< list of offsets of urls */
GMimeObject *parent;