]> source.dussan.org Git - rspamd.git/log
rspamd.git
3 years ago[Minor] Docker: use apt-transport-https 3585/head
J0WI [Fri, 25 Dec 2020 15:31:32 +0000 (15:31 +0000)]
[Minor] Docker: use apt-transport-https

3 years ago[Minor] Optimize the common case + fix signed char
Vsevolod Stakhov [Fri, 25 Dec 2020 14:01:41 +0000 (14:01 +0000)]
[Minor] Optimize the common case + fix signed char

3 years ago[Minor] Escape log lines in logger
Vsevolod Stakhov [Fri, 25 Dec 2020 13:47:47 +0000 (13:47 +0000)]
[Minor] Escape log lines in logger

3 years agoMerge pull request #3583 from rpv-tomsk/master
Vsevolod Stakhov [Thu, 24 Dec 2020 14:02:28 +0000 (14:02 +0000)]
Merge pull request #3583 from rpv-tomsk/master

Fix some typos in code comments

3 years ago[Minor] Add fallback
Vsevolod Stakhov [Wed, 23 Dec 2020 18:27:08 +0000 (18:27 +0000)]
[Minor] Add fallback

3 years ago[Feature] Improve charset detection logic
Vsevolod Stakhov [Wed, 23 Dec 2020 18:24:40 +0000 (18:24 +0000)]
[Feature] Improve charset detection logic

3 years ago[Fix] Return MimeCharset as we work with emails...
Vsevolod Stakhov [Wed, 23 Dec 2020 18:24:18 +0000 (18:24 +0000)]
[Fix] Return MimeCharset as we work with emails...

3 years ago[Minor] Skip double utf8 checks
Vsevolod Stakhov [Wed, 23 Dec 2020 17:48:34 +0000 (17:48 +0000)]
[Minor] Skip double utf8 checks

3 years ago[Minor] Fix lifetime
Vsevolod Stakhov [Wed, 23 Dec 2020 15:28:32 +0000 (15:28 +0000)]
[Minor] Fix lifetime

This is a reason why I hate C

3 years agoFix typos in code comments 3583/head
Pavel Rochnyack [Wed, 23 Dec 2020 03:45:33 +0000 (10:45 +0700)]
Fix typos in code comments

3 years ago[Minor] Fix spf record dump
Vsevolod Stakhov [Tue, 22 Dec 2020 21:05:11 +0000 (21:05 +0000)]
[Minor] Fix spf record dump

3 years ago[Minor] Add a path test
Vsevolod Stakhov [Tue, 22 Dec 2020 17:23:59 +0000 (17:23 +0000)]
[Minor] Add a path test

3 years ago[CritFix] Fix controller paths normalisation
Vsevolod Stakhov [Tue, 22 Dec 2020 17:23:11 +0000 (17:23 +0000)]
[CritFix] Fix controller paths normalisation

It fixes errors like 'rspamd_controller_handle_lua_plugin: plugin handler
/plugins/selectors/list_extractorstors has not been found'

3 years ago[Minor] Fix missing comma
Vsevolod Stakhov [Tue, 22 Dec 2020 16:02:36 +0000 (16:02 +0000)]
[Minor] Fix missing comma

3 years agoMerge pull request #3582 from citrin/x-mailer-rules
Vsevolod Stakhov [Tue, 22 Dec 2020 15:52:20 +0000 (15:52 +0000)]
Merge pull request #3582 from citrin/x-mailer-rules

[Rules] X-Mailer rules update

3 years ago[Minor] Lua_task: Simplify has_header method
Vsevolod Stakhov [Tue, 22 Dec 2020 15:50:47 +0000 (15:50 +0000)]
[Minor] Lua_task: Simplify has_header method

3 years agoMerge pull request #3581 from citrin/has-header
Vsevolod Stakhov [Tue, 22 Dec 2020 15:47:49 +0000 (15:47 +0000)]
Merge pull request #3581 from citrin/has-header

[Minor] Use task:has_header instead of task:get_header

3 years ago[Minor] Use less strict rules for pkcs7 detection
Vsevolod Stakhov [Tue, 22 Dec 2020 15:46:27 +0000 (15:46 +0000)]
[Minor] Use less strict rules for pkcs7 detection

