]> source.dussan.org Git - rspamd.git/log
rspamd.git
4 years ago[Minor] Fix detection rules
Vsevolod Stakhov [Tue, 21 Jan 2020 12:47:42 +0000 (12:47 +0000)]
[Minor] Fix detection rules

4 years ago[Project] Lua_content: Improve JS extraction logic
Vsevolod Stakhov [Tue, 21 Jan 2020 12:30:56 +0000 (12:30 +0000)]
[Project] Lua_content: Improve JS extraction logic

4 years ago[Minor] Debian: Add extra args to debian rules
Vsevolod Stakhov [Tue, 21 Jan 2020 10:57:22 +0000 (10:57 +0000)]
[Minor] Debian: Add extra args to debian rules

4 years ago[Minor] Lua_content: Fix objects regexp...
Vsevolod Stakhov [Tue, 21 Jan 2020 09:43:59 +0000 (09:43 +0000)]
[Minor] Lua_content: Fix objects regexp...

4 years ago[Minor] Fix PDF_JAVASCRIPT rule
Vsevolod Stakhov [Tue, 21 Jan 2020 09:27:13 +0000 (09:27 +0000)]
[Minor] Fix PDF_JAVASCRIPT rule

4 years agoMerge pull request #3228 from Lekensteyn/debian-reproducible-builds
Vsevolod Stakhov [Tue, 21 Jan 2020 09:11:14 +0000 (09:11 +0000)]
Merge pull request #3228 from Lekensteyn/debian-reproducible-builds

[Minor] Fix Debian reproducible builds

4 years ago[Minor] CMake: Add ENABLE_LTO option 3228/head
Peter Wu [Tue, 21 Jan 2020 04:13:16 +0000 (04:13 +0000)]
[Minor] CMake: Add ENABLE_LTO option

* The `CMAKE_BUILD_TYPE=None` option is commonly used to respect the
  user's optimization flags. Users may be interested in enabling LTO
  anyway in that case. Implement this the Debian build.
* Remove typo, the value is called RelWithDebInfo. Enable LTO for this
  by default.

4 years ago[Minor] Debian: set BUILD_WITH_INSTALL_RPATH=ON
Peter Wu [Tue, 21 Jan 2020 03:54:27 +0000 (03:54 +0000)]
[Minor] Debian: set BUILD_WITH_INSTALL_RPATH=ON

* Use the install RPATH to avoid relinking at install time.
* This additionally ensures reproducible builds invariant of the build
  directory since build paths such as `X/src:X/contrib/replxx:...` are
  no longer embedded in the binary.
* This assumes that binaries are not ran at build time. If this is
  needed, CMAKE_BUILD_RPATH_USE_ORIGIN=ON can be used instead (requires
  CMake 3.14). For older CMake, try setting LD_LIBRARY_PATH.

4 years ago[Minor] Make ragel-generated files independent of the parent directory
Peter Wu [Tue, 21 Jan 2020 02:53:24 +0000 (02:53 +0000)]
[Minor] Make ragel-generated files independent of the parent directory

* Use relative paths for `#line` directives to allow reproducible builds
  independent of the absolute build directory. For /b/rspamd/src/x.rl
  and build dir /b/build, it could result in `../../build/src/x.rl`.
* The `-L` option for `Inhibit writing #line directives` is useless, it
  just comments out the line with `/* ... */`, but that means that the
  source file is still different.
* Note that ragel only accepts one input file, despite plural `INPUTS`.

4 years ago[Minor] test: remove hard-coded build directory
Peter Wu [Tue, 21 Jan 2020 02:21:31 +0000 (02:21 +0000)]
[Minor] test: remove hard-coded build directory

* Reproducible build: avoid defining the BUILDROOT macro and avoid
  embedding the build directory in the test image. Instead rely on the
  test files being present next to the executable.
* I considered using g_test_build_filename, available since GLib 2.38
  (available on all supported platforms, RHEL 7, Debian, Ubuntu, etc.),
  but decided against it because it would require setting the
  G_TEST_SRCDIR or G_TEST_BUILDDIR environment variables. Therefore this
  patch simply parses argv0 directly.

