From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QF0vLo/mtF8VKgAA0tVLHw (envelope-from ) for ; Wed, 18 Nov 2020 09:17:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2IA2Ko/mtF+/QAAAB5/wlQ (envelope-from ) for ; Wed, 18 Nov 2020 09:17:03 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 095E09403CD for ; Wed, 18 Nov 2020 09:17:03 +0000 (UTC) Received: from localhost ([::1]:42564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfJaH-0004YQ-Vk for larch@yhetil.org; Wed, 18 Nov 2020 04:17:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfJZL-0003hO-4O for guix-patches@gnu.org; Wed, 18 Nov 2020 04:16:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfJZK-0003GA-Pu for guix-patches@gnu.org; Wed, 18 Nov 2020 04:16:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kfJZK-0006um-M2 for guix-patches@gnu.org; Wed, 18 Nov 2020 04:16:02 -0500 Subject: bug#44501: [PATCH] gnu: Add mblaze. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 18 Nov 2020 09:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44501 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "B. Wilson" Cc: 44501-done@debbugs.gnu.org Mail-Followup-To: 44501@debbugs.gnu.org, mail@cbaines.net, elaexuotee@wilsonb.com Received: via spool by 44501-done@debbugs.gnu.org id=D44501.160569092324230 (code D ref 44501); Wed, 18 Nov 2020 09:16:02 +0000 Received: (at 44501-done) by debbugs.gnu.org; 18 Nov 2020 09:15:23 +0000 Received: from localhost ([127.0.0.1]:34105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfJYc-0006DC-Et for submit@debbugs.gnu.org; Wed, 18 Nov 2020 04:15:23 -0500 Received: from mira.cbaines.net ([212.71.252.8]:59078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfJYa-000695-2p for 44501-done@debbugs.gnu.org; Wed, 18 Nov 2020 04:15:17 -0500 Received: from localhost (188.30.135.14.threembb.co.uk [188.30.135.14]) by mira.cbaines.net (Postfix) with ESMTPSA id 18E2027BBF5; Wed, 18 Nov 2020 09:15:15 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 65a0695d; Wed, 18 Nov 2020 09:15:12 +0000 (UTC) References: <20201107100542.1479-1-elaexuotee@wilsonb.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201107100542.1479-1-elaexuotee@wilsonb.com> Date: Wed, 18 Nov 2020 09:15:12 +0000 Message-ID: <87ft57kov3.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: ABK+DUoz7ePm --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, This looks pretty good to me, I've pushed to master as df661fb960ed996c4378d10a5e5f24499335002c. B. Wilson via Guix-patches via writes: > * gnu/packages/mail.scm (mblaze): New variable. > --- > gnu/packages/mail.scm | 47 +++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index 44a156fd99..3d3e8ab540 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -37,6 +37,7 @@ > ;;; Copyright =C2=A9 2020 Alexey Abramov > ;;; Copyright =C2=A9 2020 Tim Gesthuizen > ;;; Copyright =C2=A9 2020 Alexandru-Sergiu Marton > +;;; Copyright =C2=A9 2020 B. Wilson > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -3960,3 +3961,49 @@ black lists. Each message is analysed by Rspamd a= nd given a spam > score.") > (home-page "https://www.rspamd.com/") > (license license:asl2.0))) > + > +(define-public mblaze > + (package > + (name "mblaze") > + (version "0.2") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/leahneukirchen/mblaze") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 "0p97zfl35ilrnrx9ynj82igsb698m9klikfaicw5jhjpf6qp2n3y"))= )) > + (build-system gnu-build-system) > + (native-inputs `(("perl" ,perl))) > + (arguments > + `(#:tests? #f ; XXX: Upstream tests appear to be broken I'm also unsure about the tests, I only has a quick look though. > + #:make-flags (list "CC=3Dgcc" "PREFIX=3D" I believe using (cc-for-target) is better than hardcoding gcc here, I think it's something to do with cross compiling: (string-append "CC=3D" ,(cc-for-target)) > + (string-append "DESTDIR=3D" %output)) > + #:phases (modify-phases %standard-phases (delete 'configure)))) > + (home-page "https://github.com/leahneukirchen/mblaze") > + (synopsis "Unix utilities to deal with Maildir") > + (description > + "The mblaze message system is a set of Unix utilities for processin= g and > +interacting with mail messages which are stored in maildir folders. > + > +Its design is roughly inspired by MH, the RAND Message Handling System, = but it > +is a complete implementation from scratch. > + > +mblaze is a classic command line MUA and has no features for receiving or > +transferring messages; you can operate on messages in a local maildir sp= ool, or > +fetch your messages using fdm(1), getmail(1), offlineimap(1), or similar > +utilities, and send it using dma(8), msmtp(1), sendmail(8), as provided = by > +OpenSMTPD, Postfix, or similar. > + > +mblaze operates directly on maildir folders and doesn't use its own cach= es or > +databases. There is no setup needed for many uses. All utilities have = been > +written with performance in mind. Enumeration of all messages in a mail= dir > +is avoided unless necessary, and then optimized to limit syscalls. Pars= ing > +message metadata is optimized to limit I/O requests. Initial operations= on a > +large maildir may feel slow, but as soon as they are in the file system = cache, > +everything is blazingly fast. The utilities are written to be memory ef= ficient > +(i.e. not wasteful), but whole messages are assumed to fit into RAM easi= ly > +(one at a time).") > + (license license:public-domain))) I also moved this definition up from the bottom of mail.scm. If everyone adds packages at the bottom of modules, it makes Git conflicts more likely, so it's best to avoid the bottom, unless you specifically want the package to go there. Generally all fine though, Thanks again, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl+05iBfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XfSURAArAZpVm6xoky2RMctm8HgYYjpIo1u5xwY kbVN7DAOAgnFazwmC1YV6T9X29HSDtBIi4e95t+r3Lq/+ZSt2aqvLut3SPbzqi9Y SG0pIrozEhAa+hhoFl69ZyWhmROAe7S76gi0gAHeo9bvljQ+fqylLU1LhiVnZfrU 9tXmHIghyZh+SHDUbjAGoKfuCS9nRGfLv+mauSkjZoP53MTobTbu3oPMOw01TA2P KHd3Z6jUt4Xh+HB+44AANuEu4QFq+7EDiSuewc75SPIGB9EoIJxgDKWfXrOVyg7k bGlZEpc3pFH3EMdd3QwiCtLSzhBvxt5rVrxCy5KDciG4A0aWUWUmeC2suIW8guD3 9iecj3ngrRxxoiXvatW3MdLEug2t28FG7iHUSxWLYC8YhFQDKVgcQufSUPoGREAX azwxXFOB+SAnQx460YAel0bDQEPxEpya/8wAHB7yGjnM7UNBW4snFKs4sk0j8C0Z fmQOKd1gAYbFyWkpWyfLU+omLDQM2il7v4OY93FiUPLWL9Pl76xUergS1HI0WFrH Oj6MG2Ur+l2cyRNwitobnt6ZaEr7agmH+5W2hToXTXUHuLY15vLb/tBX2BJm60X9 ADbwtimX9LSQ+88Ej/3oBonXjJq9tzez2hwkc318/MHH1CVxPtYz/7ewxK3T+00H 7w5jIQygWyo= =NOFB -----END PGP SIGNATURE----- --=-=-=--