]> source.dussan.org Git - rspamd.git/log
rspamd.git
15 years ago* Threat raw header regexps as raw regexps
Vsevolod Stakhov [Thu, 16 Apr 2009 13:13:37 +0000 (17:13 +0400)]
* Threat raw header regexps as raw regexps
* Add regexp flag /r for raw regexp of any types

15 years ago* For mime parts set flag 'raw' and if we cannot determine charset of part or cannot
Vsevolod Stakhov [Wed, 15 Apr 2009 13:01:01 +0000 (17:01 +0400)]
* For mime parts set flag 'raw' and if we cannot determine charset of part or cannot
  encode it to utf8 just use for such parts raw regexps

15 years ago* Fix allocating and freeing of byte array
Vsevolod Stakhov [Wed, 15 Apr 2009 12:44:37 +0000 (16:44 +0400)]
* Fix allocating and freeing of byte array

15 years ago* Include sys/resource.h for getrlimit
Vsevolod Stakhov [Wed, 15 Apr 2009 12:30:06 +0000 (16:30 +0400)]
* Include sys/resource.h for getrlimit

15 years ago* Try to convert each text part of messages to utf8 to avoid problems with regexps
Vsevolod Stakhov [Wed, 15 Apr 2009 12:24:55 +0000 (16:24 +0400)]
* Try to convert each text part of messages to utf8 to avoid problems with regexps

15 years ago* Fix addresses filling in compare_distance function
Vsevolod Stakhov [Mon, 6 Apr 2009 16:59:16 +0000 (20:59 +0400)]
* Fix addresses filling in compare_distance function

15 years ago* Parse function's regexp using not temporary task pools, but permament config pool
Vsevolod Stakhov [Mon, 6 Apr 2009 16:48:01 +0000 (20:48 +0400)]
* Parse function's regexp using not temporary task pools, but permament config pool

15 years ago* When parse regexp save it to cache to make unique link between
Vsevolod Stakhov [Sun, 5 Apr 2009 16:42:45 +0000 (20:42 +0400)]
* When parse regexp save it to cache to make unique link between
  regexp text and regexp parsed structure

15 years ago* Add per-task regexp results cache, that would optimize regexp engine performance
Vsevolod Stakhov [Sun, 5 Apr 2009 16:12:44 +0000 (20:12 +0400)]
* Add per-task regexp results cache, that would optimize regexp engine performance
  by avoiding multiply match of the same regexp

15 years ago* Check mime regexp only in text and html parts
Vsevolod Stakhov [Fri, 3 Apr 2009 09:03:29 +0000 (13:03 +0400)]
* Check mime regexp only in text and html parts
* Add 2 functions:
  - has_content_part(type, subtype)
  - has_content_part_len(type, subtype, min, max)

15 years ago* Optimize speed of regexp_match_number function by avoid of regexp checks when thres...
Vsevolod Stakhov [Tue, 31 Mar 2009 13:23:23 +0000 (17:23 +0400)]
* Optimize speed of regexp_match_number function by avoid of regexp checks when threshold is already reached

15 years ago* Fix comparing of internet addresses
Vsevolod Stakhov [Tue, 31 Mar 2009 12:01:46 +0000 (16:01 +0400)]
* Fix comparing of internet addresses

15 years ago* Fix order of functions arguments
Vsevolod Stakhov [Tue, 31 Mar 2009 09:29:11 +0000 (13:29 +0400)]
* Fix order of functions arguments
* Do not try to check non-regexp expressions

15 years ago* Fix error in regexp processing
Vsevolod Stakhov [Tue, 31 Mar 2009 08:58:38 +0000 (12:58 +0400)]
* Fix error in regexp processing

15 years ago* Fix misprint
Vsevolod Stakhov [Mon, 30 Mar 2009 16:19:08 +0000 (20:19 +0400)]
* Fix misprint

15 years ago* Try to fix expression parser to support ',' inside regexp arguments of functions
Vsevolod Stakhov [Mon, 30 Mar 2009 15:52:08 +0000 (19:52 +0400)]
* Try to fix expression parser to support ',' inside regexp arguments of functions

15 years ago* Add 3 functions:
Vsevolod Stakhov [Mon, 30 Mar 2009 15:35:57 +0000 (19:35 +0400)]
* Add 3 functions:
 - is_recipients_sorted
 - has_only_html_part
 - compare_recipients_distance