4 years ago[Minor] contrib/snowball: fix modules.h location
Peter Wu [Tue, 21 Jan 2020 01:05:49 +0000 (01:05 +0000)]
[Minor] contrib/snowball: fix modules.h location

* Reproducible builds! No more absolute paths in source files, so the
  generated binary is also invariant of the build directory.
* Output modules.h in snowball/libstemmer/ instead of snowball/. This
  allows removal of the extra include directory and -f option.
* This partially reverts some changes in
  https://github.com/snowballstem/snowball/commit/d178f201fda878c26538401650a7d46c37a5e6f1
  and matches the commands in GNUmakefile.

4 years ago[Minor] contrib/libev: avoid absolute path for header
Peter Wu [Mon, 20 Jan 2020 23:44:05 +0000 (23:44 +0000)]
[Minor] contrib/libev: avoid absolute path for header

* Avoid including the absolute header path to permit reproducible builds
  invariant of the build direvtory.

4 years ago[Minor] Debian: set fixfilepath reproducible build option
Peter Wu [Mon, 20 Jan 2020 22:32:15 +0000 (22:32 +0000)]
[Minor] Debian: set fixfilepath reproducible build option

* Enable -ffile-prefix-map to ensure that assert statements in
  contrib/libev/ev.c and other places do not store the full file path.
  This ensures reproducible builds, invariant of the build directory.
  Supported since dpkg 1.19.1, including Debian buster and Ubuntu 19.04.
* Enable all hardening features while at it, this adds bindnow only. See
  https://manpages.debian.org/buster/dpkg-dev/dpkg-buildflags.1.en.html

4 years ago[Minor] debian/rules: move makefile targets (no functional change)
Peter Wu [Mon, 20 Jan 2020 22:25:40 +0000 (22:25 +0000)]
[Minor] debian/rules: move makefile targets (no functional change)

Remove .PHONY marker for consistency. Move override_dh_strip before the
target dh_makeshlibs as is is executed right before that.

4 years ago[Minor] Debian: update arches and versions in build dependencies
Peter Wu [Mon, 20 Jan 2020 20:43:13 +0000 (20:43 +0000)]
[Minor] Debian: update arches and versions in build dependencies

* glib 2.28 is the current minimum declared in CMakeLists.txt, but even
  Jessie satisfies that requirement. Remove it.
* Use DEB_HOST_ARCH for "The Debian architecture of the host machine"
  instead of DEB_TARGET_ARCH which is relevant for cross-compiling only.
* Update luajit arches based on https://packages.debian.org/sid/luajit
  * Added arm64, mips64el, ppc64, ppc64el (stretch-backports / buster).
  * Removed kfreebsd-i386 and 32-bit powerpc (removed in Jessie).
  * Removed powerpcspe (unofficial port with outdated luajit).
  * Maintained mips (removed after buster).

4 years agoMerge pull request #3226 from Lekensteyn/dist-simplify
Vsevolod Stakhov [Mon, 20 Jan 2020 18:55:38 +0000 (18:55 +0000)]
Merge pull request #3226 from Lekensteyn/dist-simplify

[Minor] Simplify creation of dist tarball that is reproducible

4 years ago[Minor] Lua_logger: Fix printing of sparse tables
Vsevolod Stakhov [Mon, 20 Jan 2020 17:14:13 +0000 (17:14 +0000)]
[Minor] Lua_logger: Fix printing of sparse tables

4 years ago[Minor] Filter crap from javascript
Vsevolod Stakhov [Mon, 20 Jan 2020 12:40:29 +0000 (12:40 +0000)]
[Minor] Filter crap from javascript

4 years ago[Minor] Update docs
Vsevolod Stakhov [Mon, 20 Jan 2020 12:37:07 +0000 (12:37 +0000)]
[Minor] Update docs

4 years ago[Minor] Lua_text: Support patterns
Vsevolod Stakhov [Mon, 20 Jan 2020 12:35:39 +0000 (12:35 +0000)]
[Minor] Lua_text: Support patterns

