]> source.dussan.org Git - rspamd.git/log
rspamd.git
4 years ago[Minor] Oops, fix more stuff
Vsevolod Stakhov [Mon, 27 Jan 2020 19:25:50 +0000 (19:25 +0000)]
[Minor] Oops, fix more stuff

4 years ago[Minor] Use more portable _mm_loadu_si128
Vsevolod Stakhov [Mon, 27 Jan 2020 18:40:32 +0000 (18:40 +0000)]
[Minor] Use more portable _mm_loadu_si128

4 years ago[Fix] Fix arc seal validation
Vsevolod Stakhov [Mon, 27 Jan 2020 18:35:18 +0000 (18:35 +0000)]
[Fix] Fix arc seal validation

4 years ago[Fix] Further fixes in charset detection
Vsevolod Stakhov [Mon, 27 Jan 2020 18:21:12 +0000 (18:21 +0000)]
[Fix] Further fixes in charset detection

4 years ago[Feature] Speed up is_ascii function
Vsevolod Stakhov [Mon, 27 Jan 2020 18:05:15 +0000 (18:05 +0000)]
[Feature] Speed up is_ascii function

4 years ago[Fix] Fix regexp type check for pcre2
Vsevolod Stakhov [Mon, 27 Jan 2020 16:31:16 +0000 (16:31 +0000)]
[Fix] Fix regexp type check for pcre2

4 years ago[Minor] Fix free logic reversal (as dtors are now in variables themselves)
Vsevolod Stakhov [Mon, 27 Jan 2020 16:27:35 +0000 (16:27 +0000)]
[Minor] Fix free logic reversal (as dtors are now in variables themselves)

4 years ago[Rework] Use faster hashing approach for memory pools variables
Vsevolod Stakhov [Mon, 27 Jan 2020 16:03:08 +0000 (16:03 +0000)]
[Rework] Use faster hashing approach for memory pools variables

4 years ago[Minor] Distinguish max_lua_urls and max_urls
Vsevolod Stakhov [Mon, 27 Jan 2020 14:08:16 +0000 (14:08 +0000)]
[Minor] Distinguish max_lua_urls and max_urls

4 years ago[Minor] Do not write truncated hyperscan files
Vsevolod Stakhov [Mon, 27 Jan 2020 13:51:39 +0000 (13:51 +0000)]
[Minor] Do not write truncated hyperscan files

4 years ago[Minor] Remove dwarf-5 as it is not working with rpm
Vsevolod Stakhov [Mon, 27 Jan 2020 12:48:14 +0000 (12:48 +0000)]
[Minor] Remove dwarf-5 as it is not working with rpm

4 years agoMerge pull request #3238 from korgoth1/master
Vsevolod Stakhov [Sun, 26 Jan 2020 09:24:57 +0000 (09:24 +0000)]
Merge pull request #3238 from korgoth1/master

[Test] spf.lua fix example of external relay

4 years agoMerge pull request #3239 from spacefreak86/bugfixes
Vsevolod Stakhov [Sun, 26 Jan 2020 09:23:23 +0000 (09:23 +0000)]
Merge pull request #3239 from spacefreak86/bugfixes

[Minor] Bugfixes in force_action

4 years ago[Minor] Register forgotten symbol DMARC_BAD_POLICY 3239/head
Thomas Oettli [Sat, 25 Jan 2020 23:14:00 +0000 (00:14 +0100)]
[Minor] Register forgotten symbol DMARC_BAD_POLICY

4 years ago[Minor] Fix log messages in force_actions plugin
Thomas Oettli [Sat, 25 Jan 2020 23:12:31 +0000 (00:12 +0100)]
[Minor] Fix log messages in force_actions plugin

4 years ago[Test] spf.lua fix example of external relay 3238/head
korgoth1 [Sat, 25 Jan 2020 19:44:49 +0000 (22:44 +0300)]
[Test] spf.lua fix example of external relay

4 years ago[Minor] Lua_pdf: Check sanity
Vsevolod Stakhov [Sat, 25 Jan 2020 16:46:04 +0000 (16:46 +0000)]
[Minor] Lua_pdf: Check sanity

4 years ago[Minor] Lua_text: Sanitize span length
Vsevolod Stakhov [Sat, 25 Jan 2020 16:09:31 +0000 (16:09 +0000)]
[Minor] Lua_text: Sanitize span length

4 years agoMerge pull request #3235 from HeinleinSupport/master
Vsevolod Stakhov [Sat, 25 Jan 2020 09:54:29 +0000 (09:54 +0000)]
Merge pull request #3235 from HeinleinSupport/master

[Minor] Fix Sophos ENCRYPTED caching

4 years ago[Minor] Fix indentation
Vsevolod Stakhov [Sat, 25 Jan 2020 09:43:24 +0000 (09:43 +0000)]
[Minor] Fix indentation