* Update documentation
* Fix build

15 years ago* Add message handling functions to lua API
Vsevolod Stakhov [Mon, 30 Mar 2009 13:57:59 +0000 (17:57 +0400)]
* Add message handling functions to lua API
* Add ability to add lua code in config with .lua and .endlua
* Add consolidation functions support that are written in perl or lua

15 years ago* Make regexp cache functions public for using them in other places
Vsevolod Stakhov [Sun, 29 Mar 2009 10:02:01 +0000 (14:02 +0400)]
* Make regexp cache functions public for using them in other places
* Add function regexp_match_number that checks number of matched arguments:
  e.g.: regexp_match_number(2, ${__RE1}, ${__RE2}, header_exists(Subject))

15 years ago* Add ability for plugins to register its own functions in expression's parser
Vsevolod Stakhov [Sat, 28 Mar 2009 13:45:05 +0000 (16:45 +0300)]
* Add ability for plugins to register its own functions in expression's parser

15 years ago* Fix error in parser when parsing last ')' we need to remove '(' from stack as well
Vsevolod Stakhov [Fri, 27 Mar 2009 16:58:42 +0000 (19:58 +0300)]
* Fix error in parser when parsing last ')' we need to remove '(' from stack as well

15 years ago* Another fix of uptime command
Vsevolod Stakhov [Fri, 27 Mar 2009 16:43:53 +0000 (19:43 +0300)]
* Another fix of uptime command

15 years ago* Fix variables substitution
Vsevolod Stakhov [Fri, 27 Mar 2009 16:39:01 +0000 (19:39 +0300)]
* Fix variables substitution
* Add simple lua interface to access task structures
* Improve error reporting for regexp module

15 years ago* Add initial LUA filters support
Vsevolod Stakhov [Fri, 27 Mar 2009 15:30:40 +0000 (18:30 +0300)]
* Add initial LUA filters support

15 years ago* Fix linking with libutil
Vsevolod Stakhov [Fri, 27 Mar 2009 13:32:18 +0000 (16:32 +0300)]
* Fix linking with libutil

15 years ago* Fix build without perl
Vsevolod Stakhov [Fri, 27 Mar 2009 13:28:12 +0000 (16:28 +0300)]
* Fix build without perl

15 years ago* Fix parsing regexp with '=' symbol inside
Vsevolod Stakhov [Fri, 27 Mar 2009 13:13:16 +0000 (16:13 +0300)]
* Fix parsing regexp with '=' symbol inside
* Fix config file syntax checking

15 years ago* Add ability to build rspamd without perl support
Vsevolod Stakhov [Fri, 27 Mar 2009 11:21:27 +0000 (14:21 +0300)]
* Add ability to build rspamd without perl support
* Fix creating of uinx socket
* Improve some build issues

15 years ago* Fix 2 memory leaks
Vsevolod Stakhov [Fri, 27 Mar 2009 10:47:00 +0000 (13:47 +0300)]
* Fix 2 memory leaks
* Fix uptime command output

15 years ago* Add statictics for all allocated pools
Vsevolod Stakhov [Thu, 26 Mar 2009 15:29:45 +0000 (18:29 +0300)]
* Add statictics for all allocated pools

15 years ago* Unref wrapper as well
Vsevolod Stakhov [Thu, 26 Mar 2009 14:13:12 +0000 (17:13 +0300)]
* Unref wrapper as well

15 years ago* Do not try to process empty parts
Vsevolod Stakhov [Thu, 26 Mar 2009 12:57:12 +0000 (15:57 +0300)]
* Do not try to process empty parts

15 years ago* Unref stream to avoid memory leaking
Vsevolod Stakhov [Wed, 25 Mar 2009 16:16:05 +0000 (19:16 +0300)]
* Unref stream to avoid memory leaking

15 years ago* Fix using of local variable
Vsevolod Stakhov [Wed, 25 Mar 2009 14:46:50 +0000 (17:46 +0300)]
* Fix using of local variable

15 years ago* Fix log line
Vsevolod Stakhov [Wed, 25 Mar 2009 10:14:17 +0000 (13:14 +0300)]
* Fix log line

15 years ago* More accurate work with clock
Vsevolod Stakhov [Wed, 25 Mar 2009 10:10:48 +0000 (13:10 +0300)]
* More accurate work with clock