4 years ago[Minor] Lua_text: Add exclude_chars method
Vsevolod Stakhov [Mon, 20 Jan 2020 12:05:40 +0000 (12:05 +0000)]
[Minor] Lua_text: Add exclude_chars method

4 years ago[Project] Lua_content: Rework JS parsing
Vsevolod Stakhov [Mon, 20 Jan 2020 10:11:30 +0000 (10:11 +0000)]
[Project] Lua_content: Rework JS parsing

4 years ago[Minor] Lua_content: Implement plain strings unescape
Vsevolod Stakhov [Sun, 19 Jan 2020 09:54:32 +0000 (09:54 +0000)]
[Minor] Lua_content: Implement plain strings unescape

4 years ago[Minor] Lua_content: Make text/urls extraction optional
Vsevolod Stakhov [Sun, 19 Jan 2020 09:39:06 +0000 (09:39 +0000)]
[Minor] Lua_content: Make text/urls extraction optional

4 years agoMerge pull request #3227 from Lekensteyn/debian-packaging
Vsevolod Stakhov [Sun, 19 Jan 2020 09:20:48 +0000 (09:20 +0000)]
Merge pull request #3227 from Lekensteyn/debian-packaging

Bring Debian packaging up-to-date

4 years ago[Project] Lua_content: Implement JS extraction from PDF
Vsevolod Stakhov [Sat, 18 Jan 2020 21:20:50 +0000 (21:20 +0000)]
[Project] Lua_content: Implement JS extraction from PDF

4 years ago[Minor] Debian: remove unnecessary packages 3227/head
Peter Wu [Sat, 18 Jan 2020 20:48:28 +0000 (20:48 +0000)]
[Minor] Debian: remove unnecessary packages

dh-systemd is a transitional package and moved into debhelper, so remove
it. This is supported since Debian Stretch. This change has to be
reversed if Debian Jessie or Ubuntu Xenial have to be supported.

4 years ago[Minor] Debian: use non-deprecated libpcre2-dev package
Peter Wu [Sat, 18 Jan 2020 20:34:07 +0000 (20:34 +0000)]
[Minor] Debian: use non-deprecated libpcre2-dev package

See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911935

4 years ago[Minor] Debian: Expand Build-Depends line and sort it
Peter Wu [Sat, 18 Jan 2020 20:30:54 +0000 (20:30 +0000)]
[Minor] Debian: Expand Build-Depends line and sort it

4 years ago[Minor] Debian: remove unused cmake options
Peter Wu [Sat, 18 Jan 2020 18:56:32 +0000 (18:56 +0000)]
[Minor] Debian: remove unused cmake options

GD (off by default) and TORCH (on by default) were removed in 2.0, the
examples option (off by default) was removed in 2.2.

4 years ago[Minor] Debian: add missing sodium dependency
Peter Wu [Sat, 18 Jan 2020 18:49:56 +0000 (18:49 +0000)]
[Minor] Debian: add missing sodium dependency

Required since rspamd 2.0. Even Debian Jessie ships 1.0.0, so add it
unconditionally.

4 years ago[Minor] Debian: Enable Hyperscan and parallel builds
Peter Wu [Sat, 18 Jan 2020 18:06:55 +0000 (18:06 +0000)]
[Minor] Debian: Enable Hyperscan and parallel builds

Debian 9 (Stretch) ships with Hyperscan 4.4.1, Ubuntu 18.04 ships with
Hyperscan 4.7.0. Follow rspamd's official recommendation and enable
support for these.

The --parallel option has been supported since 2009 and works perfectly
with CMake, so enable it by default.

4 years ago[Minor] Simplify creation of dist tarball that is reproducible 3226/head
Peter Wu [Sat, 18 Jan 2020 16:26:39 +0000 (16:26 +0000)]
[Minor] Simplify creation of dist tarball that is reproducible

