From 34ae83f0151a3fd31f4c045968defa39a2c40985 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 25 Jul 2010 16:58:11 +0400 Subject: * Add rspamd_log variable to lua plugins to access logging functions * Each part in rspamd task now can have parent part * Check for parts distance only for multipart/alternative subparts * Do not check attachements even if they are text (but attached as file) * Do not die if write (2) returned ENOSPACE while doing logging, turn on throttling mode instead (1 write try in a second) * Add ability to turn on debug for specific symbols * Add ability to configure dns timeouts and dns retransmits in config file --- src/cfg_file.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/cfg_file.h') diff --git a/src/cfg_file.h b/src/cfg_file.h index fa73643f0..b2ca61150 100644 --- a/src/cfg_file.h +++ b/src/cfg_file.h @@ -252,6 +252,7 @@ struct config_file { uint32_t log_buf_size; /**< length of log buffer */ gchar *debug_ip_map; /**< turn on debugging for specified ip addresses */ gboolean log_urls; /**< whether we should log URLs */ + GList *debug_symbols; /**< symbols to debug */ gsize max_statfile_size; /**< maximum size for statfile */ @@ -266,8 +267,8 @@ struct config_file { gboolean delivery_enable; /**< is delivery agent is enabled */ gchar *deliver_host; /**< host for mail deliviring */ struct in_addr deliver_addr; /**< its address */ - uint16_t deliver_port; /**< port for deliviring */ - uint16_t deliver_family; /**< socket family for delivirnig */ + guint16 deliver_port; /**< port for deliviring */ + guint16 deliver_family; /**< socket family for delivirnig */ gchar *deliver_agent_path; /**< deliver to pipe instead of socket */ gboolean deliver_lmtp; /**< use LMTP instead of SMTP */ @@ -302,8 +303,8 @@ struct config_file { gchar* dump_checksum; /**< dump checksum of config file */ gpointer lua_state; /**< pointer to lua state */ - guint dns_timeout; /**< timeout in milliseconds for waiting for dns reply */ - guint dns_retransmits; /**< maximum retransmits count */ + guint32 dns_timeout; /**< timeout in milliseconds for waiting for dns reply */ + guint32 dns_retransmits; /**< maximum retransmits count */ GList *nameservers; /**< list of nameservers or NULL to parse resolv.conf */ }; -- cgit v1.2.3