]> source.dussan.org Git - rspamd.git/log
rspamd.git
3 years ago[Fix] Another rework of the ucl hashing
Vsevolod Stakhov [Mon, 23 Aug 2021 09:10:33 +0000 (10:10 +0100)]
[Fix] Another rework of the ucl hashing

3 years ago[Fix] Libucl: Fix deletion from ucl objects
Vsevolod Stakhov [Sun, 22 Aug 2021 17:23:31 +0000 (18:23 +0100)]
[Fix] Libucl: Fix deletion from ucl objects

3 years agoMerge pull request #3855 from arkamar/libfmt
Vsevolod Stakhov [Sat, 21 Aug 2021 10:52:26 +0000 (11:52 +0100)]
Merge pull request #3855 from arkamar/libfmt

Add SYSTEM_FMT cmake option

3 years agoAdd SYSTEM_FMT cmake option 3855/head
Petr Vaněk [Sat, 21 Aug 2021 09:24:35 +0000 (11:24 +0200)]
Add SYSTEM_FMT cmake option

This gives packagers option to use system version of fmt rather than
bundled one. It is disabled by default.

3 years ago[Minor] Update version to 3.1
Vsevolod Stakhov [Fri, 20 Aug 2021 17:52:24 +0000 (18:52 +0100)]
[Minor] Update version to 3.1

3 years agoMerge pull request #3852 from tomop-tg/lua54
Vsevolod Stakhov [Fri, 20 Aug 2021 17:52:03 +0000 (18:52 +0100)]
Merge pull request #3852 from tomop-tg/lua54

fix compatibility with lua-5.4

3 years agofix compatibility with lua-5.4 3852/head
Tomohiro "Tomo-p" KATO [Mon, 15 Feb 2021 15:29:59 +0000 (00:29 +0900)]
fix compatibility with lua-5.4

3 years agoRelease 3.0 3.0
Vsevolod Stakhov [Thu, 19 Aug 2021 10:02:46 +0000 (11:02 +0100)]
Release 3.0