4 years ago[Test] Fix ::1/64 absurdic case
Vsevolod Stakhov [Fri, 24 Jan 2020 18:22:57 +0000 (18:22 +0000)]
[Test] Fix ::1/64 absurdic case

4 years ago[Minor] More masks changes
Vsevolod Stakhov [Fri, 24 Jan 2020 18:22:48 +0000 (18:22 +0000)]
[Minor] More masks changes

4 years ago[Minor] Fix masks calculations
Vsevolod Stakhov [Fri, 24 Jan 2020 17:33:25 +0000 (17:33 +0000)]
[Minor] Fix masks calculations

4 years ago[Fix] Use ipv6-mapped-ipv4 addresses in radix trie
Vsevolod Stakhov [Fri, 24 Jan 2020 16:42:40 +0000 (16:42 +0000)]
[Fix] Use ipv6-mapped-ipv4 addresses in radix trie

4 years ago[Minor] Fix Sophos ENCRYPTED caching 3235/head
Carsten Rosenberg [Thu, 23 Jan 2020 19:43:08 +0000 (20:43 +0100)]
[Minor] Fix Sophos ENCRYPTED caching

4 years agoMerge pull request #3234 from fatalbanana/auth_only
Vsevolod Stakhov [Thu, 23 Jan 2020 19:24:47 +0000 (19:24 +0000)]
Merge pull request #3234 from fatalbanana/auth_only

[Minor] Fix previous commit

4 years ago[Minor] Fix previous commit 3234/head
Andrew Lewis [Thu, 23 Jan 2020 19:23:25 +0000 (21:23 +0200)]
[Minor] Fix previous commit

4 years agoMerge pull request #3233 from fatalbanana/auth_only
Vsevolod Stakhov [Thu, 23 Jan 2020 19:20:22 +0000 (19:20 +0000)]
Merge pull request #3233 from fatalbanana/auth_only

[Minor] dkim_signing: auth_only is a misnomer (#3230)

4 years ago[Minor] dkim_signing: auth_only is a misnomer 3233/head
Andrew Lewis [Thu, 23 Jan 2020 18:25:47 +0000 (20:25 +0200)]
[Minor] dkim_signing: auth_only is a misnomer

4 years ago[Fix] Fix white on white rule and add is_leaf flag
Vsevolod Stakhov [Thu, 23 Jan 2020 18:58:46 +0000 (18:58 +0000)]
[Fix] Fix white on white rule and add is_leaf flag

4 years ago[Minor] Pet luacheck
Vsevolod Stakhov [Thu, 23 Jan 2020 16:33:20 +0000 (16:33 +0000)]
[Minor] Pet luacheck

4 years ago[Minor] Remove useless stuff
Vsevolod Stakhov [Thu, 23 Jan 2020 16:23:58 +0000 (16:23 +0000)]
[Minor] Remove useless stuff

4 years ago[Test] Fix/Improve radix testing
Vsevolod Stakhov [Thu, 23 Jan 2020 16:21:56 +0000 (16:21 +0000)]
[Test] Fix/Improve radix testing

4 years agoMerge pull request #3231 from moisseev/patch-1
Vsevolod Stakhov [Thu, 23 Jan 2020 08:25:11 +0000 (08:25 +0000)]
Merge pull request #3231 from moisseev/patch-1

[Minor] Fix spamtrap score

4 years ago[Minor] Fix spamtrap score 3231/head
Alexander Moisseev [Thu, 23 Jan 2020 06:39:47 +0000 (09:39 +0300)]
[Minor] Fix spamtrap score

Issue #3162

4 years ago[Feature] Implement content hashes
Vsevolod Stakhov [Wed, 22 Jan 2020 12:16:05 +0000 (12:16 +0000)]
[Feature] Implement content hashes

4 years ago[Project] Lua_content: Add preliminary support of fuzzy hashes from PDF scripts
Vsevolod Stakhov [Wed, 22 Jan 2020 11:40:33 +0000 (11:40 +0000)]
[Project] Lua_content: Add preliminary support of fuzzy hashes from PDF scripts

4 years ago[Minor] Lua_content: Use oneline to normalise JS stuff
Vsevolod Stakhov [Wed, 22 Jan 2020 11:01:27 +0000 (11:01 +0000)]
[Minor] Lua_content: Use oneline to normalise JS stuff

4 years ago[Minor] Lua_text: Add oneline method
Vsevolod Stakhov [Wed, 22 Jan 2020 11:01:18 +0000 (11:01 +0000)]
[Minor] Lua_text: Add oneline method

4 years ago[Minor] Pet luacheck, erm
Vsevolod Stakhov [Tue, 21 Jan 2020 12:56:58 +0000 (12:56 +0000)]
[Minor] Pet luacheck, erm

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