Issue: #3568

3 years ago[Minor] Add rule for forged X-Mailer: Internet Mail Service 3582/head
Anton Yuzhaninov [Tue, 22 Dec 2020 13:40:40 +0000 (13:40 +0000)]
[Minor] Add rule for forged X-Mailer: Internet Mail Service

3 years ago[Minor] Add {header} for header regexps
Anton Yuzhaninov [Tue, 22 Dec 2020 13:23:48 +0000 (13:23 +0000)]
[Minor] Add {header} for header regexps

3 years ago[Minor] Use task:has_header instead of task:get_header 3581/head
Anton Yuzhaninov [Tue, 22 Dec 2020 13:05:58 +0000 (13:05 +0000)]
[Minor] Use task:has_header instead of task:get_header

Use task:has_header() to check if header is exists.

3 years agoMerge pull request #3579 from fatalbanana/rbl_logging
Vsevolod Stakhov [Tue, 22 Dec 2020 10:33:34 +0000 (10:33 +0000)]
Merge pull request #3579 from fatalbanana/rbl_logging

[Minor] rbl: move logging to debug level

3 years agoMerge pull request #3580 from citrin/x-mailer-rules
Vsevolod Stakhov [Tue, 22 Dec 2020 10:33:15 +0000 (10:33 +0000)]
Merge pull request #3580 from citrin/x-mailer-rules

[Rules] X-Mailer header rules

3 years ago[Minor] Remove R_SAJDING and SUSPICIOUS_OPERA_10W_MSGID 3580/head
Anton Yuzhaninov [Mon, 21 Dec 2020 20:05:45 +0000 (20:05 +0000)]
[Minor] Remove R_SAJDING and SUSPICIOUS_OPERA_10W_MSGID

These rules are no longer relevant.

3 years ago[Minor] Add FORGED_X_MAILER rule for X-Mailer used by spamboots
Anton Yuzhaninov [Mon, 21 Dec 2020 18:40:41 +0000 (18:40 +0000)]
[Minor] Add FORGED_X_MAILER rule for X-Mailer used by spamboots

3 years ago[Feature] Support SMIME signed messages container
Vsevolod Stakhov [Mon, 21 Dec 2020 17:16:50 +0000 (17:16 +0000)]
[Feature] Support SMIME signed messages container

Issue: #3568

3 years ago[Minor] Add pkcs7 content type flag
Vsevolod Stakhov [Mon, 21 Dec 2020 16:17:42 +0000 (16:17 +0000)]
[Minor] Add pkcs7 content type flag

3 years ago[Fix] Fix flag shift
Vsevolod Stakhov [Mon, 21 Dec 2020 16:16:16 +0000 (16:16 +0000)]
[Fix] Fix flag shift

3 years ago[Minor] rbl: move logging to debug level 3579/head
Andrew Lewis [Mon, 21 Dec 2020 07:07:53 +0000 (09:07 +0200)]
[Minor] rbl: move logging to debug level

3 years agoUpdate README.md
Vsevolod Stakhov [Sun, 20 Dec 2020 21:18:01 +0000 (21:18 +0000)]
Update README.md

3 years agoMerge pull request #3577 from fatalbanana/http_headers_plugin
Vsevolod Stakhov [Sat, 19 Dec 2020 21:03:57 +0000 (21:03 +0000)]
Merge pull request #3577 from fatalbanana/http_headers_plugin

[Minor] Move http_headers to plugin

3 years ago[Feature] Vadesecure: Implement settings_outbound feature as recommended by Vade
Vsevolod Stakhov [Fri, 18 Dec 2020 16:12:30 +0000 (16:12 +0000)]
[Feature] Vadesecure: Implement settings_outbound feature as recommended by Vade

3 years ago[Feature] Neural: Move PCA learning to a subprocess
Vsevolod Stakhov [Fri, 18 Dec 2020 16:06:53 +0000 (16:06 +0000)]
[Feature] Neural: Move PCA learning to a subprocess

3 years ago[Minor] Support both text and string on return value
Vsevolod Stakhov [Fri, 18 Dec 2020 16:06:34 +0000 (16:06 +0000)]
[Minor] Support both text and string on return value

3 years ago[Minor] Improve debug
Vsevolod Stakhov [Fri, 18 Dec 2020 16:06:21 +0000 (16:06 +0000)]
[Minor] Improve debug

3 years ago[Fix] Fix pushing ucl strings with \0 inside
Vsevolod Stakhov [Fri, 18 Dec 2020 16:05:45 +0000 (16:05 +0000)]
[Fix] Fix pushing ucl strings with \0 inside

3 years ago[Minor] Relax `parse_text` input arguments to allow both string and text
Vsevolod Stakhov [Fri, 18 Dec 2020 14:44:46 +0000 (14:44 +0000)]
[Minor] Relax `parse_text` input arguments to allow both string and text

3 years agoMerge pull request #3578 from fatalbanana/nn_pool_name
Vsevolod Stakhov [Thu, 17 Dec 2020 13:44:52 +0000 (13:44 +0000)]
Merge pull request #3578 from fatalbanana/nn_pool_name

[Minor] neural: use prefix in pool variable names

3 years ago[Minor] neural: use prefix in pool variable names 3578/head
Andrew Lewis [Thu, 17 Dec 2020 13:40:09 +0000 (15:40 +0200)]
[Minor] neural: use prefix in pool variable names

 - Also deduplicate some duplicated stuff

3 years agoMerge pull request #3570 from fatalbanana/nn_training
Vsevolod Stakhov [Thu, 17 Dec 2020 13:15:02 +0000 (13:15 +0000)]
Merge pull request #3570 from fatalbanana/nn_training

[Feature] Add controller endpoint for training neural

3 years ago[Minor] Move http_headers to plugin 3577/head
Andrew Lewis [Thu, 17 Dec 2020 10:58:39 +0000 (12:58 +0200)]
[Minor] Move http_headers to plugin

 - Support multiple DKIM results
 - Insert DKIM trace symbols
 - Always disable callbacks if we got a header
 - Make the plugin default-disabled
 - Disable callbacks instead of virtual symbols

3 years ago[Feature] Add controller endpoint for training neural 3570/head
Andrew Lewis [Thu, 17 Dec 2020 09:28:09 +0000 (11:28 +0200)]
[Feature] Add controller endpoint for training neural

 - Move neural functions to library
 - Parameterise spawn_train
 - neural plugin: Fix store_pool_only when autotrain is true
 - neural plugin: Use cache_set instead of mempool
 - Add test

3 years agoMerge pull request #3576 from citrin/rules-update
Vsevolod Stakhov [Tue, 15 Dec 2020 10:25:40 +0000 (10:25 +0000)]
Merge pull request #3576 from citrin/rules-update

[Minor] Remove AOL_SPAM rule

3 years ago[Minor] Update regexp for R_UNDISC_RCPT 3576/head
Anton Yuzhaninov [Mon, 14 Dec 2020 19:31:22 +0000 (19:31 +0000)]
[Minor] Update regexp for R_UNDISC_RCPT

Match more variations for undisclosed-recipients, but don't match when
it is used as a lame real name.

3 years ago[Minor] Composites: Insert symbol to the selected result structure
Vsevolod Stakhov [Mon, 14 Dec 2020 17:08:30 +0000 (17:08 +0000)]
[Minor] Composites: Insert symbol to the selected result structure

3 years ago[Minor] Add rule for old MUA version
Anton Yuzhaninov [Sun, 13 Dec 2020 21:10:05 +0000 (21:10 +0000)]
[Minor] Add rule for old MUA version

These versions are rarely used by real uses nowadays, but can be found
in spam.

3 years ago[Minor] Composites: Another try to deal properly with shadow results
Vsevolod Stakhov [Mon, 14 Dec 2020 12:32:12 +0000 (12:32 +0000)]
[Minor] Composites: Another try to deal properly with shadow results

3 years ago[Minor] Allow to get raw body of non processed messages
Vsevolod Stakhov [Mon, 14 Dec 2020 10:18:32 +0000 (10:18 +0000)]
[Minor] Allow to get raw body of non processed messages

3 years ago[Minor] Remove FAKE_REPLY_C and move FAKE_REPLY rule to regexp module
Anton Yuzhaninov [Sat, 12 Dec 2020 19:30:46 +0000 (19:30 +0000)]
[Minor] Remove FAKE_REPLY_C and move FAKE_REPLY rule to regexp module