15 years ago* Log scan time and scan length of messages
Vsevolod Stakhov [Wed, 25 Mar 2009 09:31:39 +0000 (12:31 +0300)]
* Log scan time and scan length of messages
* Remove 2 memory leaks

15 years ago* Fix multiply accept issues
Vsevolod Stakhov [Tue, 24 Mar 2009 17:19:22 +0000 (20:19 +0300)]
* Fix multiply accept issues

15 years ago* Polish socket utility functions
Vsevolod Stakhov [Tue, 24 Mar 2009 16:59:41 +0000 (19:59 +0300)]
* Polish socket utility functions

15 years ago* Fix bug in expressions parser and optimizer
Vsevolod Stakhov [Tue, 24 Mar 2009 16:47:10 +0000 (19:47 +0300)]
* Fix bug in expressions parser and optimizer

15 years ago* Fix issue with including sys/uio.h for writev and readv
Vsevolod Stakhov [Tue, 24 Mar 2009 15:49:48 +0000 (18:49 +0300)]
* Fix issue with including sys/uio.h for writev and readv

15 years ago* Fix many compile time warnings and polish code
Vsevolod Stakhov [Tue, 24 Mar 2009 15:38:11 +0000 (18:38 +0300)]
* Fix many compile time warnings and polish code

15 years ago* Fix obtaining of content-type
Vsevolod Stakhov [Tue, 24 Mar 2009 13:09:42 +0000 (16:09 +0300)]
* Fix obtaining of content-type

15 years ago* Add functions to operate with content-type header and describe them in documentation
Vsevolod Stakhov [Tue, 24 Mar 2009 12:01:49 +0000 (15:01 +0300)]
* Add functions to operate with content-type header and describe them in documentation

15 years ago* Fix expression optimizator
Vsevolod Stakhov [Tue, 24 Mar 2009 10:57:27 +0000 (13:57 +0300)]
* Fix expression optimizator

15 years ago* Fix XS module to work with current type of memory allocation
Vsevolod Stakhov [Tue, 24 Mar 2009 10:29:52 +0000 (13:29 +0300)]
* Fix XS module to work with current type of memory allocation

15 years ago* Use pool allocator for temp strings in headers
Vsevolod Stakhov [Tue, 24 Mar 2009 10:24:17 +0000 (13:24 +0300)]
* Use pool allocator for temp strings in headers

15 years ago* Add smart handling of message headers
Vsevolod Stakhov [Tue, 24 Mar 2009 10:13:57 +0000 (13:13 +0300)]
* Add smart handling of message headers

15 years ago* Fix variable substitution
Vsevolod Stakhov [Tue, 24 Mar 2009 09:46:41 +0000 (12:46 +0300)]
* Fix variable substitution
* Add new command line parameter '-V' allowing to dump all variables of rspamd

15 years ago* Fix error in expression parser that causes bad errors with expressions that have...
Vsevolod Stakhov [Mon, 23 Mar 2009 11:10:07 +0000 (14:10 +0300)]
* Fix error in expression parser that causes bad errors with expressions that have regexp at the end
* Improve test for fuzzy hashes
* Add new object - TextPart to perl XS library that allows access to stripped parts and fuzzy hashes
* Add documentation for expressions parser and fot Mail::Rspamd::TextPart
* Allways calculate fuzzy hash for text parts
* Store text parts separately from other parts
* Add compare_parts_distance for expressions that calculates difference in 2 parts messages
* Do not try to substitute variables in empty strings

15 years ago* Add fuzzy hashes implementation (with adler-32 roll hash and FNV-32 hash)
Vsevolod Stakhov [Fri, 20 Mar 2009 15:35:30 +0000 (18:35 +0300)]
* Add fuzzy hashes implementation (with adler-32 roll hash and FNV-32 hash)
* Add test case for fuzzy hashing check

15 years ago* Misprint in optimizer function
Vsevolod Stakhov [Thu, 19 Mar 2009 16:12:15 +0000 (19:12 +0300)]
* Misprint in optimizer function

15 years ago* Fix bug in redirector
Vsevolod Stakhov [Thu, 19 Mar 2009 15:44:51 +0000 (18:44 +0300)]
* Fix bug in redirector
* Do not write info about redirects to log file as this info is already in redirector's log file

