memcpy (MESSAGE_FIELD (task, digest), n, sizeof (n));
- /* Parse urls inside Subject header */
if (MESSAGE_FIELD (task, subject)) {
p = MESSAGE_FIELD (task, subject);
len = strlen (p);
p, len,
seed);
memcpy (MESSAGE_FIELD (task, digest), n, sizeof (n));
- rspamd_url_find_multiple (task->task_pool, p, len,
- RSPAMD_URL_FIND_STRICT, NULL,
- rspamd_url_task_subject_callback, task);
}
if (task->queue_id) {
lua_settop (L, old_top);
}
+ /* Parse urls inside Subject header */
+ if (MESSAGE_FIELD (task, subject)) {
+ rspamd_url_find_multiple (task->task_pool, MESSAGE_FIELD (task, subject),
+ strlen (MESSAGE_FIELD (task, subject)),
+ RSPAMD_URL_FIND_STRICT, NULL,
+ rspamd_url_task_subject_callback,
+ task);
+ }
+
/* Calculate average words length and number of short words */
struct rspamd_mime_text_part *text_part;
gdouble *var;
st = rspamd_task_select_processing_stage (task, stages);
switch (st) {
+ case RSPAMD_TASK_STAGE_CONNFILTERS:
+ all_done = rspamd_symcache_process_symbols (task, task->cfg->cache, st);
+ break;
+
case RSPAMD_TASK_STAGE_READ_MESSAGE:
if (!rspamd_message_parse (task)) {
ret = FALSE;
}
break;
- case RSPAMD_TASK_STAGE_CONNFILTERS:
case RSPAMD_TASK_STAGE_PRE_FILTERS:
case RSPAMD_TASK_STAGE_FILTERS:
all_done = rspamd_symcache_process_symbols (task, task->cfg->cache, st);