@@ -35,7 +35,7 @@ rspamd_mime_header_check_special (struct rspamd_task *task, | |||
recv = rspamd_mempool_alloc0 (task->task_pool, | |||
sizeof (struct received_header)); | |||
recv->hdr = rh; | |||
rspamd_smtp_recieved_parse (task, rh->decoded, | |||
rspamd_smtp_received_parse (task, rh->decoded, | |||
strlen (rh->decoded), recv); | |||
/* Set flags */ | |||
if (recv->type == RSPAMD_RECEIVED_ESMTPA || |
@@ -22,7 +22,7 @@ | |||
#include "task.h" | |||
#include "message.h" | |||
int rspamd_smtp_recieved_parse (struct rspamd_task *task, | |||
int rspamd_smtp_received_parse (struct rspamd_task *task, | |||
const char *data, size_t len, struct received_header *rh); | |||
int rspamd_smtp_addr_parse (const char *data, size_t len, | |||
struct rspamd_email_address *addr); |
@@ -234,7 +234,7 @@ | |||
%% write data; | |||
int | |||
rspamd_smtp_recieved_parse (struct rspamd_task *task, const char *data, size_t len, struct received_header *rh) | |||
rspamd_smtp_received_parse (struct rspamd_task *task, const char *data, size_t len, struct received_header *rh) | |||
{ | |||
struct rspamd_email_address for_addr, *addr; | |||
const char *real_domain_start, *real_domain_end, |
@@ -60,7 +60,7 @@ rspamd_process_file (const gchar *fname) | |||
} | |||
t1 = rspamd_get_virtual_ticks (); | |||
rspamd_smtp_recieved_parse (task, buf->str, buf->len, &rh); | |||
rspamd_smtp_received_parse (task, buf->str, buf->len, &rh); | |||
t2 = rspamd_get_virtual_ticks (); | |||
total_time += t2 - t1; |