summaryrefslogtreecommitdiffstats
path: root/src/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Add the tolower variant of strlcpy function.Vsevolod Stakhov2013-08-231-0/+23
|
* Add ability to sign configs using rspamd.Vsevolod Stakhov2013-08-221-0/+112
|
* Fix a problem with listening on sockets.Vsevolod Stakhov2013-07-231-0/+3
| | | | Add stat_reset command to rspamc while I'm here.
* Allow listening on multiply addresses.Vsevolod Stakhov2013-07-201-7/+128
| | | | | | | Now rspamd can listen on multiply ipv4/ipv6 addresses. Removed legacy workers (lmtp, kvstorage) as they are never used in production. Try to unify workers initialization.
* Parse HTTP date in map requests.Vsevolod Stakhov2013-06-261-2/+268
|
* Allow restriction of update commands for fuzzy storage.Vsevolod Stakhov2013-06-041-0/+36
| | | | | | | | | Now it is possible to specify ip or networks from which fuzzy updates or removes are possible. Rework sockets logic while I'm here. Create universal utility for parsing ipv4/mask strings.
* Fix UDP sockets creation.Vsevolod Stakhov2013-06-031-1/+1
|
* Correctly use ai_family for socket(2) call.Vsevolod Stakhov2013-06-031-1/+1
|
* Rework socket creation logic to support both ipv4 and ipv6 sockets.Vsevolod Stakhov2013-06-011-8/+8
|
* Use getaddrinfo when opening sockets.Vsevolod Stakhov2013-05-311-85/+82
|
* Copy hash table utility function.Vsevolod Stakhov2013-01-091-0/+54
| | | | Slight fix for /symbols handler.
* * Add rolling history feature saving last 200 scanned messages.Vsevolod Stakhov2013-01-071-2/+5
| | | | Add /history command handler in webui.
* * Use murmur hash for all hashes as it is more efficient and provides more ↵Vsevolod Stakhov2012-10-081-5/+213
| | | | | | uniform distribution as glib's default one. * Fix probability renormalization while using advanced classification.
* Another debian license fix.Vsevolod Stakhov2012-09-101-1/+1
| | | | | Add apache license for regexp that were delivered from SpamAssassin project. Fix debian/copyright for src/dns.c.
* Update copyright (required by debian).Vsevolod Stakhov2012-09-041-3/+3
|
* * Rework thread pools locking logic to avoid global lua mutex usage.Vsevolod Stakhov2012-08-221-1/+18
| | | | | | Fixed several memory leaks with modern glib. Fixed memory leak in dkim code. Fixed a problem with static global variables in shared libraries.
* When inserting a url to the tree also check phishing status to avoid masking ↵Vsevolod Stakhov2012-08-061-0/+4
| | | | of phished urls by innocent urls.
* Fix build on FreeBSD 9.1 and Current. Thanks to Anton Yuzjaninov for testing.Vsevolod Stakhov2012-07-261-0/+4
|
* Strict prototypes.Vsevolod Stakhov2012-06-051-2/+2
|
* * Split rspamd build to several independent libraries to reduce overhead.Vsevolod Stakhov2012-06-051-21/+0
|
* Add portable api for locks and threads to handle Glib threads API change.Vsevolod Stakhov2012-04-131-0/+189
|
* Separate librspamdserver API from plugins and workers functions.Vsevolod Stakhov2012-03-011-2/+2
| | | | Make tests compileable again.
* * Introduce new system of worker's and modules initialization:Vsevolod Stakhov2012-01-161-51/+23
| | | | | | | | - Removed legacy limitation of worker's types; - Using GQuarks to identify workers and modules; - Remove modules.sh script; - Add a common system of workers and modules; - Write management and configuration for new architecture.
* Make compiler happy in several cases, remove warnings.Vsevolod Stakhov2011-12-201-1/+3
|
* Detect and use fallocate/posix_fallocate.Vsevolod Stakhov2011-12-141-0/+13
|
* Add another workaround for CentOS.Vsevolod Stakhov2011-12-141-0/+11
|
* Reorganize util.c as it should contain only common utilities.Vsevolod Stakhov2011-12-071-217/+2
| | | | Libkvstorage client is now deprecated as I plan to replace it with hiredis library.
* Add -i flag allowing to run workers as root.Vsevolod Stakhov2011-11-301-0/+5
|
* Check for SIGUSR1 by libevent to avoid signals collisions.Vsevolod Stakhov2011-11-301-5/+0
| | | | Remove greylist_storage as it was never used and is actually replaced with basic kvstorage.
* * Add incr and decr commands to kvstorage.Vsevolod Stakhov2011-11-101-0/+82
| | | | * Add integers detection inside kvstorage.
* * Fix threading in kvstorage.Vsevolod Stakhov2011-10-311-0/+2
| | | | Rspamd now can detect and work with libevent-2.
* * Initial implementation of threaded kvstorage worker.Vsevolod Stakhov2011-10-271-2/+2
|
* Fix siginfo detection code.Vsevolod Stakhov2011-10-241-1/+1
|
* Add universal utility function for creating stream sockets.Vsevolod Stakhov2011-10-181-1/+87
|
* Remove some warnings.Vsevolod Stakhov2011-10-141-3/+1
|
* Add make_socketpair utility function.Vsevolod Stakhov2011-10-131-0/+31
|
* Try to check spf domain before adding it to LRU hash.Vsevolod Stakhov2011-10-061-20/+20
| | | | Make libutil functions ported from BSD compatible with libbsd in linux.
* Fix signness in arithmetic operations.Vsevolod Stakhov2011-08-041-3/+3
|
* * First commit to implement multi-statfile filter system with new learning ↵Vsevolod Stakhov2011-07-121-0/+23
| | | | mechanizm (untested yet)
* * Fix error in raw headers parsingVsevolod Stakhov2011-05-241-0/+4
| | | | * Improve speed of raw headers access
* * Strip email addresses from bracesVsevolod Stakhov2011-05-131-0/+23
| | | | Ignore empty domains in settings
* * Rework build process:Vsevolod Stakhov2011-05-101-540/+181
| | | | | | | | | | - add librspamdserver - link this library to all daemons and utils of rspamd - use subdirectories more often * Rework global variables logic - move them to the main process * Fix logging to handle utf-8 correctly * Add statshow utility and make it working * Move printf functions to separate source file
* * Start new rspamd 0.3.4Vsevolod Stakhov2010-12-031-0/+54
| | | | * Add ability to manage per-module, per-worker and per-classifier options in XML parser
* Make own strlcpy that does not calculate remaining string length (faster and ↵Vsevolod Stakhov2010-11-161-6/+88
| | | | | | more safe) Allow only ASCII symbols in logs, escape control chars
* Urgent fixes.Vsevolod Stakhov2010-11-031-1/+1
|
* Add compatibility with glib < 2.2.22Vsevolod Stakhov2010-10-281-0/+7
| | | | Fix user in start script
* Fixes types (use glib ones) no functional change.Vsevolod Stakhov2010-10-061-172/+162
| | | | | Now all comments in commit logs beginning with '*' would be included in changelog, so important changes would be separated from small ones.
* * Fix detection of numeric urls (reported by citrin)Vsevolod Stakhov2010-07-051-13/+16
| | | | * Write real time of message's scan to log (not only virtual)
* * Use rspamd_snprintf instead of libc oneVsevolod Stakhov2010-06-241-2/+8
|
* * Fix compatibility issuesVsevolod Stakhov2010-06-231-2/+9
|