From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58303) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj5TK-0003aj-NZ for guix-patches@gnu.org; Fri, 27 Jul 2018 12:20:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj5TH-0001fG-Jv for guix-patches@gnu.org; Fri, 27 Jul 2018 12:20:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:55541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fj5TH-0001f1-En for guix-patches@gnu.org; Fri, 27 Jul 2018 12:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fj5TH-0001VU-33 for guix-patches@gnu.org; Fri, 27 Jul 2018 12:20:03 -0400 Subject: [bug#32294] [PATCH] gnu: Add imapfilter. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fj5Sl-0003DD-5w for guix-patches@gnu.org; Fri, 27 Jul 2018 12:19:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fj5Si-00018a-2V for guix-patches@gnu.org; Fri, 27 Jul 2018 12:19:31 -0400 Received: from mail1.fsfe.org ([217.69.89.151]:51670) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fj5Sh-00017g-Rd for guix-patches@gnu.org; Fri, 27 Jul 2018 12:19:27 -0400 From: Jelle Licht Date: Fri, 27 Jul 2018 18:19:23 +0200 Message-ID: <877elg8xdg.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 32294@debbugs.gnu.org * gnu/packages/mail.scm (imapfilter): New variable. --- gnu/packages/mail.scm | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 3d7b0e463..fc02fa50e 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2554,3 +2554,47 @@ and binaries. It supports offline reading, scoring and killfiles, yEnc, NZB, PGP handling, multiple servers, and secure connections.") ;; License of the docs: fdl-1.1; Others: gpl2. (license (list fdl1.1+ gpl2)))) + +(define-public imapfilter + (package + (name "imapfilter") + (version "2.6.11") + (source + (origin + (method url-fetch) + (uri + (string-append "https://github.com/lefcha/imapfilter/archive/" + "v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1yslvwr3w5fnl06gfrp0lim8zdlasx3cvgd2fsqi0695xnb9bsms")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + "CC=gcc") + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'fix-include-path + (lambda* (#:key inputs #:allow-other-keys) + (let ((pcre (assoc-ref inputs "pcre"))) + (substitute* "src/Makefile" + (("INCDIRS =") + (string-append "INCDIRS =" + "-I" pcre "/include"))) + #t)))))) + (native-inputs + `(("lua" ,lua) + ("pcre" ,pcre) + ("openssl" ,openssl))) + (home-page "https://github.com/lefcha/imapfilter") + (synopsis "IMAP mail filtering utility") + (description "@code{IMAPFilter} is a mail filtering utility. It connects +to remote mail servers using IMAP, sends searching queries to the server and +processes mailboxes based on the results. It can be used to delete, copy, +move, flag, etc. messages residing in mailboxes at the same or different mail +servers. The 4rev1 and 4 versions of IMAP are supported.") + (license license:expat))) -- 2.18.0