* [Conf] Align ARC scores with DKIM scores
* [CritFix] Neural: Fix sorting application
* [Feature] Add a simple dumper for bayes tokens
* [Feature] Add lua_maps.fill_config_maps function
* [Feature] Add preliminary exporter to AWS S3
* [Feature] Add preliminary restore bayes support
* [Feature] Add race condition protection against hs_helper restarts
* [Feature] Add rspamd_utf8_strcmp utility
* [Feature] Add zstd streaming API
* [Feature] Allow to log severity level explicitly
* [Feature] Allow to save and show attachment name when inserting AV scan results
* [Feature] Allow to sort urls for Lua
* [Feature] Allow to specify different timeouts/retransmits for fuzzy rules
* [Feature] Aws_s3: Allow to compress data stored
* [Feature] CMakeLists.txt: Change check and run-test to use rspamd-test-cxx * fixes #3807
* [Feature] Dmarc_report: allow sending reports in batches
* [Feature] Fuzzy_check: Allow to disable subject when making short text hash
* [Feature] Lua_cryptobox: Add keyed ssl hash functions via HMAC
* [Feature] Lua_task: Add get_urls_filtered method
* [Feature] Make monitored checks less frequent
* [Feature] Milter_headers: Add x-rspamd-pre-result header
* [Feature] Neural: Allow to balance FP/FN for the network
* [Feature] Ppopagate monitored errors from rbl module
* [Feature] Pyzor calculate score dynamically Count - WL-Count of default_score in percent
* [Feature] Rbl: Distinguish flattened and non-flattened selectors in RBL requests
* [Feature] Re-add pyzor support
* [Feature] Settings: add ip_map check and rework structure slightly
* [Feature] Spamassassin: Allow to set the default priority for SA scores
* [Feature] Strip smtp comments from message id
* [Feature] add SYSTEM_ZSTD cmake option To use the system zstd instead on the bundled version
* [Feature] external_relay plugin
* [Feature] rspamadm clickhouse neural_train subcommand
* [Fix] #3400 milter_headers: fix inverted logic for extended_headers_rcpt
* [Fix] ASN: fix _FAIL symbol for when main symbol is disabled
* [Fix] Add a special logic for text part with no text extraction
* [Fix] Add diacritics flag for several eu languages
* [Fix] Another FSM fix to accomodate possibility of multiple consequent ?
* [Fix] Avoid curse of dynamic array referencing
* [Fix] Avoid reinitialising neural settings
* [Fix] Check remain before processing TXT records
* [Fix] Enable error multiplier on http errors
* [Fix] Finally rework parsing entities logic
* [Fix] Fix '==' parsing in the content type attributes parser
* [Fix] Fix IPv6 expansion for SPF macros
* [Fix] Fix Mozilla Message-ID detection
* [Fix] Fix an edge case in BITCOIN_ADDR rule
* [Fix] Fix brain-damaged behaviour when http request has a custom Host header
* [Fix] Fix check of limits in email address parsing
* [Fix] Fix copy&paste error and rework
* [Fix] Fix expressions logic for and/or and float values
* [Fix] Fix fuzzy retransmits
* [Fix] Fix http maps with no or invalid expires data
* [Fix] Fix last quote character parsing in the content-type state machine
* [Fix] Fix normalisation flags propagation
* [Fix] Fix overflow when appending many broken tags
* [Fix] Fix parsing of rfc2047 tokens with '?' inside
* [Fix] Fix phishing flag set
* [Fix] Fix rfc2047 embedded into rfc2231 pieces in special headers
* [Fix] Fix round-robin rotation
* [Fix] Fix searching for symbols
* [Fix] Fix storing of the regexps inside variant
* [Fix] Fix tokenization near exceptions
* [Fix] Fix visibility calculations
* [Fix] Html: Attach inline tags to the structure
* [Fix] Html: Do not treat empty tags as block tags
* [Fix] Ical: Do not extract urls from all flags using merely specific ones
* [Fix] Initialise symcache even if it cannot be loaded properly
* [Fix] Lua_fuzzy: Remove text parts check when checking image dimensions
* [Fix] Lua_maps: Fix adjustments for the map type in the complex map definitions
* [Fix] Lua_task: Fix deleted symbols in has_symbol/get_symbol
* [Fix] Move metric and symcache link from validation to the init stage
* [Fix] Oletools: Another try to fix table sorting
* [Fix] One more default behaviour fix
* [Fix] Phishing: Rework urls processing
* [Fix] RBL: was missing some config schema
* [Fix] Replies: Fix 'Reply-To' handling in task:get_reply_sender
* [Fix] Rework metrics handling
* [Fix] Save symcache on exit
* [Fix] Selectors: Filter nil elements in lists
* [Fix] Selectors: Properly fix implicit tostring for nils
* [Fix] Try to fix some broken code in DMARC reporting plugin
* [Fix] Urls: Fix processing of html urls when it comes to the flags
* [Fix] Use proper buffer length
* [Fix] Various visibility fixes
* [Fix]: ASN: dns cb func should also return in case of an error
* [Project] Add a simple css rule definition
* [Project] Add css style skeleton
* [Project] Add css syntax (adopted from ebnf)
* [Project] Add css_selectors
* [Project] Add doctest unit testing library
* [Project] Add expected library
* [Project] Add fmt library for simple string ops
* [Project] Add fu2 library to better functions abstractions
* [Project] Add hashing method
* [Project] Add parsers skeleton
* [Project] Add preliminary support of vcard parser
* [Project] Add process exceptions for invisible text
* [Project] Add some methods for css parser
* [Project] Allow static libstdc++
* [Project] Another whitespace hack
* [Project] CSS: Various fixes in the declarations and values parsing
* [Project] Cpp: Add robin-hood hash map library
* [Project] Css: Add AST debug
* [Project] Css: Add colors conversion functions
* [Project] Css: Add dimensions handling
* [Project] Css: Add display value support
* [Project] Css: Add frozen library from https://github.com/serge-sans-paille/frozen/
* [Project] Css: Add opacity support
* [Project] Css: Add parser helpers to simplify debugging
* [Project] Css: Add preliminary stylesheet support
* [Project] Css: Add rules processing functions and tests
* [Project] Css: Add simple selectors unit tests
* [Project] Css: Add some c++ unit tests
* [Project] Css: Add some debug methods
* [Project] Css: Add some debug statements for the css parser
* [Project] Css: Add some logical skeleton for declarations parser
* [Project] Css: Add url/function tokens
* [Project] Css: Allow at rules parsing
* [Project] Css: Declarations parsing logic skeleton
* [Project] Css: Enable conditional css parsing support from the HTML parser
* [Project] Css: Finish generic lexer cases
* [Project] Css: Fix HSL conversion
* [Project] Css: Fix minus parsing
* [Project] Css: Fix parser consumers nesting
* [Project] Css: Fix parsing of the qualified rules
* [Project] Css: Fix rules merging
* [Project] Css: Further fixes to lexer
* [Project] Css: Further steps to parse css colors + rework
* [Project] Css: Further work on parser's methods
* [Project] Css: Implement backlog of css tokens
* [Project] Css: Implement numbers and ident parsers
* [Project] Css: Implement simple css selectors lookup
* [Project] Css: Implement styles merging
* [Project] Css: Make debug strings json like to simplify tests
* [Project] Css: Minor adjustments
* [Project] Css: More meat to the lexer
* [Project] Css: Move some of the tests to the doctest
* [Project] Css: Projected a parser
* [Project] Css: Properties attachment logic
* [Project] Css: Remove ragel from build targets (maybe keep for reference)
* [Project] Css: Rework css block structure
* [Project] Css: Rework flags of css properties
* [Project] Css: Rework tokens structure
* [Project] Css: Several fixes + tests
* [Project] Css: Simplify checks
* [Project] Css: Simplify debug code
* [Project] Css: Start css selectors parsing logic
* [Project] Css: Start semantic parsing for rules
* [Project] Css: Start stylesheet implementation
* [Project] Css: Tidy up lambdas
* [Project] Css: rework tokeniser
* [Project] Dmarc: Add dmarc report tool (WIP)
* [Project] Dmarc: Add munging configuration
* [Project] Dmarc: Add preliminary munging logic
* [Project] Dmarc: Fix header removal
* [Project] Dmarc: Fix munging logic
* [Project] Dmarc: Use full recipient address instead of a domain map
* [Project] Dmarc: Use zlists for dmarc reports
* [Project] Dmarc_report: Add message generation logic
* [Project] Dmarc_report: Add preliminary sending support
* [Project] Fix lua bindings
* [Project] Fix xml/sgml tags processing
* [Project] Handle new modification
* [Project] Html/CSS: Add transform from a CSS rule to html block
* [Project] Html/CSS: Link html and css styles
* [Project] Html/CSS: Switch styles parsing to css parser
* [Project] Html/Css: Fix some issues found
* [Project] Html/Css: Implement visibility rules for a block
* [Project] Html: Add more tests cases and fix some more corner issues
* [Project] Html: Add rows display type support
* [Project] Html: Allow decode entities function to normalise spaces + unit tests
* [Project] Html: Another rework of the tags structure
* [Project] Html: Another try to fix unbalanced cases
* [Project] Html: Fix crossing spans
* [Project] Html: Fix parent propagation
* [Project] Html: Further rework of the html parsing stuff
* [Project] Html: Implement logic for tags pairing
* [Project] Html: Implement rawtext state machine
* [Project] Html: Insert closing tags as well :(
* [Project] Html: More fixes
* [Project] Html: More fixes
* [Project] Html: More spaces logic fixes
* [Project] Html: One more attempt to write text content
* [Project] Html: Replace \0 in html content
* [Project] Html: Rework img/a tags handling
* [Project] Html: Rework propagation method
* [Project] Html: Rework tags placement
* [Project] Html: Rework transparency logic
* [Project] Html: Support 'hidden' attribute
* [Project] Html: Try another approach to append tags content
* [Project] Html: Try to deal with bad unknown tags properly
* [Project] Lua_aws: Add canonicalisation utility
* [Project] Lua_aws: Add function to produce AWS Authorisation header
* [Project] Lua_aws: Implement request signing
* [Project] Lua_mime: Add lua_mime.modify_headers routine
* [Project] Lua_task: Add modify_header method
* [Project] Lua_task: Allow to extract modified headers
* [Project] Make unescape code public for unit testing
* [Project] More fixes for closed tags
* [Project] More fixes to calculations
* [Project] Rework API for the modified headers
* [Project] Rework html visibility rule
* [Project] Skeleton of the css library
* [Project] Start headers modification API structure
* [Project] Start working on AWS Lua API
* [Project] Use lua_mime to modify headers
* [Project] Use modified headers on dkim signing
* [Project] Use string_view to constexpr variant unpacking
* [Rework] Add composites manager concept
* [Rework] Add tags definitions
* [Rework] Allow C code to be compiled with C++ compiler
* [Rework] Clickhouse: Store url flags
* [Rework] Composites: Rewrite the composites logic
* [Rework] Composites: Start rework of the composites framework
* [Rework] Dmarc: Move check policy function to the common utils
* [Rework] Dmarc: Rework reports keys structure
* [Rework] Further work to make html content private
* [Rework] Html/CSS: Remove css C bindings as they are useless now
* [Rework] Html/CSS: Rework Lua bindings
* [Rework] Html/Css: Start rework of the html blocks
* [Rework] Html: Add images processing logic
* [Rework] Html: Add traverse function
* [Rework] Html: Another steps to get rid of gnode
* [Rework] Html: Convert to variant
* [Rework] Html: Deal with the utf_content part
* [Rework] Html: Final rework part for the html processing code
* [Rework] Html: Fix Lua bindings
* [Rework] Html: Forgot to add the internal include
* [Rework] Html: Further html urls rework
* [Rework] Html: Further rework of the tags content extraction
* [Rework] Html: Make parameters as a vector again
* [Rework] Html: Move blocks part
* [Rework] Html: Move images processing stuff
* [Rework] Html: Rework lua bindings
* [Rework] Html: Start html text extraction rework
* [Rework] Html: Start refactoring of the html tags handling
* [Rework] Html: Start removing of GNode stuff
* [Rework] Html: Start rework of the html content structure
* [Rework] Lua_magic: Try to detect text parts with 8bit characters for non-utf8 encodings
* [Rework] Move HTML url functions and rework them
* [Rework] Move and adopt entities handling logic
* [Rework] Move common and rarely used dmarc code to the library
* [Rework] Move compression routines outside of rspamd_util library
* [Rework] Move entities/tags handling
* [Rework] Phishing: Split from redirectors usage
* [Rework] Redesign html blocks propagation logic
* [Rework] Remove tag name string
* [Rework] Rename phished url to a linked url
* [Rework] Reorganize dmarc plugin and remove unsupported reporting code
* [Rework] Reputation: Use more flexible types in get/set functions
* [Rework] Require proper C++ environment for Rspamd build
* [Rework] Rework extended urls output
* [Rework] Rework tags parsing machine
* [Rework] Slightly improve old regexp API
* [Rework] Start conversion of the redis pool code to c++
* [Rework] Try to resolve failed upstreams more agressively
* [Rework] Use C++ utf8 library with unit tests to trim whitespaces
* [Rework] Use C++ version for unicode normalisation
* [Rework] Use C++ version of the lua threads pool
* [Rules] Add raw addresses to MULTIPLE_FROM options
* [Rules] Another fix to HTTP_TO_HTTPS rule
* [Rules] Do not trigger HTML_SHORT_LINK_IMG on external images
* [Rules] Extend FORGED_X_MAILER
* [Rules] Extend OLD_X_MAILER
* [Rules] Fix CTYPE_MIXED_BOGUS for text attachments
* [Rules] Fix FPs for CTYPE_MIXED_BOGUS
* [Rules] Fix HTTP_TO_HTTPS rule
* [Rules] Fix HTTP_TO_HTTPS rule
* [Rules] Fix zerofont rule (partially)
* [Rules] Micro-optimize X_PHP_EVAL
* [Rules] Reduce default weight for R_MISSING_CHARSET

Signed-off-by: Vsevolod Stakhov <vsevolod@highsecure.ru>
3 years ago[Minor] Revert ignoring of the invisible urls by default
Vsevolod Stakhov [Wed, 18 Aug 2021 20:28:46 +0000 (21:28 +0100)]
[Minor] Revert ignoring of the invisible urls by default

3 years ago[Minor] Set invisible flag on invisible urls
Vsevolod Stakhov [Tue, 17 Aug 2021 11:19:37 +0000 (12:19 +0100)]
[Minor] Set invisible flag on invisible urls

3 years ago[Minor] Add `invisible` flag to url structure
Vsevolod Stakhov [Tue, 17 Aug 2021 11:14:10 +0000 (12:14 +0100)]
[Minor] Add `invisible` flag to url structure

3 years ago[Minor] Minor improvements
Vsevolod Stakhov [Mon, 16 Aug 2021 10:54:05 +0000 (11:54 +0100)]
[Minor] Minor improvements

3 years ago[Fix] Add a special logic for text part with no text extraction
Vsevolod Stakhov [Mon, 16 Aug 2021 10:19:40 +0000 (11:19 +0100)]
[Fix] Add a special logic for text part with no text extraction

3 years ago[Minor] Lua_magic: Fix detection for the parts with file names
Vsevolod Stakhov [Mon, 16 Aug 2021 10:15:11 +0000 (11:15 +0100)]
[Minor] Lua_magic: Fix detection for the parts with file names

3 years ago[Minor] Mime: Print mime part stuff for text parts
Vsevolod Stakhov [Mon, 16 Aug 2021 10:11:08 +0000 (11:11 +0100)]
[Minor] Mime: Print mime part stuff for text parts

3 years ago[Minor] Dmarc_report: Improve dates detection
Vsevolod Stakhov [Mon, 16 Aug 2021 09:59:16 +0000 (10:59 +0100)]
[Minor] Dmarc_report: Improve dates detection

3 years agoMerge pull request #3846 from yoshimo/August
Vsevolod Stakhov [Sat, 14 Aug 2021 20:36:44 +0000 (21:36 +0100)]
Merge pull request #3846 from yoshimo/August

[Minor] Add bz2, egg, alz,xz and lz as additional archive extensions

3 years ago[Minor] Lua_magic: Slight re tune
Vsevolod Stakhov [Fri, 13 Aug 2021 13:01:53 +0000 (14:01 +0100)]
[Minor] Lua_magic: Slight re tune

3 years ago[Minor] Lua_magic: Fix xml detection
Vsevolod Stakhov [Fri, 13 Aug 2021 13:00:35 +0000 (14:00 +0100)]
[Minor] Lua_magic: Fix xml detection

3 years ago[Minor] Lua_magic: Do not treat xml as html
Vsevolod Stakhov [Fri, 13 Aug 2021 12:47:08 +0000 (13:47 +0100)]
[Minor] Lua_magic: Do not treat xml as html

Suggested by: @citrin

3 years ago[Feature] Aws_s3: Allow to compress data stored
Vsevolod Stakhov [Fri, 13 Aug 2021 12:36:17 +0000 (13:36 +0100)]
[Feature] Aws_s3: Allow to compress data stored

3 years ago- add bz2, egg, alz,xz and lz as additional archive extensions 3846/head
Yoshimo [Fri, 13 Aug 2021 11:16:02 +0000 (13:16 +0200)]
- add bz2, egg, alz,xz and lz as additional archive extensions

3 years ago[Minor] Fix formatting
Vsevolod Stakhov [Thu, 12 Aug 2021 20:33:20 +0000 (21:33 +0100)]
[Minor] Fix formatting

3 years ago[Minor] Aws_s3: Allow to set action on failure
Vsevolod Stakhov [Thu, 12 Aug 2021 17:16:42 +0000 (18:16 +0100)]
[Minor] Aws_s3: Allow to set action on failure

3 years ago[Feature] Add preliminary exporter to AWS S3
Vsevolod Stakhov [Thu, 12 Aug 2021 16:07:48 +0000 (17:07 +0100)]
[Feature] Add preliminary exporter to AWS S3

3 years ago[Fix] Fix brain-damaged behaviour when http request has a custom Host header
Vsevolod Stakhov [Wed, 11 Aug 2021 16:37:11 +0000 (17:37 +0100)]
[Fix] Fix brain-damaged behaviour when http request has a custom Host header

3 years ago[Minor] Lua_aws: Fix several issues
Vsevolod Stakhov [Wed, 11 Aug 2021 15:21:25 +0000 (16:21 +0100)]
[Minor] Lua_aws: Fix several issues

3 years agoMerge pull request #3845 from defkev/pyzor
Vsevolod Stakhov [Wed, 11 Aug 2021 13:53:20 +0000 (14:53 +0100)]
Merge pull request #3845 from defkev/pyzor

[Minor] Init pyzor

3 years ago[Minor] Restore the old behaviour
Vsevolod Stakhov [Wed, 11 Aug 2021 10:37:23 +0000 (11:37 +0100)]
[Minor] Restore the old behaviour

3 years ago[Minor] Restore old hacks for flags propagation
Vsevolod Stakhov [Tue, 10 Aug 2021 19:06:58 +0000 (20:06 +0100)]
[Minor] Restore old hacks for flags propagation

3 years ago[Project] Lua_aws: Implement request signing
Vsevolod Stakhov [Tue, 10 Aug 2021 13:50:13 +0000 (14:50 +0100)]
[Project] Lua_aws: Implement request signing

3 years ago[Project] Lua_aws: Add function to produce AWS Authorisation header
Vsevolod Stakhov [Tue, 10 Aug 2021 13:29:39 +0000 (14:29 +0100)]
[Project] Lua_aws: Add function to produce AWS Authorisation header

3 years ago[Project] Lua_aws: Add canonicalisation utility
Vsevolod Stakhov [Tue, 10 Aug 2021 12:34:47 +0000 (13:34 +0100)]
[Project] Lua_aws: Add canonicalisation utility

3 years ago[Project] Start working on AWS Lua API
Vsevolod Stakhov [Tue, 10 Aug 2021 11:54:02 +0000 (12:54 +0100)]
[Project] Start working on AWS Lua API

3 years ago[Feature] Lua_cryptobox: Add keyed ssl hash functions via HMAC
Vsevolod Stakhov [Tue, 10 Aug 2021 10:18:33 +0000 (11:18 +0100)]
[Feature] Lua_cryptobox: Add keyed ssl hash functions via HMAC

3 years ago[Minor] Init pyzor 3845/head
defkev [Tue, 10 Aug 2021 09:59:07 +0000 (11:59 +0200)]
[Minor] Init pyzor

3 years ago[Minor] Dmarc_report: Try to escape from the coroutines curse
Vsevolod Stakhov [Mon, 9 Aug 2021 15:38:07 +0000 (16:38 +0100)]
[Minor] Dmarc_report: Try to escape from the coroutines curse

3 years ago[Minor] Fix misprint
Vsevolod Stakhov [Mon, 9 Aug 2021 15:31:39 +0000 (16:31 +0100)]
[Minor] Fix misprint

3 years ago[Minor] Dmarc: Store reports for esld and not for the specific domain
Vsevolod Stakhov [Mon, 9 Aug 2021 15:14:26 +0000 (16:14 +0100)]
[Minor] Dmarc: Store reports for esld and not for the specific domain

3 years ago[Minor] Dmarc_report: Fix return type
Vsevolod Stakhov [Mon, 9 Aug 2021 14:58:38 +0000 (15:58 +0100)]
[Minor] Dmarc_report: Fix return type

3 years ago[Minor] Do not go into utf8 checks on non utf8 leading characters
Vsevolod Stakhov [Mon, 9 Aug 2021 13:09:00 +0000 (14:09 +0100)]
[Minor] Do not go into utf8 checks on non utf8 leading characters

3 years agoMerge pull request #3844 from citrin/public_suffix_list
Vsevolod Stakhov [Mon, 9 Aug 2021 12:10:55 +0000 (13:10 +0100)]
Merge pull request #3844 from citrin/public_suffix_list

[Minor] Update public suffix list

3 years ago[Minor] Update public suffix list 3844/head
Anton Yuzhaninov [Mon, 9 Aug 2021 11:24:37 +0000 (12:24 +0100)]
[Minor] Update public suffix list

3 years ago[Minor] Fix spaces state in newlines removal SM
Vsevolod Stakhov [Mon, 9 Aug 2021 11:09:46 +0000 (12:09 +0100)]
[Minor] Fix spaces state in newlines removal SM

3 years ago[Minor] Dmarc_report: Fix bcc_addrs usage
Vsevolod Stakhov [Mon, 9 Aug 2021 09:35:50 +0000 (10:35 +0100)]
[Minor] Dmarc_report: Fix bcc_addrs usage

3 years ago[Minor] Update version to 3.0 due to amount of changes
Vsevolod Stakhov [Sun, 8 Aug 2021 10:10:51 +0000 (11:10 +0100)]
[Minor] Update version to 3.0 due to amount of changes

3 years agoMerge pull request #3840 from foron/patch-1
Vsevolod Stakhov [Sat, 7 Aug 2021 19:09:59 +0000 (20:09 +0100)]
Merge pull request #3840 from foron/patch-1

Escape redis+selector

3 years ago[Minor] Remove bogus likely
Vsevolod Stakhov [Fri, 6 Aug 2021 17:48:06 +0000 (18:48 +0100)]
[Minor] Remove bogus likely

3 years ago[Minor] Mx_check: Fix issue with multiple IPs per MX name
Vsevolod Stakhov [Fri, 6 Aug 2021 15:37:30 +0000 (16:37 +0100)]
[Minor] Mx_check: Fix issue with multiple IPs per MX name

Issue: #3839

3 years ago[Minor] Add lua_util.shuffle
Vsevolod Stakhov [Fri, 6 Aug 2021 15:35:49 +0000 (16:35 +0100)]
[Minor] Add lua_util.shuffle

3 years agoEscape redis+selector 3840/head
foron [Fri, 6 Aug 2021 14:44:06 +0000 (16:44 +0200)]
Escape redis+selector

I believe it would be better to have the "redis+selector" pattern escaped as "redis%+selector". This would make it easier for string.find to match the documented map string.

3 years ago[Minor] Do not leak memory
Vsevolod Stakhov [Fri, 6 Aug 2021 14:22:07 +0000 (15:22 +0100)]
[Minor] Do not leak memory

3 years ago[Minor] Create a standard io loop in rspamadm
Vsevolod Stakhov [Fri, 6 Aug 2021 14:17:31 +0000 (15:17 +0100)]
[Minor] Create a standard io loop in rspamadm

3 years ago[Minor] Improve readability
Vsevolod Stakhov [Fri, 6 Aug 2021 12:35:50 +0000 (13:35 +0100)]
[Minor] Improve readability

Suggested by: @citrin

3 years ago[Minor] One more fix for checking displayed urls
Vsevolod Stakhov [Fri, 6 Aug 2021 12:24:54 +0000 (13:24 +0100)]
[Minor] One more fix for checking displayed urls

3 years ago[Minor] Fix the mess with caseless comparison functions
Vsevolod Stakhov [Fri, 6 Aug 2021 11:52:06 +0000 (12:52 +0100)]
[Minor] Fix the mess with caseless comparison functions

3 years ago[Feature] Allow to save and show attachment name when inserting AV scan results
Vsevolod Stakhov [Fri, 6 Aug 2021 11:42:06 +0000 (12:42 +0100)]
[Feature] Allow to save and show attachment name when inserting AV scan results

3 years ago[Minor] Dmarc_report: fix report domain check for 3rd party domains
Vsevolod Stakhov [Thu, 5 Aug 2021 20:05:22 +0000 (21:05 +0100)]
[Minor] Dmarc_report: fix report domain check for 3rd party domains

3 years agoMerge pull request #3838 from citrin/x-php-eval
Vsevolod Stakhov [Thu, 5 Aug 2021 15:58:23 +0000 (16:58 +0100)]
Merge pull request #3838 from citrin/x-php-eval

[Rules] Micro-optimize X_PHP_EVAL

3 years ago[Rules] Micro-optimize X_PHP_EVAL 3838/head
Anton Yuzhaninov [Thu, 5 Aug 2021 14:54:20 +0000 (15:54 +0100)]
[Rules] Micro-optimize X_PHP_EVAL

Remove /i flag from regexp string "eval()'d code" is always in
lower case. While here use long string format for readability.

3 years ago[Feature] Dmarc_report: allow sending reports in batches
Vsevolod Stakhov [Thu, 5 Aug 2021 14:53:00 +0000 (15:53 +0100)]
[Feature] Dmarc_report: allow sending reports in batches

3 years ago[Minor] Remove redundant cycle
Vsevolod Stakhov [Thu, 5 Aug 2021 11:24:38 +0000 (12:24 +0100)]
[Minor] Remove redundant cycle

3 years ago[Minor] Oops, fix misprint
Vsevolod Stakhov [Thu, 5 Aug 2021 11:22:20 +0000 (12:22 +0100)]
[Minor] Oops, fix misprint

3 years ago[Fix] Fix phishing flag set
Vsevolod Stakhov [Thu, 5 Aug 2021 11:21:12 +0000 (12:21 +0100)]
[Fix] Fix phishing flag set

3 years ago[Project] Dmarc_report: Add preliminary sending support
Vsevolod Stakhov [Wed, 4 Aug 2021 14:57:27 +0000 (15:57 +0100)]
[Project] Dmarc_report: Add preliminary sending support

3 years ago[Project] Dmarc_report: Add message generation logic
Vsevolod Stakhov [Wed, 4 Aug 2021 14:26:00 +0000 (15:26 +0100)]
[Project] Dmarc_report: Add message generation logic

3 years ago[Project] Dmarc: Add dmarc report tool (WIP)
Vsevolod Stakhov [Wed, 4 Aug 2021 13:45:08 +0000 (14:45 +0100)]
[Project] Dmarc: Add dmarc report tool (WIP)

3 years ago[Minor] Allow to enable specific module debug
Vsevolod Stakhov [Wed, 4 Aug 2021 13:29:35 +0000 (14:29 +0100)]
[Minor] Allow to enable specific module debug

3 years ago[Minor] Store raw dmarc elts
Vsevolod Stakhov [Wed, 4 Aug 2021 13:15:38 +0000 (14:15 +0100)]
[Minor] Store raw dmarc elts

3 years ago[Minor] Url_redirector: Fix zset trimming
Vsevolod Stakhov [Tue, 3 Aug 2021 17:37:37 +0000 (18:37 +0100)]
[Minor] Url_redirector: Fix zset trimming

3 years ago[Rework] Dmarc: Move check policy function to the common utils
Vsevolod Stakhov [Tue, 3 Aug 2021 13:34:22 +0000 (14:34 +0100)]
[Rework] Dmarc: Move check policy function to the common utils

3 years ago[Minor] Lua: Add rspamd_util.strequal_caseless_utf8 routine
Vsevolod Stakhov [Mon, 2 Aug 2021 20:32:05 +0000 (21:32 +0100)]
[Minor] Lua: Add rspamd_util.strequal_caseless_utf8 routine

3 years ago[Minor] Allow to compare utf8 strings of different length
Vsevolod Stakhov [Mon, 2 Aug 2021 20:24:14 +0000 (21:24 +0100)]
[Minor] Allow to compare utf8 strings of different length

3 years ago[Feature] Add rspamd_utf8_strcmp utility
Vsevolod Stakhov [Mon, 2 Aug 2021 16:00:14 +0000 (17:00 +0100)]
[Feature] Add rspamd_utf8_strcmp utility

3 years ago[Rework] Move common and rarely used dmarc code to the library
Vsevolod Stakhov [Mon, 2 Aug 2021 11:09:10 +0000 (12:09 +0100)]
[Rework] Move common and rarely used dmarc code to the library

3 years ago[Minor] Refactor module name variable
Vsevolod Stakhov [Sat, 31 Jul 2021 20:25:21 +0000 (21:25 +0100)]
[Minor] Refactor module name variable

3 years ago[Minor] Support commonly mistaken spf ipv4/ipv6 elements
Vsevolod Stakhov [Fri, 30 Jul 2021 15:34:14 +0000 (16:34 +0100)]
[Minor] Support commonly mistaken spf ipv4/ipv6 elements

3 years ago[Rework] Dmarc: Rework reports keys structure
Vsevolod Stakhov [Fri, 30 Jul 2021 15:21:33 +0000 (16:21 +0100)]
[Rework] Dmarc: Rework reports keys structure

3 years ago[Minor] Dmarc: Relax grammar to allow elements with no semicolons
Vsevolod Stakhov [Fri, 30 Jul 2021 14:26:16 +0000 (15:26 +0100)]
[Minor] Dmarc: Relax grammar to allow elements with no semicolons

3 years ago[Project] Dmarc: Use zlists for dmarc reports
Vsevolod Stakhov [Fri, 30 Jul 2021 14:16:42 +0000 (15:16 +0100)]
[Project] Dmarc: Use zlists for dmarc reports

3 years ago[Minor] Adjust unit test
Vsevolod Stakhov [Fri, 30 Jul 2021 12:52:44 +0000 (13:52 +0100)]
[Minor] Adjust unit test

3 years agoRevert "[Minor] Implement backslashes replacement while we normalise http paths"
Vsevolod Stakhov [Fri, 30 Jul 2021 12:52:08 +0000 (13:52 +0100)]
Revert "[Minor] Implement backslashes replacement while we normalise http paths"

This reverts commit 05d1951b5cfb9b72378eb3c1bdfdaa025b355789.

3 years ago[Minor] Implement backslashes replacement while we normalise http paths
Vsevolod Stakhov [Fri, 30 Jul 2021 10:25:40 +0000 (11:25 +0100)]
[Minor] Implement backslashes replacement while we normalise http paths

3 years ago[Minor] Try to deal with urls with backslashes in path
Vsevolod Stakhov [Fri, 30 Jul 2021 10:20:49 +0000 (11:20 +0100)]
[Minor] Try to deal with urls with backslashes in path

3 years agoMerge pull request #3835 from a16bitsysop/run-test
Vsevolod Stakhov [Thu, 29 Jul 2021 22:04:01 +0000 (23:04 +0100)]
Merge pull request #3835 from a16bitsysop/run-test

[Minor] CMakeLists.txt: add LUA_PATH for run-test

3 years ago[Minor] CMakeLists.txt: add LUA_PATH for run-test 3835/head
Duncan Bellamy [Wed, 28 Jul 2021 21:05:08 +0000 (22:05 +0100)]
[Minor] CMakeLists.txt: add LUA_PATH for run-test
* fixes #3826

3 years ago[Minor] Fix else branch
Vsevolod Stakhov [Thu, 29 Jul 2021 20:20:26 +0000 (21:20 +0100)]
[Minor] Fix else branch

3 years ago[Minor] More tags output fixes
Vsevolod Stakhov [Thu, 29 Jul 2021 16:53:01 +0000 (17:53 +0100)]
[Minor] More tags output fixes

3 years ago[Minor] Further fixes to the html tags content methods
Vsevolod Stakhov [Thu, 29 Jul 2021 16:43:49 +0000 (17:43 +0100)]
[Minor] Further fixes to the html tags content methods

3 years ago[Minor] Fix content length calculations
Vsevolod Stakhov [Thu, 29 Jul 2021 16:35:00 +0000 (17:35 +0100)]
[Minor] Fix content length calculations

3 years ago[Minor] Print all parts when printing html structure
Vsevolod Stakhov [Thu, 29 Jul 2021 16:34:47 +0000 (17:34 +0100)]
[Minor] Print all parts when printing html structure

3 years ago[Rework] Reorganize dmarc plugin and remove unsupported reporting code
Vsevolod Stakhov [Thu, 29 Jul 2021 14:54:25 +0000 (15:54 +0100)]
[Rework] Reorganize dmarc plugin and remove unsupported reporting code

3 years ago[Feature] Add lua_maps.fill_config_maps function
Vsevolod Stakhov [Thu, 29 Jul 2021 14:54:06 +0000 (15:54 +0100)]
[Feature] Add lua_maps.fill_config_maps function

3 years ago[Minor] Improve html tags structure display
Vsevolod Stakhov [Thu, 29 Jul 2021 12:02:41 +0000 (13:02 +0100)]
[Minor] Improve html tags structure display

3 years ago[Minor] Fix transparency parsing
Vsevolod Stakhov [Thu, 29 Jul 2021 11:59:22 +0000 (12:59 +0100)]
[Minor] Fix transparency parsing

3 years ago[Minor] Some fixes in content extraction for html tags
Vsevolod Stakhov [Thu, 29 Jul 2021 09:32:58 +0000 (10:32 +0100)]
[Minor] Some fixes in content extraction for html tags

3 years ago[Minor] Fix check for image urls
Vsevolod Stakhov [Wed, 28 Jul 2021 13:57:15 +0000 (14:57 +0100)]
[Minor] Fix check for image urls

3 years agoMerge pull request #3832 from citrin/asn-plugin-fix
Vsevolod Stakhov [Wed, 28 Jul 2021 20:12:35 +0000 (21:12 +0100)]
Merge pull request #3832 from citrin/asn-plugin-fix

[Fix] ASN: fix _FAIL symbol for when main symbol is disabled

3 years ago[Fix] ASN: fix _FAIL symbol for when main symbol is disabled 3832/head
Anton Yuzhaninov [Wed, 28 Jul 2021 18:06:20 +0000 (19:06 +0100)]
[Fix] ASN: fix _FAIL symbol for when main symbol is disabled

Fix error:
lua_dns_resolver_callback: call to dns callback failed: /usr/share/rspamd/plugins/asn.lua:74: attempt to concatenate field 'symbol' (a boolean value); trace: [1]:{/usr/share/rspamd/plugins/asn.lua:74 - <unknown> [Lua]};

Which happen when the main asn symbol is disabled in asn.conf using
symbol = false;

While here add nostat flag for ASN symbols (we cannot use them as
spam/ham signs).

3 years ago[Minor] Fix rspamd_text in selectors combinators
Vsevolod Stakhov [Wed, 28 Jul 2021 11:00:05 +0000 (12:00 +0100)]
[Minor] Fix rspamd_text in selectors combinators