const gchar *monitored_domain;
const gchar *suffix;
const gchar *symbol;
- guint32 options;
GArray *bits;
GHashTable *ips;
struct rspamd_monitored *m;
+ guint32 options;
+ gboolean reported_offline;
gint callback_id;
gint url_process_cbref;
};
struct surbl_ctx *surbl_module_ctx = surbl_get_context (task->cfg);
if (!rspamd_monitored_alive (suffix->m)) {
- msg_info_surbl ("disable surbl %s as it is reported to be offline",
- suffix->suffix);
+ if (!suffix->reported_offline) {
+ msg_info_surbl ("disable surbl %s as it is reported to be offline",
+ suffix->suffix);
+ suffix->reported_offline = TRUE;
+ }
rspamd_symcache_finalize_item (task, item);
return;
}
+ suffix->reported_offline = FALSE;
param = rspamd_mempool_alloc0 (task->task_pool, sizeof (*param));
param->task = task;
param->suffix = suffix;