From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 13 03:57:33 2020 Received: (at submit) by debbugs.gnu.org; 13 Oct 2020 07:57:34 +0000 Received: from localhost ([127.0.0.1]:45066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSFBa-0001fP-HQ for submit@debbugs.gnu.org; Tue, 13 Oct 2020 03:57:33 -0400 Received: from lists.gnu.org ([209.51.188.17]:52620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSFBY-0001fH-9A for submit@debbugs.gnu.org; Tue, 13 Oct 2020 03:57:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSFBX-0004Kv-UG for guix-patches@gnu.org; Tue, 13 Oct 2020 03:57:27 -0400 Received: from mout02.posteo.de ([185.67.36.66]:38463) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSFBU-00089k-Jh for guix-patches@gnu.org; Tue, 13 Oct 2020 03:57:27 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 8B0802400FC for ; Tue, 13 Oct 2020 09:57:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1602575841; bh=WxT1z3z2Zua+xibshek2plA8wT7G1nT8fiRJFFM3skM=; h=From:To:Cc:Subject:Date:From; b=o04pq585+hwy6Ewlea13fNe9rXD5pkTWNZS9mSUr+fHUFijwLXPhmZgazIhLh8SKb +zfvF8aYLzucJ05isnpwv8DWN7KVBh5JoE/ET3vL+wpVAVgvLft/t5FOY8amxmdzjf q8WYq8xjepTjnEwglDo7hy/x9Z7R5zgRYN5vM7AHMMwclJjRDrnUwNf3+K3Ho5iypR vIlEML6GStmZCD4c8bTR74Xx18raC4p+UQuoBJDchZS/Fy/iYS/GuHbVwcke0OCRCK ZXfJw37KxMve3mnP20Z5jl5/61B6AUfeyD4Vg33PDMy5pl3whFlYWw5QNDFsaErgGF zR8FxVjPqFbhQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4C9SZ86KXVz9rxB; Tue, 13 Oct 2020 09:57:20 +0200 (CEST) From: Alexandru-Sergiu Marton To: guix-patches@gnu.org Subject: [PATCH] gnu: Add rspamd. Date: Tue, 13 Oct 2020 13:57:23 +0300 Message-Id: <20201013105723.14495-1-brown121407@posteo.ro> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=brown121407@posteo.ro; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/13 01:36:05 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Alexandru-Sergiu Marton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/mail.scm (rspamd): New variable. --- This patch adds a recipe for the "rspamd" spam filter. In an ideal world we would have a service definition for this as well, but I don't know how to write those yet, so I'd appreciate any help from the community. Rspamd already has service definitions for systemd, we could try to translate those to the Guix APIs. gnu/packages/mail.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 2bab7b4645..337ef97a7f 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -35,6 +35,7 @@ ;;; Copyright © 2020 Maxim Cournoyer ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Alexey Abramov +;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; ;;; This file is part of GNU Guix. ;;; @@ -75,6 +76,7 @@ #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) #:use-module (gnu packages enchant) + #:use-module (gnu packages file) #:use-module (gnu packages gdb) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) @@ -115,6 +117,7 @@ #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages ragel) #:use-module (gnu packages rdf) #:use-module (gnu packages readline) #:use-module (gnu packages ruby) @@ -141,6 +144,7 @@ #:use-module (guix git-download) #:use-module (guix svn-download) #:use-module (guix utils) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system guile) #:use-module (guix build-system perl) @@ -3902,3 +3906,42 @@ DKIM and ARC sign messages and output the corresponding signature headers.") based on asyncio.") (license (list license:asl2.0 license:lgpl3)))) ; only for setup_helpers.py + +(define-public rspamd + (package + (name "rspamd") + (version "2.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rspamd/rspamd") + (commit version))) + (sha256 + (base32 "0vwa7k2s2bkfb8w78z5izkd6ywjbzqysb0grls898y549hm8ii70")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags '("-DENABLE_LUAJIT=ON"))) + (inputs + `(("openssl" ,openssl) + ("glib" ,glib) + ("ragel" ,ragel) + ("luajit" ,luajit) + ("sqlite" ,sqlite) + ("file" ,file) + ("icu4c" ,icu4c) + ("pcre" ,pcre) + ("zlib" ,zlib) + ("perl" ,perl) + ("libsodium" ,libsodium))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (synopsis "Fast, free and open-source spam filtering system") + (description "Rspamd is an advanced spam filtering system that +allows evaluation of messages by a number of rules including regular +expressions, statistical analysis and custom services such as URL +black lists. Each message is analysed by Rspamd and given a spam +score.") + (home-page "https://www.rspamd.com/") + (license license:asl2.0))) -- 2.28.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 18 17:58:02 2020 Received: (at 43974) by debbugs.gnu.org; 18 Oct 2020 21:58:02 +0000 Received: from localhost ([127.0.0.1]:39224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUGgk-0006A0-DO for submit@debbugs.gnu.org; Sun, 18 Oct 2020 17:58:02 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUGgi-00069a-62 for 43974@debbugs.gnu.org; Sun, 18 Oct 2020 17:58:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50577) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUGgb-0002PC-Cw; Sun, 18 Oct 2020 17:57:54 -0400 Received: from ti0006q161-1594.bb.online.no ([46.9.75.77]:36542 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kUGgV-0003XI-V5; Sun, 18 Oct 2020 17:57:49 -0400 From: Marius Bakke To: Alexandru-Sergiu Marton , 43974@debbugs.gnu.org Subject: Re: [bug#43974] [PATCH] gnu: Add rspamd. In-Reply-To: <20201013105723.14495-1-brown121407@posteo.ro> References: <20201013105723.14495-1-brown121407@posteo.ro> Date: Sun, 18 Oct 2020 23:57:45 +0200 Message-ID: <87zh4jjixy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43974 Cc: Alexandru-Sergiu Marton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Alexandru-Sergiu Marton writes: > * gnu/packages/mail.scm (rspamd): New variable. This patch did not apply for me, can you rebase it on current 'master'? > This patch adds a recipe for the "rspamd" spam filter. In an ideal world we > would have a service definition for this as well, but I don't know how to > write those yet, so I'd appreciate any help from the community. Rspamd already > has service definitions for systemd, we could try to translate those to the > Guix APIs. Cool! Feel free to drop by the #guix IRC channel for live help with writing service definitions. It may look intimidating with types and all, but is actually not that difficult. :-) [...] > + (synopsis "Fast, free and open-source spam filtering system") s/free and open-source// (everything is free in Guix by definition) Can you send an updated patch? Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFDBAEBCgAtFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl+MulkPHG1hcml1c0Bn bnUub3JnAAoJEKKgbfKjOlT6bycH/ROQsbUl7bTNFG8QgF+B48XgZz1ML0jCGWXk R0l3qlKOKxsHLQT9hVGjBs8/7tkII1EKkuRrDhlNFWrVHitvit200cFBfVqir3e2 VO9HAMbeO6hSV/4rkM6lXJXe1g4cP+6PmjgSmR69ZHx48A1wBXg7wkfXjW7WG043 xV444I9EzM+M1WnbUnnBSEDsP2GDeSC3k/YebwkY9WlVcqaCcbT7nos5YYMFfQ/z 9zh1v2aCsAwd8fF2yAgAh5N+KRJy7pnSOj3WxIJbOst5lLtDPFZUR5F3F51bTppg t9M7NxPNpeN8JnGtuUj9LJUdbY8RQIjauEf/dNHyaSggoeSqYd4= =GR6a -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 19 02:58:48 2020 Received: (at 43974) by debbugs.gnu.org; 19 Oct 2020 06:58:48 +0000 Received: from localhost ([127.0.0.1]:39732 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUP7z-0000yt-HN for submit@debbugs.gnu.org; Mon, 19 Oct 2020 02:58:48 -0400 Received: from mout02.posteo.de ([185.67.36.66]:52025) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUP7w-0000ye-IM for 43974@debbugs.gnu.org; Mon, 19 Oct 2020 02:58:42 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 14EE42400FE for <43974@debbugs.gnu.org>; Mon, 19 Oct 2020 08:58:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1603090714; bh=WM/N9O3S76JlSNSBby50fFXVwcLr58TF6mZj0WlSkyo=; h=From:To:Cc:Subject:Date:From; b=eM96Gnz3g/YLonpkg4h8+WFcFdqYYaNQGm5jhhg4dkUbeUEhtIgvEryUFwlYjtltZ jga69T8GJ8lt57OI476Dk4hSZv2ks4D+4GA0athF2NZjHzjfEXedBBsEem9qPtY2jv AgTfeqEsSNguroimnFGsMR+pZiLOipgKee2jOIV4Vh9E4Zt2Wve2yBZ4+DXLX4WtpT kDlT99ie3lMuKTxv+86h5W0S9hq2mgo8yT3pXX+1aXpdzAXVGo5qi4vAvivmR7n2O8 iHgTN13RpokNxydJVzqcO6DqreXFal/4xOlf5OteMAN6CC4efcjosdVS0Pq3fcCZ8m QGClhuLSUMSAA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CF6zY37Cqz9ryT; Mon, 19 Oct 2020 08:58:33 +0200 (CEST) From: Alexandru-Sergiu Marton To: 43974@debbugs.gnu.org Subject: [PATCH v2] gnu: Add rspamd. Date: Mon, 19 Oct 2020 12:58:08 +0300 Message-Id: <20201019095808.8401-1-brown121407@posteo.ro> X-Mailer: git-send-email 2.28.0 In-Reply-To: <87zh4jjixy.fsf@gnu.org> References: <87zh4jjixy.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43974 Cc: Alexandru-Sergiu Marton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/mail.scm (rspamd): New variable. --- This second version of the patch makes the patch apply on current master and corrects the synopsis. gnu/packages/mail.scm | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 5056098806..20d2fa440c 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -36,6 +36,7 @@ ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Alexey Abramov ;;; Copyright © 2020 Tim Gesthuizen +;;; Copyright © 2020 Alexandru-Sergiu Marton ;;; ;;; This file is part of GNU Guix. ;;; @@ -76,6 +77,7 @@ #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) #:use-module (gnu packages enchant) + #:use-module (gnu packages file) #:use-module (gnu packages gdb) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) @@ -116,6 +118,7 @@ #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages ragel) #:use-module (gnu packages rdf) #:use-module (gnu packages readline) #:use-module (gnu packages ruby) @@ -142,6 +145,7 @@ #:use-module (guix git-download) #:use-module (guix svn-download) #:use-module (guix utils) + #:use-module (guix build-system cmake) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system gnu) #:use-module (guix build-system guile) @@ -3918,3 +3922,42 @@ DKIM and ARC sign messages and output the corresponding signature headers.") based on asyncio.") (license (list license:asl2.0 license:lgpl3)))) ; only for setup_helpers.py + +(define-public rspamd + (package + (name "rspamd") + (version "2.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rspamd/rspamd") + (commit version))) + (sha256 + (base32 "0vwa7k2s2bkfb8w78z5izkd6ywjbzqysb0grls898y549hm8ii70")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags '("-DENABLE_LUAJIT=ON"))) + (inputs + `(("openssl" ,openssl) + ("glib" ,glib) + ("ragel" ,ragel) + ("luajit" ,luajit) + ("sqlite" ,sqlite) + ("file" ,file) + ("icu4c" ,icu4c) + ("pcre" ,pcre) + ("zlib" ,zlib) + ("perl" ,perl) + ("libsodium" ,libsodium))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (synopsis "Spam filtering system") + (description "Rspamd is an advanced spam filtering system that +allows evaluation of messages by a number of rules including regular +expressions, statistical analysis and custom services such as URL +black lists. Each message is analysed by Rspamd and given a spam +score.") + (home-page "https://www.rspamd.com/") + (license license:asl2.0))) -- 2.28.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 21 13:19:31 2020 Received: (at 43974-done) by debbugs.gnu.org; 21 Oct 2020 17:19:31 +0000 Received: from localhost ([127.0.0.1]:50422 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVHlq-0007jC-L7 for submit@debbugs.gnu.org; Wed, 21 Oct 2020 13:19:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVHlp-0007j0-B2 for 43974-done@debbugs.gnu.org; Wed, 21 Oct 2020 13:19:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53866) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVHlj-0003m6-M4; Wed, 21 Oct 2020 13:19:23 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44378 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kVHli-0006Ck-M8; Wed, 21 Oct 2020 13:19:23 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Alexandru-Sergiu Marton Subject: Re: [bug#43974] [PATCH v2] gnu: Add rspamd. References: <87zh4jjixy.fsf@gnu.org> <20201019095808.8401-1-brown121407@posteo.ro> Date: Wed, 21 Oct 2020 19:19:21 +0200 In-Reply-To: <20201019095808.8401-1-brown121407@posteo.ro> (Alexandru-Sergiu Marton's message of "Mon, 19 Oct 2020 12:58:08 +0300") Message-ID: <87tuunzecm.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43974-done Cc: 43974-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Alexandru-Sergiu Marton skribis: > * gnu/packages/mail.scm (rspamd): New variable. > --- > This second version of the patch makes the patch apply on current master= and > corrects the synopsis. Applied, thanks! Ludo=E2=80=99. From unknown Tue Jun 24 01:40:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 19 Nov 2020 12:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator