Vsevolod Stakhov
e834cdb26d
[Minor] Oops, fix foldl call
2 anni fa
Vsevolod Stakhov
c6f7b897d4
[Minor] Fix some issues in URI_COUNT_ODD rule
Issue: #4037
2 anni fa
Vsevolod Stakhov
c23d728d75
[Minor] Fix rule
2 anni fa
Vsevolod Stakhov
c1b3e4821a
[Rules] Remove ancient and inefficient rules
2 anni fa
Vsevolod Stakhov
13dd78c687
[Rules] Fix old rules to stop global functions usage
2 anni fa
Andrew Lewis
b7e3440024
[Feature] JSON endpoint for querying maps
2 anni fa
Anton Yuzhaninov
98b205709f
[Minor] Skip bitcoin address check for very long words
Exclude very long words (which can be extracted e. g. from some text
attachments) from bitcoin address check to avoid excessive resource
usage.
2 anni fa
Vsevolod Stakhov
d2ca787313
[Rules] Improve zero font rule
2 anni fa
Sebastian Lipponer
44d83209e2
[Minor] Regexp: Extend upstream spam filter regexp
2 anni fa
Anton Yuzhaninov
0248bd6615
[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.
2 anni fa
Vsevolod Stakhov
dde092ef09
[Minor] Fix checks safety
2 anni fa
Vsevolod Stakhov
7a181b1fe6
[Minor] Add safety guards
2 anni fa
Andrew Lewis
8d22202dc9
[Fix] Fix an edge case in BITCOIN_ADDR rule
- when using PCRE
- and different address types are present
3 anni fa
Vsevolod Stakhov
f1f2f27585
[Minor] Pet luacheck
3 anni fa
Vsevolod Stakhov
ea35232b98
[Project] Rework html visibility rule
3 anni fa
Vsevolod Stakhov
3e5cc9ef2d
[Rules] Fix zerofont rule (partially)
3 anni fa
Anton Yuzhaninov
a4cfe5e270
[Rules] Extend OLD_X_MAILER
Add more old iPhone/iPad Mail versions to the regexp.
3 anni fa
Anton Yuzhaninov
7c00342f85
[Rules] Extend FORGED_X_MAILER
Match in FORGED_X_MAILER fake iPhone Mail header with a random string in
place of iOS build number, e. g. iPhone Mail (WKN0M)
3 anni fa
Vsevolod Stakhov
e40213cb54
[Rules] Fix CTYPE_MIXED_BOGUS for text attachments
Issue: #3748
3 anni fa
Vsevolod Stakhov
0b88d35b45
[Minor] Fix bit operations logic
3 anni fa
Vsevolod Stakhov
0604bcc851
[Minor] Filter urls for R_SUSPICIOUS_URL check
Suggested by: @citrin
3 anni fa
Vsevolod Stakhov
deda62a64f
[Minor] Use numeric bit and for checking flags
3 anni fa
Andrew Lewis
8a2ba3a5c3
[Minor] Fix REPLYTO_ADDR_EQ_FROM for normalised addresses
3 anni fa
Anton Yuzhaninov
8a5448883e
[Rules] Add raw addresses to MULTIPLE_FROM options
It is confusing to have MULTIPLE_FROM with a single address in options,
which happens if one of addresses is empty - usually because of
misplaces <>. While here simplify condition.
3 anni fa
Anton Yuzhaninov
b3d5173446
[Minor] Make HAS_PHPMAILER_SIG regexps more specific
Use stricter regexp to avoid false matches.
3 anni fa
Vsevolod Stakhov
01c729e15e
[Rules] Fix FPs for CTYPE_MIXED_BOGUS
3 anni fa
Vsevolod Stakhov
017d5a8d6a
[Rules] Fix HTTP_TO_HTTPS rule
3 anni fa
Vsevolod Stakhov
8e9cde0829
[Rules] Do not trigger HTML_SHORT_LINK_IMG on external images
3 anni fa
Kako, Chang
b48c6fbdbf
Fix typos in code comments
3 anni fa
Vsevolod Stakhov
c9e91f011a
[Minor] Bitcoin: Another fix for bleach32 regexp
3 anni fa
Richard Schwab
7f7d408876
[Minor] fix typo: obfusicated -> obfuscated
3 anni fa
Vsevolod Stakhov
028e4ecefe
[Rules] Another fix to HTTP_TO_HTTPS rule
3 anni fa
Vsevolod Stakhov
e2d44157b3
[Rules] Fix HTTP_TO_HTTPS rule
3 anni fa
Vsevolod Stakhov
99c27fc7be
[Rules] Reduce default weight for R_MISSING_CHARSET
3 anni fa
Vsevolod Stakhov
ba5b6773e2
[Minor] Fix OMOGRAPH_URL for the changes in the phished flag
3 anni fa
Vsevolod Stakhov
cd151c848a
[Minor] Properly use task:set_recipients
3 anni fa
Alexander Moisseev
4aebb2b5de
[Fix] Fix Mozilla Message-ID detection
The left part of the Mozilla Message-ID is a hexadecimal timestamp. The regexp was mistakenly limited to 2021-01-14.
3 anni fa
Andrew Lewis
794bb6c241
[Fix] Avoid reinitialising neural settings
3 anni fa
Vsevolod Stakhov
1daf44c4b1
[Minor] Add another bounce re
3 anni fa
Pavel Rochnyack
4ea3250be3
Fix typos in code comments
3 anni fa
Vsevolod Stakhov
2ce745e592
[Minor] Fix missing comma
3 anni fa
Anton Yuzhaninov
38d347e23e
[Minor] Add rule for forged X-Mailer: Internet Mail Service
3 anni fa
Anton Yuzhaninov
badadf5051
[Minor] Add {header} for header regexps
3 anni fa
Anton Yuzhaninov
a9e9703a89
[Minor] Use task:has_header instead of task:get_header
Use task:has_header() to check if header is exists.
3 anni fa
Anton Yuzhaninov
027453fe4a
[Minor] Remove R_SAJDING and SUSPICIOUS_OPERA_10W_MSGID
These rules are no longer relevant.
3 anni fa
Anton Yuzhaninov
689c49dd1a
[Minor] Add FORGED_X_MAILER rule for X-Mailer used by spamboots
3 anni fa
Andrew Lewis
5104d145d7
[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 anni fa
Andrew Lewis
960b608d35
[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 anni fa
Anton Yuzhaninov
c31d5ddde3
[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 anni fa
Anton Yuzhaninov
5d6b526c6b
[Minor] Add rule for old MUA version
These versions are rarely used by real uses nowadays, but can be found
in spam.
3 anni fa