FAKE_REPLY_C rule no longer works because MUA it used are no longer used
(and ones which are used changed headers they add).  In theory one can
test all popular modern MUA and see which add only References, which
only In-Reply-To and which add both headers.  But it will be a lot of
work to maintain such rule up to date.  It still has a small number of
hits, but mostly because some spammers use old X-Mailer headers.  This
should be addressed separately.

While here re-create FAKE_REPLY as a regexp module rule - this way it
should be more efficient.

3 years ago[Minor] Remove AOL_SPAM rule
Anton Yuzhaninov [Sat, 12 Dec 2020 18:17:39 +0000 (18:17 +0000)]
[Minor] Remove AOL_SPAM rule

Mail from AOL not longer have X-AOL-Global-Disposition header and this
rule no longer works.  AOL messages now have X-YMail-OSG header (like
yahoo.com), but it is encrypted/obfuscated and cannot be used here.

3 years ago[Minor] ...
Vsevolod Stakhov [Fri, 11 Dec 2020 11:53:51 +0000 (11:53 +0000)]
[Minor] ...

3 years ago[Minor] Format string...
Vsevolod Stakhov [Fri, 11 Dec 2020 11:49:29 +0000 (11:49 +0000)]
[Minor] Format string...

3 years ago[Minor] Add more debug for shadow result
Vsevolod Stakhov [Fri, 11 Dec 2020 11:41:33 +0000 (11:41 +0000)]
[Minor] Add more debug for shadow result

3 years agoMerge pull request #3575 from a16bitsysop/alpine-lua
Vsevolod Stakhov [Thu, 10 Dec 2020 19:19:12 +0000 (19:19 +0000)]
Merge pull request #3575 from a16bitsysop/alpine-lua

[Minor] Add LIB_SUFFIXES needed to detect lua on alpine linux

3 years ago[Minor] Add LIB_SUFFIXES needed to detect lua on alpine linux 3575/head
Duncan Bellamy [Thu, 10 Dec 2020 19:09:28 +0000 (19:09 +0000)]
[Minor] Add LIB_SUFFIXES needed to detect lua on alpine linux

3 years ago[Minor] Reputation: More safe default
Vsevolod Stakhov [Thu, 10 Dec 2020 11:55:30 +0000 (11:55 +0000)]
[Minor] Reputation: More safe default

3 years ago[Feature] Reputation: Allow to specify ip masks
Vsevolod Stakhov [Thu, 10 Dec 2020 11:52:53 +0000 (11:52 +0000)]
[Feature] Reputation: Allow to specify ip masks

3 years ago[Minor] Spamassassin: Try to fix [if-unset] stuff
Vsevolod Stakhov [Wed, 9 Dec 2020 20:31:23 +0000 (20:31 +0000)]
[Minor] Spamassassin: Try to fix [if-unset] stuff

3 years ago[Minor] Fix condition
Vsevolod Stakhov [Wed, 9 Dec 2020 17:57:14 +0000 (17:57 +0000)]
[Minor] Fix condition

3 years ago[Minor] Spamassassin: Fix shadow results caching
Vsevolod Stakhov [Wed, 9 Dec 2020 17:48:55 +0000 (17:48 +0000)]
[Minor] Spamassassin: Fix shadow results caching

3 years ago[Minor] Fix schema validation
Vsevolod Stakhov [Wed, 9 Dec 2020 17:39:23 +0000 (17:39 +0000)]
[Minor] Fix schema validation

3 years ago[Rework] Milter_headers: improve extended_headers_rcpt support
Vsevolod Stakhov [Wed, 9 Dec 2020 17:32:54 +0000 (17:32 +0000)]
[Rework] Milter_headers: improve extended_headers_rcpt support

3 years agoMerge pull request #3574 from fatalbanana/selectors_cache
Vsevolod Stakhov [Wed, 9 Dec 2020 15:25:11 +0000 (15:25 +0000)]
Merge pull request #3574 from fatalbanana/selectors_cache

[Minor] Selectors: support extracting task cache variables

