summaryrefslogtreecommitdiffstats
path: root/src/expressions.c
Commit message (Collapse)AuthorAgeFilesLines
* * Fix memory leak when ref'ing message mime part without unrefing itVsevolod Stakhov2009-05-081-6/+9
|
* * Improve loggingVsevolod Stakhov2009-05-061-1/+1
|
* * Fix error in regexps results hashingVsevolod Stakhov2009-05-041-5/+15
|
* * Add counters for rspamd symbolsVsevolod Stakhov2009-05-041-1/+1
| | | | * Fix shared hashes
* * Fix function get_transfer_encodingVsevolod Stakhov2009-04-271-1/+1
|
* * Add expression parser utilityVsevolod Stakhov2009-04-271-1/+1
| | | | * Temporaly switch off expression optimizer as it should be reworked
* * Also try to search for headers in raw headersVsevolod Stakhov2009-04-231-1/+9
|
* * Some more bugs are (hopefuly) fixedVsevolod Stakhov2009-04-231-5/+8
|
* * Handle parsed regexp as not-parsed regexps in expressionsVsevolod Stakhov2009-04-231-2/+2
|
* * Another tryVsevolod Stakhov2009-04-231-1/+1
|
* * Try to correctly read regexpsVsevolod Stakhov2009-04-231-1/+1
| | | | * Turn off perl support by default
* * Another fix to regexps parserVsevolod Stakhov2009-04-231-2/+2
|
* * Fix regexp_match_number functionVsevolod Stakhov2009-04-231-2/+3
|
* * Fix expression parser: make it recursive and allow expressions inside ↵Vsevolod Stakhov2009-04-231-45/+143
| | | | | | function's arguments * Rewrite functions interface and implement arguments parsing
* * Add raw mode flag for improving performance by avoiding expensive utf8 ↵Vsevolod Stakhov2009-04-211-6/+10
| | | | | | transforms * Improve FreeBSD start script by adding config test precmd
* * Add function compare_transfer_encoding for checking message content ↵Vsevolod Stakhov2009-04-211-0/+39
| | | | transfer encoding.
* * Add some debugVsevolod Stakhov2009-04-201-0/+2
| | | | * Check for headers not only in message but also in its primary part
* * Threat raw header regexps as raw regexpsVsevolod Stakhov2009-04-161-2/+11
| | | | * Add regexp flag /r for raw regexp of any types
* * For mime parts set flag 'raw' and if we cannot determine charset of part ↵Vsevolod Stakhov2009-04-151-1/+9
| | | | | | or cannot encode it to utf8 just use for such parts raw regexps
* * Fix addresses filling in compare_distance functionVsevolod Stakhov2009-04-061-4/+2
|
* * Parse function's regexp using not temporary task pools, but permament ↵Vsevolod Stakhov2009-04-061-5/+5
| | | | config pool
* * When parse regexp save it to cache to make unique link betweenVsevolod Stakhov2009-04-051-2/+19
| | | | regexp text and regexp parsed structure
* * Add per-task regexp results cache, that would optimize regexp engine ↵Vsevolod Stakhov2009-04-051-14/+78
| | | | | | performance by avoiding multiply match of the same regexp
* * Check mime regexp only in text and html partsVsevolod Stakhov2009-04-031-1/+187
| | | | | | * Add 2 functions: - has_content_part(type, subtype) - has_content_part_len(type, subtype, min, max)
* * Fix comparing of internet addressesVsevolod Stakhov2009-03-311-11/+14
|
* * Fix order of functions argumentsVsevolod Stakhov2009-03-311-2/+2
| | | | * Do not try to check non-regexp expressions
* * Fix misprintVsevolod Stakhov2009-03-301-0/+1
|
* * Try to fix expression parser to support ',' inside regexp arguments of ↵Vsevolod Stakhov2009-03-301-35/+44
| | | | functions
* * Add 3 functions:Vsevolod Stakhov2009-03-301-0/+144
| | | | | | | | - is_recipients_sorted - has_only_html_part - compare_recipients_distance * Update documentation * Fix build
* * Make regexp cache functions public for using them in other placesVsevolod Stakhov2009-03-291-2/+2
| | | | | * Add function regexp_match_number that checks number of matched arguments: e.g.: regexp_match_number(2, ${__RE1}, ${__RE2}, header_exists(Subject))
* * Add ability for plugins to register its own functions in expression's parserVsevolod Stakhov2009-03-281-4/+26
|
* * Fix error in parser when parsing last ')' we need to remove '(' from stack ↵Vsevolod Stakhov2009-03-271-0/+3
| | | | as well
* * Fix parsing regexp with '=' symbol insideVsevolod Stakhov2009-03-271-2/+14
| | | | * Fix config file syntax checking
* * Fix 2 memory leaksVsevolod Stakhov2009-03-271-68/+92
| | | | * Fix uptime command output
* * Fix bug in expressions parser and optimizerVsevolod Stakhov2009-03-241-4/+1
|
* * Fix many compile time warnings and polish codeVsevolod Stakhov2009-03-241-1/+0
|
* * Fix obtaining of content-typeVsevolod Stakhov2009-03-241-13/+28
|
* * Add functions to operate with content-type header and describe them in ↵Vsevolod Stakhov2009-03-241-0/+192
| | | | documentation
* * Use pool allocator for temp strings in headersVsevolod Stakhov2009-03-241-1/+1
|
* * Add smart handling of message headersVsevolod Stakhov2009-03-241-5/+8
|
* * Fix error in expression parser that causes bad errors with expressions ↵Vsevolod Stakhov2009-03-231-4/+60
| | | | | | | | | | | | 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
* * Add functions support to rspamd regexpsVsevolod Stakhov2009-03-191-0/+598
* 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