Instead of archiving files from the working tree, distribute files as
committed. Use the 'git archive' command to achieve this, it results in
a reproducible tarball with the same timestamp as the latest commit.

4 years ago[Minor] Check type of resources
Vsevolod Stakhov [Sat, 18 Jan 2020 09:45:20 +0000 (09:45 +0000)]
[Minor] Check type of resources

4 years agoMerge pull request #3224 from korgoth1/master
Vsevolod Stakhov [Fri, 17 Jan 2020 16:18:15 +0000 (16:18 +0000)]
Merge pull request #3224 from korgoth1/master

[Test] excluding external relay ip example from spf.conf

4 years agoMerge pull request #3220 from cgzones/compiler_warnings
Vsevolod Stakhov [Fri, 17 Jan 2020 16:05:43 +0000 (16:05 +0000)]
Merge pull request #3220 from cgzones/compiler_warnings

[Minor] Fix some compiler warnings

4 years ago[Minor] Another try to fix shifting
Vsevolod Stakhov [Fri, 17 Jan 2020 15:00:54 +0000 (15:00 +0000)]
[Minor] Another try to fix shifting

4 years ago[Minor] Fix race condition in slow timer
Vsevolod Stakhov [Fri, 17 Jan 2020 13:10:58 +0000 (13:10 +0000)]
[Minor] Fix race condition in slow timer

4 years ago[Minor] Another try to fix urls shifting when decoding
Vsevolod Stakhov [Fri, 17 Jan 2020 13:01:25 +0000 (13:01 +0000)]
[Minor] Another try to fix urls shifting when decoding

4 years ago[Minor] Reset slow flag on checks pause
Vsevolod Stakhov [Fri, 17 Jan 2020 12:39:49 +0000 (12:39 +0000)]
[Minor] Reset slow flag on checks pause

4 years ago[Test] excluding external relay ip example from spf.conf 3224/head
korgoth1 [Fri, 17 Jan 2020 12:25:41 +0000 (15:25 +0300)]
[Test] excluding external relay ip example from spf.conf

4 years ago[Minor] Forgot in the previous commit
Vsevolod Stakhov [Fri, 17 Jan 2020 11:32:44 +0000 (11:32 +0000)]
[Minor] Forgot in the previous commit

4 years agoMerge pull request #3223 from moisseev/webui
Vsevolod Stakhov [Fri, 17 Jan 2020 10:24:08 +0000 (10:24 +0000)]
Merge pull request #3223 from moisseev/webui

[WebUI] Update favicon

4 years ago[Minor] Postpone log closing unless we have opened a new one
Vsevolod Stakhov [Fri, 17 Jan 2020 10:20:22 +0000 (10:20 +0000)]
[Minor] Postpone log closing unless we have opened a new one

4 years agoMerge pull request #3215 from korgoth1/master
Vsevolod Stakhov [Thu, 16 Jan 2020 20:04:11 +0000 (20:04 +0000)]
Merge pull request #3215 from korgoth1/master

[Feature] SPF: Convert external IP to a map

4 years ago[Minor] do not pass invalid C warnings to C++ flags 3220/head
Christian Göttsche [Thu, 16 Jan 2020 14:09:46 +0000 (15:09 +0100)]
[Minor] do not pass invalid C warnings to C++ flags

cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++

4 years ago[Minor] use modern name -Wextra instead of -W
Christian Göttsche [Thu, 16 Jan 2020 14:36:53 +0000 (15:36 +0100)]
[Minor] use modern name -Wextra instead of -W

4 years ago[Minor] silence redefinition of macro
Christian Göttsche [Thu, 16 Jan 2020 14:01:19 +0000 (15:01 +0100)]
[Minor] silence redefinition of macro