3 years ago[Minor] Selectors: support extracting task cache variables 3574/head
Andrew Lewis [Wed, 9 Dec 2020 14:46:31 +0000 (16:46 +0200)]
[Minor] Selectors: support extracting task cache variables

3 years ago[Minor] Do not use static buffers
Vsevolod Stakhov [Wed, 9 Dec 2020 13:39:41 +0000 (13:39 +0000)]
[Minor] Do not use static buffers

3 years agoMerge pull request #3572 from fatalbanana/lua_idn_url_unit
Vsevolod Stakhov [Wed, 9 Dec 2020 09:15:41 +0000 (09:15 +0000)]
Merge pull request #3572 from fatalbanana/lua_idn_url_unit

[Test] Add some unit tests for punycode conversion

3 years ago[Test] Add some unit tests for punycode conversion 3572/head
Andrew Lewis [Wed, 9 Dec 2020 09:11:54 +0000 (11:11 +0200)]
[Test] Add some unit tests for punycode conversion

3 years ago[Minor] One more fix
Vsevolod Stakhov [Tue, 8 Dec 2020 16:47:06 +0000 (16:47 +0000)]
[Minor] One more fix

3 years ago[Fix] Restore simple dkim canonicalisation mode
Vsevolod Stakhov [Tue, 8 Dec 2020 16:28:49 +0000 (16:28 +0000)]
[Fix] Restore simple dkim canonicalisation mode

3 years ago[Minor] Allow to skip composites second pass
Vsevolod Stakhov [Tue, 8 Dec 2020 15:09:08 +0000 (15:09 +0000)]
[Minor] Allow to skip composites second pass

3 years ago[Minor] Store composite status in the composite atom
Vsevolod Stakhov [Tue, 8 Dec 2020 14:47:53 +0000 (14:47 +0000)]
[Minor] Store composite status in the composite atom

3 years ago[Minor] Improve composites processing strncmp -> memcmp
Vsevolod Stakhov [Tue, 8 Dec 2020 13:53:29 +0000 (13:53 +0000)]
[Minor] Improve composites processing strncmp -> memcmp

3 years ago[Fix] Fix canonicalisation when l= tag is presented
Vsevolod Stakhov [Mon, 7 Dec 2020 16:56:28 +0000 (16:56 +0000)]
[Fix] Fix canonicalisation when l= tag is presented

Issue: #3566

3 years ago[Minor] Add some missing types
Vsevolod Stakhov [Fri, 4 Dec 2020 19:19:48 +0000 (19:19 +0000)]
[Minor] Add some missing types

3 years ago[Minor] Lua_magic: Use larger span to look for text patterns
Vsevolod Stakhov [Thu, 3 Dec 2020 11:51:03 +0000 (11:51 +0000)]
[Minor] Lua_magic: Use larger span to look for text patterns

3 years ago[Minor] Fix text operation
Vsevolod Stakhov [Wed, 2 Dec 2020 08:34:58 +0000 (08:34 +0000)]
[Minor] Fix text operation

3 years ago[Minor] Fix --from argument
Vsevolod Stakhov [Tue, 1 Dec 2020 14:43:38 +0000 (14:43 +0000)]
[Minor] Fix --from argument

3 years ago[Minor] Lua_content: Fix a corner case when unpacking compound objects
Vsevolod Stakhov [Tue, 1 Dec 2020 14:37:44 +0000 (14:37 +0000)]
[Minor] Lua_content: Fix a corner case when unpacking compound objects

3 years agoMerge pull request #3564 from fatalbanana/clickhouse_nn2
Vsevolod Stakhov [Mon, 30 Nov 2020 16:53:16 +0000 (16:53 +0000)]
Merge pull request #3564 from fatalbanana/clickhouse_nn2

[Minor] rspamadm clickhouse: batching; query parameters

3 years ago[Minor] rspamadm clickhouse: batching; query parameters 3564/head
Andrew Lewis [Mon, 30 Nov 2020 15:15:39 +0000 (17:15 +0200)]
[Minor] rspamadm clickhouse: batching; query parameters

3 years ago[Rework] Clickhouse: Improve performance
Vsevolod Stakhov [Mon, 30 Nov 2020 14:27:39 +0000 (14:27 +0000)]
[Rework] Clickhouse: Improve performance