15 years ago* Add optimization support for regexps
Vsevolod Stakhov [Thu, 19 Mar 2009 15:30:51 +0000 (18:30 +0300)]
* Add optimization support for regexps

15 years ago* Add functions support to rspamd regexps
Vsevolod Stakhov [Thu, 19 Mar 2009 14:44:57 +0000 (17:44 +0300)]
* Add functions support to rspamd regexps
* Parse expressions with state machine which allows different kinds of arguments in expressions
* Fix test to accord current data
* Add support of fucntions to regexp module
* Move all regexp logic to separate file, describe its API
* Fix descriptors leakage in surbl module

15 years ago* While printing symbols list on log strip last ',' from logline
Vsevolod Stakhov [Thu, 19 Mar 2009 09:29:57 +0000 (12:29 +0300)]
* While printing symbols list on log strip last ',' from logline

15 years ago* With flag -t syntax of modules variables is also inspected
Vsevolod Stakhov [Thu, 19 Mar 2009 09:25:14 +0000 (12:25 +0300)]
* With flag -t syntax of modules variables is also inspected
* Set "C" locale on start to avoid some troubles with logging

15 years ago* Allow escaped quotes in quoted strings, for example "\"some string\""
Vsevolod Stakhov [Wed, 18 Mar 2009 17:03:36 +0000 (20:03 +0300)]
* Allow escaped quotes in quoted strings, for example "\"some string\""
* Add warnings when we got errors while parsing rexeps

15 years ago* Add ability to match raw headers
Vsevolod Stakhov [Tue, 17 Mar 2009 09:25:23 +0000 (12:25 +0300)]
* Add ability to match raw headers
* Update documentation

15 years ago* Add functions to parse headers and urls into statfile tokens
Vsevolod Stakhov [Mon, 16 Mar 2009 10:05:49 +0000 (13:05 +0300)]
* Add functions to parse headers and urls into statfile tokens

15 years ago* Fix reload logic
Vsevolod Stakhov [Fri, 13 Mar 2009 15:03:29 +0000 (18:03 +0300)]
* Fix reload logic
* Create listen sock for lmtp in main processes dispatcher to allow multiply lmtp workers
* Fix logic of logging

15 years ago* Add ability to configure sections in statfiles
Vsevolod Stakhov [Fri, 13 Mar 2009 11:11:31 +0000 (14:11 +0300)]
* Add ability to configure sections in statfiles
* Add ability to define variables in modules blocks
* Add symbolic aliases for statfile sections

15 years ago* Some fixes to regexp module
Vsevolod Stakhov [Thu, 12 Mar 2009 14:58:09 +0000 (17:58 +0300)]
* Some fixes to regexp module
* Add documentation for rspamd regexp module

15 years ago* Add sections support to rspamd statfiles API
Vsevolod Stakhov [Thu, 12 Mar 2009 13:39:52 +0000 (16:39 +0300)]
* Add sections support to rspamd statfiles API
* Change logic of statfile pool:
  - statfiles hash is no longer shared hash as we have per-process uniq things like current section or offset in statfile
  - introduce shared hash of statfiles mmapped areas to avoid multiply mmaps of the same file

15 years ago* Add log line for each message in SA style
Vsevolod Stakhov [Wed, 11 Mar 2009 16:45:57 +0000 (19:45 +0300)]
* Add log line for each message in SA style

15 years ago* Fix FreeBSD start script for redirector
Vsevolod Stakhov [Wed, 11 Mar 2009 15:33:39 +0000 (18:33 +0300)]
* Fix FreeBSD start script for redirector

15 years ago* Fixes to redirector:
Vsevolod Stakhov [Wed, 11 Mar 2009 09:08:11 +0000 (12:08 +0300)]
* Fixes to redirector:
  - move memcached servers setting to config hash
  - eval config file before any actions
  - move daemonization code after all subs
  - fix searching in domains for redirector's check

15 years ago* Fix redirector connection procedure
Vsevolod Stakhov [Tue, 10 Mar 2009 16:54:20 +0000 (19:54 +0300)]
* Fix redirector connection procedure
* Add more strict login
* Add new header Queue-ID to protocol
* Log message id or queue id
* Add config file for redirector
* Add ability to set regexp and domains list to check with redirector

