aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-13 19:22:09 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-05-13 19:22:09 +0400
commit4c4cdd54fbc5afde43e8ff18090c10dd60e06e0a (patch)
treed28e92cbac21f6dd99ee154b13cde57829d12e6f /src/util.h
parent04d82cf8b4d82aa979138d97fa4293534d04812e (diff)
downloadrspamd-4c4cdd54fbc5afde43e8ff18090c10dd60e06e0a.tar.gz
rspamd-4c4cdd54fbc5afde43e8ff18090c10dd60e06e0a.zip
* Strip email addresses from braces
Ignore empty domains in settings
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 8f910e404..1c29ba91d 100644
--- a/src/util.h
+++ b/src/util.h
@@ -6,6 +6,7 @@
#include "radix.h"
#include "statfile.h"
#include "printf.h"
+#include "fstring.h"
struct config_file;
struct rspamd_main;
@@ -144,6 +145,11 @@ const gchar * process_to_str (enum process_type type);
enum process_type str_to_process (const gchar *str);
/*
+ * Strip <> from email address
+ */
+gchar * escape_braces_addr_fstr (memory_pool_t *pool, f_str_t *in);
+
+/*
* Convert milliseconds to timeval fields
*/
#define msec_to_tv(msec, tv) do { (tv)->tv_sec = (msec) / 1000; (tv)->tv_usec = ((msec) - (tv)->tv_sec * 1000) * 1000; } while(0)