3 years ago[Feature] Lua_clickhouse: Add optional row callback for large selections
Vsevolod Stakhov [Mon, 30 Nov 2020 14:12:58 +0000 (14:12 +0000)]
[Feature] Lua_clickhouse: Add optional row callback for large selections

3 years ago[Minor] Lua_clickhouse: Improve parsing performance
Vsevolod Stakhov [Mon, 30 Nov 2020 13:33:32 +0000 (13:33 +0000)]
[Minor] Lua_clickhouse: Improve parsing performance

3 years ago[Minor] Allow to ask password from terminal
Vsevolod Stakhov [Mon, 30 Nov 2020 11:50:27 +0000 (11:50 +0000)]
[Minor] Allow to ask password from terminal

3 years agoMerge pull request #3561 from fatalbanana/multimap_disable_multisymbol
Vsevolod Stakhov [Sat, 28 Nov 2020 22:31:52 +0000 (22:31 +0000)]
Merge pull request #3561 from fatalbanana/multimap_disable_multisymbol

[Feature] Multimap: support adding map values as extra options

4 years ago[Minor] Move urls find in subject to task process stage
Vsevolod Stakhov [Fri, 27 Nov 2020 12:17:41 +0000 (12:17 +0000)]
[Minor] Move urls find in subject to task process stage

4 years ago[Minor] Style: Fix logical order
Vsevolod Stakhov [Fri, 27 Nov 2020 11:40:46 +0000 (11:40 +0000)]
[Minor] Style: Fix logical order

4 years ago[Minor] Fix symbol name usage
Vsevolod Stakhov [Fri, 27 Nov 2020 11:36:40 +0000 (11:36 +0000)]
[Minor] Fix symbol name usage

4 years ago[Minor] Clickhouse: one more text related fix
Vsevolod Stakhov [Thu, 26 Nov 2020 14:39:05 +0000 (14:39 +0000)]
[Minor] Clickhouse: one more text related fix

4 years ago[Minor] Clickhouse: Fix text returns
Vsevolod Stakhov [Thu, 26 Nov 2020 14:32:42 +0000 (14:32 +0000)]
[Minor] Clickhouse: Fix text returns

4 years ago[Fix] Fix text selectors
Vsevolod Stakhov [Thu, 26 Nov 2020 12:29:09 +0000 (12:29 +0000)]
[Fix] Fix text selectors

4 years ago[Minor] Fix the case
Vsevolod Stakhov [Wed, 25 Nov 2020 17:23:52 +0000 (17:23 +0000)]
[Minor] Fix the case

4 years ago[Test] Disable broken test (type mismatch)
Vsevolod Stakhov [Wed, 25 Nov 2020 16:54:35 +0000 (16:54 +0000)]
[Test] Disable broken test (type mismatch)

4 years ago[Minor] Remove tostring
Vsevolod Stakhov [Wed, 25 Nov 2020 16:39:51 +0000 (16:39 +0000)]
[Minor] Remove tostring

4 years ago[Feature] Support rspamd_text in selector regexps
Vsevolod Stakhov [Wed, 25 Nov 2020 16:38:39 +0000 (16:38 +0000)]
[Feature] Support rspamd_text in selector regexps

4 years ago[Minor] Fix style
Vsevolod Stakhov [Wed, 25 Nov 2020 13:33:28 +0000 (13:33 +0000)]
[Minor] Fix style

4 years ago[Rework] Add final cleanup logic
Vsevolod Stakhov [Wed, 25 Nov 2020 13:31:38 +0000 (13:31 +0000)]
[Rework] Add final cleanup logic

4 years ago[Feature] Multimap: support adding map values as extra options 3561/head
Andrew Lewis [Wed, 25 Nov 2020 12:55:18 +0000 (14:55 +0200)]
[Feature] Multimap: support adding map values as extra options

4 years ago[Rework] Add stale cache removal
Vsevolod Stakhov [Wed, 25 Nov 2020 11:59:53 +0000 (11:59 +0000)]
[Rework] Add stale cache removal

4 years ago[Rework] Some tunes to cache saving
Vsevolod Stakhov [Wed, 25 Nov 2020 11:42:04 +0000 (11:42 +0000)]
[Rework] Some tunes to cache saving