From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 05 14:38:05 2021 Received: (at submit) by debbugs.gnu.org; 5 Apr 2021 18:38:05 +0000 Received: from localhost ([127.0.0.1]:38554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTU6p-0001g0-0C for submit@debbugs.gnu.org; Mon, 05 Apr 2021 14:38:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:51770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTU6n-0001fs-38 for submit@debbugs.gnu.org; Mon, 05 Apr 2021 14:37:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTU6m-0002uW-Ry for guix-patches@gnu.org; Mon, 05 Apr 2021 14:37:56 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:54482) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTU6i-0001uM-TI for guix-patches@gnu.org; Mon, 05 Apr 2021 14:37:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QoVSCi5WE7s+xYyBqzOCqbgtBb9kQiZXLTJNRb9GbRM=; b=Kg3RRoGTpb/P1Qw3n0YPzaONkM oePsdveSKcYg3P8pzyPpCTSmbC4dav4alDE70ldDeFaOhNMxAtXCLHy6Uiu/mWaYFcqitjv1oYVLP SRCErrg5E9SHfvI0qDfjgnrZVsey97+pEciY0eqtH0LPlHyGOm9vL0yVVMFylujUYf4bAL6waE4Lx UPCD4kEePV4AKP5cVfTLosBzGBbu2ciNhZxD2amc8m/PQALf0NT0PdKs/QQUsiCc7/P2WwxEbOGF4 XQsHhIJVTi/9wMuFoteVfVVknC9Z1VbHGYzTeCwVzZwmKaBD8vwRmkK1ckFPg8tzVvGFv5ZViEFff sVsehFww==; Received: from [192.168.2.1] (helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lTU0G-0018qs-7v; Tue, 06 Apr 2021 00:01:12 +0530 From: Arun Isaac To: guix-patches@gnu.org Subject: [PATCH] gnu: Add crm114. Date: Tue, 6 Apr 2021 00:07:40 +0530 Message-Id: <20210405183740.9181-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Arun Isaac 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: -0.1 (/) * gnu/packages/mail.scm (crm114): New variable. --- gnu/packages/mail.scm | 82 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 489053544b..dfc45983df 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -17,7 +17,7 @@ ;;; Copyright © 2016, 2017 Troy Sankey ;;; Copyright © 2016, 2017, 2018 Nikita ;;; Copyright © 2016 Clément Lassieur -;;; Copyright © 2016, 2017, 2018, 2019, 2020 Arun Isaac +;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Arun Isaac ;;; Copyright © 2016 John Darrington ;;; Copyright © 2016, 2018 Marius Bakke ;;; Copyright © 2017 Thomas Danckaert @@ -129,6 +129,7 @@ #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages ragel) + #:use-module (gnu packages regex) #:use-module (gnu packages rdf) #:use-module (gnu packages readline) #:use-module (gnu packages ruby) @@ -4296,3 +4297,82 @@ black lists. Each message is analysed by Rspamd and given a spam score.") (home-page "https://www.rspamd.com/") (license license:asl2.0))) + +(define-public crm114 + (package + (name "crm114") + (version "20100106") + (source + (origin + (method url-fetch) + (uri (string-append "http://crm114.sourceforge.net/tarballs/crm114-" + version "-BlameMichelson.src.tar.gz")) + (sha256 + (base32 + "0awcjc5j2mclkkpbjyijj9mv8xjz3haljvaj0fyc4fm4xir68qpv")))) + (build-system gnu-build-system) + (arguments + `(#:modules ((guix build gnu-build-system) + ((guix build emacs-build-system) #:prefix emacs:) + (guix build utils) + (ice-9 string-fun)) + #:imported-modules (,@%gnu-build-system-modules + (guix build emacs-build-system) + (guix build emacs-utils)) + #:make-flags (list (string-append "prefix=" %output) + "LDFLAGS=") ; disable static linking + ;; Test suite is not fully automated. It requires a human to read the + ;; results and determine if the tests have passed. + #:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'fix-build + (lambda _ + ;; Inline functions can only be used from the same compilation + ;; unit. This causes the build to fail. + (substitute* "crm_svm_matrix.c" + (("^inline ") "")))) + (add-before 'install 'pre-install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Install maillib.crm library. + (install-file "maillib.crm" (string-append out "/share/crm")) + ;; Set absolute store paths. + (substitute* "mailreaver.crm" + (("insert maillib.crm") + (string-append "insert " out "/share/crm/maillib.crm")) + (("\\\\/bin\\\\/ls") + (string-replace-substring (which "ls") "/" "\\/")) + ((":\\*:trainer_invoke_command:") + (string-append out "/bin/mailtrainer.crm"))) + ;; Install mail related crm scripts. + (for-each (lambda (file) + (install-file file (string-append out "/bin"))) + (list "mailfilter.crm" "mailreaver.crm" "mailtrainer.crm")) + ;; Create emacs site-lisp directory so that the install phase + ;; can install crm-mode. + (mkdir-p (string-append out "/share/emacs/site-lisp"))))) + ;; Run phases from the emacs build system. + (add-after 'install 'make-autoloads + (assoc-ref emacs:%standard-phases 'make-autoloads)) + (add-after 'make-autoloads 'enable-autoloads-compilation + (assoc-ref emacs:%standard-phases 'enable-autoloads-compilation)) + (add-after 'enable-autoloads-compilation 'emacs-build + (assoc-ref emacs:%standard-phases 'build)) + (add-after 'emacs-build 'validate-compiled-autoloads + (assoc-ref emacs:%standard-phases 'validate-compiled-autoloads))))) + (inputs + `(("tre" ,tre))) + (native-inputs + `(("emacs" ,emacs-minimal))) + (home-page "http://crm114.sourceforge.net/") + (synopsis "Controllable regex mutilator") + (description "CRM114 is a system to examine incoming e-mail, system log +streams, data files or other data streams, and to sort, filter, or alter the +incoming files or data streams according to the user's wildest desires. +Criteria for categorization of data can be via a host of methods, including +regexes, approximate regexes, a Hidden Markov Model, Orthogonal Sparse +Bigrams, WINNOW, Correllation, KNN/Hyperspace, or Bit Entropy (or by other +means--it's all programmable).") + (license license:gpl3))) -- 2.31.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 21 14:51:57 2021 Received: (at 47604-done) by debbugs.gnu.org; 21 Apr 2021 18:51:58 +0000 Received: from localhost ([127.0.0.1]:59805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZHx7-0005bc-Pl for submit@debbugs.gnu.org; Wed, 21 Apr 2021 14:51:57 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:59242) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZHx5-0005bT-6e for 47604-done@debbugs.gnu.org; Wed, 21 Apr 2021 14:51:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:To:From:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yO7xXBsDnpDY9+FJQKNc72FIbXh+B81Z5BNzouXJZ7k=; b=AsMWQUTHF6aP0oHWhPdTUDkHw u1r/QdS0wCQU2BIg1VL5UfCKYhXXq8OIdT97Lyqp1VoYkfeN9OtpwzxlT6p1uklsK9YN4reIQz6Uu rRgp5NYOMdfjtz+OqJI/4fOtGqGq4d4gTe+F+vvZKUnLOibUo/Q6nFDdAniEtn3IAzXmQbCAgaTik HFAB+hR1v9fogoJPnTPMbqEbMW1ZbbetFD3Z4lZT7YUBLdh3PWVO3t+zjSlLvsmFh8NtUE6+TyMOA ro2r0U9Z9WA5MX6r0m00QS6TwpVA0Kvqd86EcW54SIfiblyS8k75gy+U87mIeB6Ohd9R9v6mOI4o3 w2s+RrN8w==; Received: from [192.168.2.1] (helo=steel) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lZHx2-000Xkb-Ut for 47604-done@debbugs.gnu.org; Thu, 22 Apr 2021 00:21:53 +0530 From: Arun Isaac To: 47604-done@debbugs.gnu.org Subject: Re: bug#47604: Acknowledgement ([PATCH] gnu: Add crm114.) In-Reply-To: References: <20210405183740.9181-1-arunisaac@systemreboot.net> Date: Thu, 22 Apr 2021 00:21:47 +0530 Message-ID: <87y2dbqxmk.fsf@systemreboot.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 47604-done 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 (-) --=-=-= Content-Type: text/plain Pushed to master since 2 weeks have passed and am confident that the patch works. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFPBAEBCAA5FiEEf3MDQ/Lwnzx3v3nTLiXui2GAK7MFAmCAdEQbHGFydW5pc2Fh Y0BzeXN0ZW1yZWJvb3QubmV0AAoJEC4l7othgCuzlaIIALTo8y8ciZXtPX1+H038 OJ+psMLR47spX/65EBnbCBo/71tjKbMLYgaUn93kEceOFo89Id/04kUeX/+gbNrY qQJkwf3NfKK3cqYEfS0IFWxmYYesXEbTsDEd0k61RJ639Rm671ZHhSIPljeAuh5r weP6MH1sTFU98XXDJIqYGaPFIB+wcZhGR1qSfVnYD800nVHbf5TOH8liiZb1j1Rg yW0O/Oj+19d7c8M/Ty0LMNanVXKu9Y3bieRrhDBHUwWUWJcJcvdydI+HYPtf1TpH qKQMeOn3WQayLFAmNdpZr28RsKUT/k3Ws3KKb+wNiD93UuZ/y7hslHu6/LdoWcAi BgM= =BPoZ -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Jun 23 14:58:46 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, 20 May 2021 11:24:04 +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