aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-23 15:28:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-23 15:28:40 +0100
commit428ed3475815065da84711eba30da0b33c05c313 (patch)
tree4627f1d8babffcc1fee6449e4c456dff52ea4fd7 /src/libserver/task.h
parentaed9a8ed461cde250a87a5daf2ff49004484b72c (diff)
downloadrspamd-428ed3475815065da84711eba30da0b33c05c313.tar.gz
rspamd-428ed3475815065da84711eba30da0b33c05c313.zip
[Feature] Improve getting SMTP data from lua_task
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r--src/libserver/task.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h
index 40ece993f..1f4e8eeea 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -111,6 +111,9 @@ enum rspamd_task_stage {
#define RSPAMD_TASK_IS_CLASSIFIED(task) (((task)->processed_stages & RSPAMD_TASK_STAGE_CLASSIFIERS))
#define RSPAMD_TASK_IS_EMPTY(task) (((task)->flags & RSPAMD_TASK_FLAG_EMPTY))
+struct rspamd_email_address;
+
+
/**
* Worker task structure
*/
@@ -148,10 +151,17 @@ struct rspamd_task {
GHashTable *results; /**< hash table of metric_result indexed by
* metric's name */
GPtrArray *tokens; /**< statistics tokens */
- InternetAddressList *rcpt_mime; /**< list of all recipients */
- InternetAddressList *rcpt_envelope; /**< list of all recipients */
+#if 0
+ GPtrArray *rcpt_mime; /**< list of all recipients (rspamd_email_address) */
+ GPtrArray *rcpt_envelope; /**< list of all recipients (rspamd_email_address) */
+ struct rspamd_email_address *from_mime;
+ struct rspamd_email_address *from_envelope;
+#else
+ InternetAddressList *rcpt_mime;
+ InternetAddressList *rcpt_envelope;
InternetAddressList *from_mime;
InternetAddressList *from_envelope;
+#endif
GList *messages; /**< list of messages that would be reported */
struct rspamd_re_runtime *re_rt; /**< regexp runtime */