From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8AKdOPnHXGC4PQAAgWs5BA (envelope-from ) for ; Thu, 25 Mar 2021 18:27:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YMcwNPnHXGDaUAAAbx9fmQ (envelope-from ) for ; Thu, 25 Mar 2021 17:27:21 +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 7B44413E6D for ; Thu, 25 Mar 2021 18:27:21 +0100 (CET) Received: from localhost ([::1]:43536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lPTlQ-0003Uq-Fj for larch@yhetil.org; Thu, 25 Mar 2021 13:27:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50888) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lPTiE-0001zo-FT for guix-patches@gnu.org; Thu, 25 Mar 2021 13:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lPTiE-0007iV-4B for guix-patches@gnu.org; Thu, 25 Mar 2021 13:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lPTiD-0005oh-W6 for guix-patches@gnu.org; Thu, 25 Mar 2021 13:24:02 -0400 Subject: bug#47015: [PATCH] gnu: Add go-gitlab.com-shackra-goimapnotify Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Thu, 25 Mar 2021 17:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 47015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Benoit Joly Cc: 47015-done@debbugs.gnu.org Mail-Followup-To: 47015@debbugs.gnu.org, mail@cbaines.net, benoit@benoitj.ca Received: via spool by 47015-done@debbugs.gnu.org id=D47015.161669300622304 (code D ref 47015); Thu, 25 Mar 2021 17:24:01 +0000 Received: (at 47015-done) by debbugs.gnu.org; 25 Mar 2021 17:23:26 +0000 Received: from localhost ([127.0.0.1]:39492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPThZ-0005nZ-9P for submit@debbugs.gnu.org; Thu, 25 Mar 2021 13:23:26 -0400 Received: from mira.cbaines.net ([212.71.252.8]:44182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lPThX-0005nQ-8j for 47015-done@debbugs.gnu.org; Thu, 25 Mar 2021 13:23:20 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id 50A5B27BC5C; Thu, 25 Mar 2021 17:23:18 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 1efefa4b; Thu, 25 Mar 2021 17:23:18 +0000 (UTC) References: <20210309052755.15896-1-benoit@benoitj.ca> User-agent: mu4e 1.4.15; emacs 27.1 From: Christopher Baines In-reply-to: <20210309052755.15896-1-benoit@benoitj.ca> Date: Thu, 25 Mar 2021 17:23:17 +0000 Message-ID: <87mtur9mgq.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1616693241; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=3MjOdcJnHUN/5ncvQ3KQ6pPMI0S+jt4AK8QtGFqSa9Q=; b=ZA37YH1/aHj2kjACHnRIK8ETwIVbAzMO1WjHxCnOwL97QkQIDO818iewb0Q3hndOAh0tC8 hPtXZXA+s+FwwVx/+dCUPr7ciWQ/OaT0RMUUMgP4H3f+19J+PJiQtMo4Zak+8I87emydjP whVAEJTI1u7uFrHNod1W0kwFUmhXFqPKQqbIVVZd8PZHa6gaK5B/G2LrGQtbbDFONigcQD yXZFVjHNF/6lmz08AasLOWPzaWSlS/riqcpd3iiq1SGAkC1aeILO9/oJJPIw6ewSKHkNrT U8v8lr64MUpUubqMCZ1zF7jhdd+FJ/4PDds92K3t4CQ9VGy0URBPfleEV0A4DA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1616693241; a=rsa-sha256; cv=none; b=lWbgHfjxcIrDnv//xQ5ElMjhC+xzA3D+27TaX6aRGtzN8EGVwp6ipUhsZMYN8BeMBykL8q ozG2aAWcKmAvGpAJlh1mlBTKHhX5w3wkk1ZZHdXQfXY4j5eCgMCUqjSElHo7oStDkPhjZi u9Cyl51WmTGPt0pubkbCYrU9LA8meG1oPJtu8hPeWPzbyDBiduyg6km3CXTMvWGrqclius hFud/RTdguVbMz/6J25kYuzSe5tsRr7h1DUPPdNFPFuSftqot0MchI/5CYfkYL8vArHKbl 0GZo2LU+Otg3v+KVJYi+sCtNl0kPy0k+mHpqb20ezbDHi5USr2vit+xf2pYzyw== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -4.52 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-Migadu-Queue-Id: 7B44413E6D X-Spam-Score: -4.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: jpSTJEiY2JPO --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Benoit Joly writes: > * gnu/packages/mail.scm (go-gitlab.com-shackra-goimapnotify): New > variable. > --- > gnu/packages/mail.scm | 33 +++++++++++++++++++++++++++++++++ > 1 file changed, 33 insertions(+) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index d21c0e204d..5e88c87dd9 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -41,6 +41,7 @@ > ;;; Copyright =C2=A9 2020 B. Wilson > ;;; Copyright =C2=A9 2020 divoplade > ;;; Copyright =C2=A9 2021 Xinglu Chen > +;;; Copyright =C2=A9 2021 Benoit Joly > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -87,6 +88,7 @@ > #:use-module (gnu packages gettext) > #:use-module (gnu packages ghostscript) > #:use-module (gnu packages glib) > + #:use-module (gnu packages golang) > #:use-module (gnu packages gnome) > #:use-module (gnu packages gnupg) > #:use-module (gnu packages groff) > @@ -154,6 +156,7 @@ > #:use-module (guix utils) > #:use-module (guix build-system cmake) > #:use-module (guix build-system glib-or-gtk) > + #:use-module (guix build-system go) > #:use-module (guix build-system gnu) > #:use-module (guix build-system guile) > #:use-module (guix build-system perl) > @@ -4221,3 +4224,33 @@ 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 go-gitlab.com-shackra-goimapnotify > + (let ((commit "832bc7112db9b28e28d69e90b91ea6c005244c9b") > + (revision "0")) > + (package > + (name "go-gitlab.com-shackra-goimapnotify") > + (version (git-version "0.0.0" revision commit)) > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://gitlab.com/shackra/goimapnotify") > + (commit commit))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1h27kshx4vwl5k6vc2szsq3d701fzs4gczjypz907f8hj0lrnjmy"= )))) > + (build-system go-build-system) > + (arguments > + `(#:import-path "gitlab.com/shackra/goimapnotify")) > + (propagated-inputs > + `(("go-github-com-emersion-go-imap" ,go-github-com-emersion-go-im= ap) > + ("go-github-com-emersion-go-imap-idle" ,go-github-com-emersion-= go-imap-idle) > + ("go-github-com-emersion-go-sasl" ,go-github-com-emersion-go-sa= sl) > + ("go-github-com-sirupsen-logrus" ,go-github-com-sirupsen-logrus) > + ("go-golang-org-x-text" ,go-golang-org-x-text))) > + (synopsis "Execute scripts on IMAP mailbox changes.") > + (description > + "Execute scripts on IMAP mailbox changes (new/deleted/updated mes= sages) using IDLE, golang version.") > + (home-page "https://gitlab.com/shackra/goimapnotify") > + (license license:gpl3+)))) Hi Benoit, I've pushed this to the master branch as af3bf6b481b1cd134c02fecc9dc221bd045e65f8. I made a few small changes, I moved the definition up in the file, to avoid merge conflicts at the bottom. I also solved a lint warning about a long line. Thanks, Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmBcxwVfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xe9/Q/9ExtOTQLc8fR1D6AjII+bYOuE7UBIb7My wyN3oMsecfipymdf5n4WdSB1meLttJ4kPBmrxEeZzglHS9R3qEPkMimzyNJIgqHQ tfDI2GijKMCmvgn7lFmhOWF8MtS6BgwSrYXYctRMgTvPxvUAmThIEoHAkqSi9Rl/ vrG0jAq9mR2/wjK999eK8l/dF0zTuPzm5uhZdGCYLa1djkFAYrHSBUPF9Y/v+z+T Ife8e4zCS11WsIo0vHEZsKELp6oK3qdF+956K5Vc+g5b6EYDJgccQvnXp3IKScmK rlpOFtzopqbcq4ffzhMUZkWPw2SEwa+vEOCwjU8Dr7O9GbJRYcMRXWBtMxN/KCLr 3of19wnDThrx8k1t/58zz1L+Xdgb5KGOPC5fMH6OE9MURNIxMzsZql15s4CDLn7u vxb1wd0N7b3+qahMFioxZcH/0Pr4lVPC2d+WMlqEfgfVVn/6nEjNwRaBhEcBVRcm loXl8WYkBIgCgnNrK4KIj0WdMYwQspNFQbtZWwTwkGrq+oXo094feibsaBAfqGSh mXMXssbYfdErTIbEsBTuNckxijDSavr0kRMkRLMm1NworGQeEdO0lkHOkxwbCDJ8 qcGVYVDS0W+vJWqmZ4KBnOMtyKFZoSrcEFeTQno5vxGr+2qv+9itqkvTCGJlo2fB I5cQ4dHtI1s= =2Z93 -----END PGP SIGNATURE----- --=-=-=--