15 years ago* Not increase save point counter when we actually do not send requests
Vsevolod Stakhov [Tue, 10 Mar 2009 13:02:56 +0000 (16:02 +0300)]
* Not increase save point counter when we actually do not send requests

15 years ago* Avoid extra requests to surbls saving them into requests cache
Vsevolod Stakhov [Tue, 10 Mar 2009 11:59:25 +0000 (14:59 +0300)]
* Avoid extra requests to surbls saving them into requests cache
* Lower debug level for some errors (INFO to DEBUG)

15 years ago* Fix 2 memory issues:
Vsevolod Stakhov [Tue, 10 Mar 2009 11:20:14 +0000 (14:20 +0300)]
* Fix 2 memory issues:
 - NULL string when trying to check url regexp
 - double free of message byte array as mime_stream frees memory in array if it thinks that stream is
   owner of array's memory

15 years ago* Fix logic of parsing hoster's domains in surbl module
Vsevolod Stakhov [Fri, 6 Mar 2009 15:00:35 +0000 (18:00 +0300)]
* Fix logic of parsing hoster's domains in surbl module

15 years ago* Remove several memory leaks (found by valgrind)
Vsevolod Stakhov [Fri, 6 Mar 2009 14:48:31 +0000 (17:48 +0300)]
* Remove several memory leaks (found by valgrind)

15 years ago* Add some broken urls to check list, in fact skip only urls without host part and...
Vsevolod Stakhov [Fri, 6 Mar 2009 14:16:24 +0000 (17:16 +0300)]
* Add some broken urls to check list, in fact skip only urls without host part and empty urls (thought empty urls are
  totally impossible in that code)

15 years ago* Fix bad memory leaks and memory corruption in url detecting module
Vsevolod Stakhov [Fri, 6 Mar 2009 14:12:08 +0000 (17:12 +0300)]
* Fix bad memory leaks and memory corruption in url detecting module

15 years ago* Fix initialization procedure of redirector
Vsevolod Stakhov [Fri, 6 Mar 2009 10:09:32 +0000 (13:09 +0300)]
* Fix initialization procedure of redirector
* Do not write to log file if we cannot open it

15 years ago* Fix bug in url parser with freeing memory allocated by memory_pool allocator
Vsevolod Stakhov [Wed, 4 Mar 2009 16:14:30 +0000 (19:14 +0300)]
* Fix bug in url parser with freeing memory allocated by memory_pool allocator
* Do not write to log if we don't do any read operation in dispatcher library

15 years ago* Change method of dropping privilleges
Vsevolod Stakhov [Wed, 4 Mar 2009 10:58:20 +0000 (13:58 +0300)]
* Change method of dropping privilleges

15 years ago* Drop privilleges immideately after creating of listen socket
Vsevolod Stakhov [Wed, 4 Mar 2009 09:50:40 +0000 (12:50 +0300)]
* Drop privilleges immideately after creating of listen socket

15 years ago* Fix misprint in surbl module
Vsevolod Stakhov [Tue, 3 Mar 2009 16:24:02 +0000 (19:24 +0300)]
* Fix misprint in surbl module

15 years ago* Add ability to fork multiply lmtp workers
Vsevolod Stakhov [Tue, 3 Mar 2009 15:56:10 +0000 (18:56 +0300)]
* Add ability to fork multiply lmtp workers
* Add ability to drop privilleges of rspamd processes
* Add ability to install redirector with rspamd
* Add FreeBSD start scripts for rspamd and redirector
* Remove command line parsing from util.c as it has specific usage only in main process

15 years ago* Unify socket creation and accepting by using utility functions
Vsevolod Stakhov [Tue, 3 Mar 2009 11:31:51 +0000 (14:31 +0300)]
* Unify socket creation and accepting by using utility functions
* Check SO_ERROR on socket immideately after connect/bind to avoid resourses allocation for
  unsuccessful connections
* Avoid descriptors leakage when we create sockets and have errors on them
* Set on all socket descriptors FD_CLOEXEC flag to avoid problems with executing LDA

15 years ago* New rspamd protocol (changed replies)
Vsevolod Stakhov [Tue, 3 Mar 2009 10:44:50 +0000 (13:44 +0300)]
* New rspamd protocol (changed replies)
* Add ability to attach string lists to symbols
* Check destructors and do not add identical destructors (argument and function) to pool's destructors
* Remove 2 warnings when building with gmime22
* Attach url names to surbl symbols
* Fix bug with blocking on read (I think it is linux specific thought)