[74/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpprint.c.o
In file included from ../contrib/lua-lpeg/lpprint.c:11:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[75/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpcap.c.o
In file included from ../contrib/lua-lpeg/lpcap.h:9,
                 from ../contrib/lua-lpeg/lpcap.c:9:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[77/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpvm.c.o
In file included from ../contrib/lua-lpeg/lpcap.h:9,
                 from ../contrib/lua-lpeg/lpvm.c:15:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[79/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lpcode.c.o
In file included from ../contrib/lua-lpeg/lpcode.c:12:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition
[81/340] Building C object contrib/lua-lpeg/CMakeFiles/rspamd-lpeg.dir/lptree.c.o
In file included from ../contrib/lua-lpeg/lptree.c:15:
../contrib/lua-lpeg/lptypes.h:15: warning: "NDEBUG" redefined
   15 | #define NDEBUG
      |
<command-line>: note: this is the location of the previous definition

4 years ago[Minor] silence -Wmisleading-indentation in contrib/snowball/
Christian Göttsche [Thu, 16 Jan 2020 13:57:46 +0000 (14:57 +0100)]
[Minor] silence -Wmisleading-indentation in contrib/snowball/

../contrib/snowball/compiler/analyser.c: In function ‘check_name_type’:
../contrib/snowball/compiler/analyser.c:210:19: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  210 |         case 'r': if (p->type == t_routine ||
      |                   ^~
../contrib/snowball/compiler/analyser.c:211:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  211 |                       p->type == t_external) return; break;
      |                                                      ^~~~~
../contrib/snowball/compiler/analyser.c: In function ‘read_program’:
../contrib/snowball/compiler/analyser.c:859:21: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  859 |                     if (q->used && q->definition == 0) error4(a, q); break;
      |                     ^~
../contrib/snowball/compiler/analyser.c:859:70: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  859 |                     if (q->used && q->definition == 0) error4(a, q); break;
      |                                                                      ^~~~~
../contrib/snowball/compiler/analyser.c:861:21: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
  861 |                     if (q->used && q->grouping == 0) error4(a, q); break;
      |                     ^~
../contrib/snowball/compiler/analyser.c:861:68: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  861 |                     if (q->used && q->grouping == 0) error4(a, q); break;
      |                                                                    ^~~~~

4 years ago[Test] SPF external IP map 3215/head
korgoth1 [Thu, 16 Jan 2020 18:35:21 +0000 (21:35 +0300)]
[Test] SPF external IP map

4 years ago[WebUI] Update favicon 3223/head
moisseev [Thu, 16 Jan 2020 18:09:17 +0000 (21:09 +0300)]
[WebUI] Update favicon

Issue #3207

4 years ago[Minor] Lua_task: Remove unused crap
Vsevolod Stakhov [Thu, 16 Jan 2020 17:20:18 +0000 (17:20 +0000)]
[Minor] Lua_task: Remove unused crap

Issue: #3220

4 years agoMerge pull request #3219 from cgzones/interface_cruft
Vsevolod Stakhov [Thu, 16 Jan 2020 15:54:32 +0000 (15:54 +0000)]
Merge pull request #3219 from cgzones/interface_cruft

[Minor] remove cruft files from webui

4 years agoMerge pull request #3218 from cgzones/no_replxx
Vsevolod Stakhov [Thu, 16 Jan 2020 15:53:59 +0000 (15:53 +0000)]
Merge pull request #3218 from cgzones/no_replxx

[Minor] fix compilation without replxx

4 years agoMerge pull request #3217 from cgzones/exampledir
Vsevolod Stakhov [Thu, 16 Jan 2020 15:53:21 +0000 (15:53 +0000)]
Merge pull request #3217 from cgzones/exampledir

[Minor] remove unused examplesdir

4 years agoMerge pull request #3216 from cgzones/spellings
Vsevolod Stakhov [Thu, 16 Jan 2020 15:52:21 +0000 (15:52 +0000)]
Merge pull request #3216 from cgzones/spellings

[Minor] fix spelling

4 years ago[Minor] fix spelling 3216/head
Christian Göttsche [Thu, 16 Jan 2020 15:05:48 +0000 (16:05 +0100)]
[Minor] fix spelling

4 years ago[Minor] remove unused examplesdir 3217/head
Christian Göttsche [Thu, 16 Jan 2020 15:02:58 +0000 (16:02 +0100)]
[Minor] remove unused examplesdir

4 years ago[Minor] fix compilation without replxx 3218/head
Christian Göttsche [Thu, 16 Jan 2020 14:57:46 +0000 (15:57 +0100)]
[Minor] fix compilation without replxx

../src/rspamadm/lua_repl.c: In function ‘rspamadm_lua_run_repl’:
../src/rspamadm/lua_repl.c:615:8: warning: unused variable ‘i’ [-Wunused-variable]
  615 |  gsize i;
      |        ^
../src/rspamadm/lua_repl.c:614:11: warning: unused variable ‘tb’ [-Wunused-variable]
  614 |  GString *tb = NULL;
      |           ^~
../src/rspamadm/lua_repl.c:613:11: warning: unused variable ‘is_multiline’ [-Wunused-variable]
  613 |  gboolean is_multiline = FALSE;
      |           ^~~~~~~~~~~~
../src/rspamadm/lua_repl.c: In function ‘rspamadm_lua’:
../src/rspamadm/lua_repl.c:1007:3: warning: implicit declaration of function ‘replxx_set_max_history_size’ [-Wimplicit-function-declaration]
 1007 |   replxx_set_max_history_size (rx_instance, max_history);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/rspamadm/lua_repl.c:1007:32: error: ‘rx_instance’ undeclared (first use in this function)
 1007 |   replxx_set_max_history_size (rx_instance, max_history);
      |                                ^~~~~~~~~~~
../src/rspamadm/lua_repl.c:1007:32: note: each undeclared identifier is reported only once for each function it appears in
../src/rspamadm/lua_repl.c:1008:3: warning: implicit declaration of function ‘replxx_history_load’ [-Wimplicit-function-declaration]
 1008 |   replxx_history_load (rx_instance, histfile);
      |   ^~~~~~~~~~~~~~~~~~~
../src/rspamadm/lua_repl.c:1010:3: warning: implicit declaration of function ‘replxx_history_save’ [-Wimplicit-function-declaration]
 1010 |   replxx_history_save (rx_instance, histfile);
      |   ^~~~~~~~~~~~~~~~~~~

4 years ago[Minor] remove cruft files from webui 3219/head
Christian Göttsche [Thu, 16 Jan 2020 14:53:28 +0000 (15:53 +0100)]
[Minor] remove cruft files from webui

4 years ago[Test] SPF external IP map
korgoth1 [Thu, 16 Jan 2020 12:59:23 +0000 (15:59 +0300)]
[Test] SPF external IP map

4 years ago[Minor] Check string length to avoid OOB reading
Vsevolod Stakhov [Thu, 16 Jan 2020 12:55:24 +0000 (12:55 +0000)]
[Minor] Check string length to avoid OOB reading

4 years agoMerge pull request #3153 from resec/smembers
Vsevolod Stakhov [Thu, 16 Jan 2020 12:30:16 +0000 (12:30 +0000)]
Merge pull request #3153 from resec/smembers

[Minor] Eliminate redis SMEMBERS usage

4 years agoMerge pull request #3214 from Lekensteyn/fix-dkim-policy-check
Vsevolod Stakhov [Thu, 16 Jan 2020 12:24:35 +0000 (12:24 +0000)]
Merge pull request #3214 from Lekensteyn/fix-dkim-policy-check

[Minor] Dkim_signing: correct is_skip_sign logic

4 years ago[Project] Lua_content: Add preliminary fonts handling
Vsevolod Stakhov [Thu, 16 Jan 2020 12:23:44 +0000 (12:23 +0000)]
[Project] Lua_content: Add preliminary fonts handling

4 years ago[Minor] Try to fix slow timer race condition
Vsevolod Stakhov [Thu, 16 Jan 2020 12:13:35 +0000 (12:13 +0000)]
[Minor] Try to fix slow timer race condition

4 years ago[Test] SPF external IP map
korgoth1 [Thu, 16 Jan 2020 12:06:54 +0000 (15:06 +0300)]
[Test] SPF external IP map

4 years ago[Minor] Dkim_signing: correct is_skip_sign logic 3214/head
Peter Wu [Thu, 16 Jan 2020 01:11:49 +0000 (01:11 +0000)]
[Minor] Dkim_signing: correct is_skip_sign logic

If any of "sign_networks", "auth_only", or "sign_local" are disabled,
then it should not automatically proceed with signing if the enabled
conditions all fail. For example, if only the auth_only setting is
enabled, and is_authed is false, then signing should be skipped.

An earlier check luckily prevents this correctness issue from being
exploitable ("ignoring unauthenticated mail"), but fix the logic anyway.

4 years ago[Test] SPF external IP map
korgoth1 [Wed, 15 Jan 2020 20:39:24 +0000 (23:39 +0300)]
[Test] SPF external IP map

4 years ago[Test] SPF external IP map
korgoth1 [Wed, 15 Jan 2020 20:35:46 +0000 (23:35 +0300)]
[Test] SPF external IP map

4 years ago[Fix] Fix urls shifting when doing decode to include separators
Vsevolod Stakhov [Wed, 15 Jan 2020 11:21:56 +0000 (11:21 +0000)]
[Fix] Fix urls shifting when doing decode to include separators

4 years agoMerge pull request #3213 from citrin/url-frag-test
Vsevolod Stakhov [Wed, 15 Jan 2020 10:55:23 +0000 (10:55 +0000)]
Merge pull request #3213 from citrin/url-frag-test

[Test] Add a test case for URL parsing

4 years ago[Minor] Just another try to avoid race
Vsevolod Stakhov [Wed, 15 Jan 2020 10:21:48 +0000 (10:21 +0000)]
[Minor] Just another try to avoid race

4 years ago[Test] Add a test case for URL parsing 3213/head
Anton Yuzhaninov [Tue, 14 Jan 2020 16:31:13 +0000 (16:31 +0000)]
[Test] Add a test case for URL parsing

Currently it fails because fragment is not extracted correctly.

4 years ago[Project] Lua_content: Implement url's extraction from PDF files
Vsevolod Stakhov [Tue, 14 Jan 2020 16:16:39 +0000 (16:16 +0000)]
[Project] Lua_content: Implement url's extraction from PDF files

4 years ago[Project] Lua_content: Implement ObjStm decoding
Vsevolod Stakhov [Tue, 14 Jan 2020 15:01:38 +0000 (15:01 +0000)]
[Project] Lua_content: Implement ObjStm decoding

4 years agoMerge pull request #3212 from moisseev/patch-1
Vsevolod Stakhov [Tue, 14 Jan 2020 10:26:15 +0000 (10:26 +0000)]
Merge pull request #3212 from moisseev/patch-1

[Minor] bayes_expiry: Fix type check (https://github.com/antirez/redis/issues/3231)

4 years ago[Minor] bayes_expiry: Fix type check 3212/head
Alexander Moisseev [Tue, 14 Jan 2020 08:13:08 +0000 (11:13 +0300)]
[Minor] bayes_expiry: Fix type check

4 years ago[Project] Lua_content: Add preliminary support of compound objects
Vsevolod Stakhov [Mon, 13 Jan 2020 21:50:25 +0000 (21:50 +0000)]
[Project] Lua_content: Add preliminary support of compound objects

4 years ago[Minor] Lua_text: Set class properly
Vsevolod Stakhov [Mon, 13 Jan 2020 21:37:59 +0000 (21:37 +0000)]
[Minor] Lua_text: Set class properly

4 years ago[Project] Lua_content: Massive rework of the parsing structure
Vsevolod Stakhov [Mon, 13 Jan 2020 19:59:48 +0000 (19:59 +0000)]
[Project] Lua_content: Massive rework of the parsing structure

4 years ago[Minor] Lua_content: Similar hang fix
Vsevolod Stakhov [Mon, 13 Jan 2020 17:47:12 +0000 (17:47 +0000)]
[Minor] Lua_content: Similar hang fix

4 years ago[Minor] Lua_content: Fix some more crappy pdf issues
Vsevolod Stakhov [Mon, 13 Jan 2020 17:23:25 +0000 (17:23 +0000)]
[Minor] Lua_content: Fix some more crappy pdf issues

4 years ago[Minor] Lua_content: Fix hang
Vsevolod Stakhov [Mon, 13 Jan 2020 17:05:07 +0000 (17:05 +0000)]
[Minor] Lua_content: Fix hang

4 years ago[Fix] Fix urls encode function
Vsevolod Stakhov [Mon, 13 Jan 2020 13:58:42 +0000 (13:58 +0000)]
[Fix] Fix urls encode function

4 years ago[Fix] Avoid double escaping
Vsevolod Stakhov [Mon, 13 Jan 2020 13:16:30 +0000 (13:16 +0000)]
[Fix] Avoid double escaping

4 years ago[Fix] Fix dealing with `\0` in ucl strings and JSON
Vsevolod Stakhov [Mon, 13 Jan 2020 13:16:13 +0000 (13:16 +0000)]
[Fix] Fix dealing with `\0` in ucl strings and JSON

4 years ago[Minor] Another try to fix race
Vsevolod Stakhov [Mon, 13 Jan 2020 10:50:13 +0000 (10:50 +0000)]
[Minor] Another try to fix race

4 years ago[Minor] Sigh - another try to avoid races
Vsevolod Stakhov [Mon, 13 Jan 2020 10:06:31 +0000 (10:06 +0000)]
[Minor] Sigh - another try to avoid races

4 years ago[Minor] Bayes_expiry: Test type before trying to evaluate
Vsevolod Stakhov [Mon, 13 Jan 2020 09:41:52 +0000 (09:41 +0000)]
[Minor] Bayes_expiry: Test type before trying to evaluate

Issue: #3208

4 years agoMerge pull request #3210 from moisseev/spamtrap
Vsevolod Stakhov [Sun, 12 Jan 2020 19:10:25 +0000 (19:10 +0000)]
Merge pull request #3210 from moisseev/spamtrap

[Conf] Update spamtrap map path example

4 years ago[Conf] Update spamtrap map path example 3210/head
moisseev [Sun, 12 Jan 2020 07:11:59 +0000 (10:11 +0300)]
[Conf] Update spamtrap map path example

4 years ago[Minor] Rbl: Fix resolve ip options insertion
Vsevolod Stakhov [Sat, 11 Jan 2020 14:36:57 +0000 (14:36 +0000)]
[Minor] Rbl: Fix resolve ip options insertion

4 years agoMerge pull request #3206 from korgoth1/master
Vsevolod Stakhov [Sat, 11 Jan 2020 14:08:59 +0000 (14:08 +0000)]
Merge pull request #3206 from korgoth1/master

[Test] SURBL resolve ip

4 years ago[Minor] Add trailing slash when reconstructing numeric url
Vsevolod Stakhov [Sat, 11 Jan 2020 13:38:26 +0000 (13:38 +0000)]
[Minor] Add trailing slash when reconstructing numeric url

4 years ago[Test] SURBL resolve ip 3206/head
korgoth1 [Fri, 10 Jan 2020 22:18:46 +0000 (01:18 +0300)]
[Test] SURBL resolve ip

4 years ago[Test] Add more tests
Vsevolod Stakhov [Fri, 10 Jan 2020 16:16:56 +0000 (16:16 +0000)]
[Test] Add more tests

4 years ago[Minor] Fixes in urls fragments/queries parsing
Vsevolod Stakhov [Fri, 10 Jan 2020 16:16:41 +0000 (16:16 +0000)]
[Minor] Fixes in urls fragments/queries parsing

4 years ago[Test] SURBL resolve ip
korgoth1 [Fri, 10 Jan 2020 15:47:06 +0000 (18:47 +0300)]
[Test] SURBL resolve ip

4 years ago[Test] SURBL resolve ip
korgoth1 [Fri, 10 Jan 2020 15:42:35 +0000 (18:42 +0300)]
[Test] SURBL resolve ip