aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-28 13:25:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-03-28 13:25:34 +0100
commita709da98c462abc9f6b08e4288525ad92698685f (patch)
tree520f84f168210f31cb9c9585db1d590cfb74882e /src/libutil/str_util.h
parent8fb798b5091a66c39aeef381ebb5afd1b345b690 (diff)
downloadrspamd-a709da98c462abc9f6b08e4288525ad92698685f.tar.gz
rspamd-a709da98c462abc9f6b08e4288525ad92698685f.zip
[Feature] Allow to fold headers on stop characters
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 68ec5f0bd..5f0695c2a 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -242,12 +242,16 @@ gint rspamd_strings_levenshtein_distance (const gchar *s1, gsize s1len,
* Fold header using rfc822 rules, return new GString from the previous one
* @param name name of header (used just for folding)
* @param value value of header
+ * @param fold_max
+ * @param how
+ * @param fold_on_chars
* @return new GString with the folded value
*/
GString *rspamd_header_value_fold (const gchar *name,
const gchar *value,
guint fold_max,
- enum rspamd_newlines_type how);
+ enum rspamd_newlines_type how,
+ const gchar *fold_on_chars);
/**
* Search for a substring `srch` in the text `in` using Apostolico-Crochemore algorithm