15 years ago* Add ability to check bits from surbl replies
Vsevolod Stakhov [Mon, 2 Mar 2009 16:18:43 +0000 (19:18 +0300)]
* Add ability to check bits from surbl replies

15 years ago* Properly set initial state for surbl state machine
Vsevolod Stakhov [Mon, 2 Mar 2009 14:35:03 +0000 (17:35 +0300)]
* Properly set initial state for surbl state machine
* Ignore SIGPIPE globally as dispatcher performs check of all write (2) calls

15 years ago* Set read timeout for redirector instead of connect timeout
Vsevolod Stakhov [Mon, 2 Mar 2009 13:58:47 +0000 (16:58 +0300)]
* Set read timeout for redirector instead of connect timeout

15 years ago* htonl->htons as port is uint16_t, so lower bytes are zeroed or undefined when call...
Vsevolod Stakhov [Mon, 2 Mar 2009 13:54:03 +0000 (16:54 +0300)]
* htonl->htons as port is uint16_t, so lower bytes are zeroed or undefined when call htonl

15 years ago* Remove %m from logging it seems to be unsupported by FreeBSD printf version
Vsevolod Stakhov [Mon, 2 Mar 2009 13:43:01 +0000 (16:43 +0300)]
* Remove %m from logging it seems to be unsupported by FreeBSD printf version

15 years ago* Fix misprint
Vsevolod Stakhov [Mon, 2 Mar 2009 13:24:26 +0000 (16:24 +0300)]
* Fix misprint

15 years ago* Add forgotten file
Vsevolod Stakhov [Mon, 2 Mar 2009 12:57:25 +0000 (15:57 +0300)]
* Add forgotten file

15 years ago* Add ability to check multiply SURBL's
Vsevolod Stakhov [Mon, 2 Mar 2009 12:55:05 +0000 (15:55 +0300)]
* Add ability to check multiply SURBL's

15 years ago* Add compatibility with gmime24
Vsevolod Stakhov [Mon, 2 Mar 2009 10:09:33 +0000 (13:09 +0300)]
* Add compatibility with gmime24

15 years ago* Fix LMTP and DELIVERY parsing in config file while trying to get control credits
Vsevolod Stakhov [Mon, 2 Mar 2009 06:25:32 +0000 (09:25 +0300)]
* Fix LMTP and DELIVERY parsing in config file while trying to get control credits

15 years ago* Fix dispatcher bugs and add some debug output
Vsevolod Stakhov [Mon, 2 Mar 2009 06:21:24 +0000 (09:21 +0300)]
* Fix dispatcher bugs and add some debug output
* Fix log output for surbl

15 years ago* Fix character policy in dispatcher
Vsevolod Stakhov [Mon, 2 Mar 2009 00:58:37 +0000 (03:58 +0300)]
* Fix character policy in dispatcher

15 years ago* Try not to unref parser too early
Vsevolod Stakhov [Mon, 2 Mar 2009 00:40:59 +0000 (03:40 +0300)]
* Try not to unref parser too early

15 years ago* Link with gmime24 if gmime22 is not found
Vsevolod Stakhov [Sun, 1 Mar 2009 22:59:39 +0000 (01:59 +0300)]
* Link with gmime24 if gmime22 is not found

15 years ago* Add debug for mime parsing
Vsevolod Stakhov [Sun, 1 Mar 2009 22:39:40 +0000 (01:39 +0300)]
* Add debug for mime parsing
* Fill task structure with zeroes in url-extracter

15 years ago* Fix url-extracter
Vsevolod Stakhov [Fri, 27 Feb 2009 17:06:15 +0000 (20:06 +0300)]
* Fix url-extracter
* Fix soft-shutdown of dispacther
* Turn debug on by default in cmake
* Change logic of save points

15 years ago* Fix dependencies on perlxs target (do not rebuild it constantly)
Vsevolod Stakhov [Fri, 27 Feb 2009 09:44:18 +0000 (12:44 +0300)]
* Fix dependencies on perlxs target (do not rebuild it constantly)
* Fix rspamc to understand lmtp and delivery sections in config
* Fix parser's states when reading module options
* Add sample config for surbl module with comments

--HG--
rename : rspamc.pl => rspamc.pl.in