return;
}
- session = g_slice_alloc (sizeof (struct kvstorage_session));
+ session = g_slice_alloc0 (sizeof (struct kvstorage_session));
session->pool = memory_pool_new (memory_pool_get_size ());
session->state = KVSTORAGE_STATE_READ_CMD;
session->thr = thr;
gchar *buf;
gsize len;
gsize off;
+ struct worker_task *task;
};
/*
cb->off += rspamd_snprintf (cb->buf + cb->off, cb->len - cb->off, " %*s,",
url->hostlen, url->host);
}
+
+ if (cb->task->cfg->log_urls) {
+ msg_info ("<%s> URL: %s - %s: %s", cb->task->message_id, cb->task->user ?
+ cb->task->user : "unknown", inet_ntoa (cb->task->client_addr), struri (url));
+ }
+
return FALSE;
}
cb.buf = outbuf;
cb.len = sizeof (outbuf);
cb.off = r;
+ cb.task = task;
g_tree_foreach (task->urls, urls_protocol_cb, &cb);
/* Strip last ',' */
cb.buf = outbuf;
cb.len = sizeof (outbuf);
cb.off = r;
+ cb.task = task;
g_tree_foreach (task->emails, emails_protocol_cb, &cb);
/* Strip last ',' */