From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4FfkBsYNR2CSXAAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 05:55:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SGHHAsYNR2BmKgAAbx9fmQ (envelope-from ) for ; Tue, 09 Mar 2021 05:55:18 +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 7A72123CFF for ; Tue, 9 Mar 2021 06:55:12 +0100 (CET) Received: from localhost ([::1]:42250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJVKp-000524-Nc for larch@yhetil.org; Tue, 09 Mar 2021 00:55:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJVKi-00051y-9d for guix-patches@gnu.org; Tue, 09 Mar 2021 00:55:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:33856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJVKg-0000Uf-JS for guix-patches@gnu.org; Tue, 09 Mar 2021 00:55:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJVKg-00035h-HZ for guix-patches@gnu.org; Tue, 09 Mar 2021 00:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#47015] [PATCH] gnu: Add go-gitlab.com-shackra-goimapnotify Resent-From: Benoit Joly Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 09 Mar 2021 05:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47015 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47015@debbugs.gnu.org Cc: Benoit Joly X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161526926011825 (code B ref -1); Tue, 09 Mar 2021 05:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 Mar 2021 05:54:20 +0000 Received: from localhost ([127.0.0.1]:45402 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJVJz-00034e-7c for submit@debbugs.gnu.org; Tue, 09 Mar 2021 00:54:19 -0500 Received: from lists.gnu.org ([209.51.188.17]:54178) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJUuj-0002T8-92 for submit@debbugs.gnu.org; Tue, 09 Mar 2021 00:28:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJUuj-0004PA-0r for guix-patches@gnu.org; Tue, 09 Mar 2021 00:28:13 -0500 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]:28844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1lJUug-0000d8-GY for guix-patches@gnu.org; Tue, 09 Mar 2021 00:28:12 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4DvkJ35PNvzQjmY; Tue, 9 Mar 2021 06:28:03 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benoitj.ca; s=MBO0001; t=1615267681; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m45Ud/r5yFXQgEYuhcpmDnkJGfUqAdrSg/bkiRiIvqk=; b=t0oRLmLEtbzvr6sPltHwH/kuCIifl5BRi5anQZhMClQ6ADLAtrcPiSHk2dOdFQxzLTsMiq 2Q6d0GQdL3CXFqgJI8jGM8YQ15B+hmCNgkoWIgwejBb2INETsd4BkiPgBy+tyidDE/c2SA jGtCM2BfmMHTqWBpPWQY3Pq9LL8QoK2od3rptNtYGwWZe1OgIVqdLjmRxufLU6lzVdoMkI OUQVRGjF1OF/JJi/HgUqhVppGEdeNEjR9ywPn7ZyHO/I9G3l5FcRcacFTHn2GpVMeSVt6s R0i9TrfJJKkaZIdYoYzSawOdrToEHtNe6UCYXvPXFkuqhxx/kYsdK6xLLsK56A== Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id uf7PIJZD3PBi; Tue, 9 Mar 2021 06:27:59 +0100 (CET) From: Benoit Joly Date: Tue, 9 Mar 2021 00:27:55 -0500 Message-Id: <20210309052755.15896-1-benoit@benoitj.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -15.84 / 15.00 / 15.00 X-Rspamd-Queue-Id: 654D717D1 X-Rspamd-UID: 10fd22 Received-SPF: pass client-ip=2001:67c:2050::465:201; envelope-from=benoit@benoitj.ca; helo=mout-p-201.mailbox.org 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 09 Mar 2021 00:54:17 -0500 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=1615269312; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=m45Ud/r5yFXQgEYuhcpmDnkJGfUqAdrSg/bkiRiIvqk=; b=lF0T6sEEq7DQ9xG8H1ZQ/Y2o/OhAObVcL4GxoCzfqRPXh352uVJB+f1n9HbFbf5qr1Xpmf ZotoM9KVq8OO49XRnCxo4IdUOZF5OYpARjIrp3PmJ0HhPbGJ1P7zUijkDHlPvzhqsWZnnu qIVmGdRxSUOp6yc0LEKIH+aE0DFynuMiIW9zdqmfjraZ0lxmU2NlyjoXRsLObFNGPOgVrS G7naGEgUVraaWtZbbDeEzFdpELNb5FHKeAce3xVucaWuvAOY9L+k1ikS53EM+hHBI1FxRK Ln3+BiP79umzDq9vnGlsunYWDNf0cxOwWRN9ioGkRa10h7VA4IlqOB5dcRYx0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615269312; a=rsa-sha256; cv=none; b=X8B2o7frmiQBrySl01L8GdwEZ9WWfqMbm2UCQrGfvdAffm9w8Ug+bI69ojzC55PaR9sIUq EKALnV/XpCBASml6thUKhaxD8pI+tIXIjHJaIlhvP2ZP8wreuPZ6yKTZu4ZJt2bvxsu0e3 LKeEgr2MM4vlYITSTX98nLqXwYw/sLt/cX0RVqnzvm4tIY2iIrQm/5HnfjjyhF2g/Gk5ht WOFXqYcCJeHNDVflNp3Ek0p9+NX4fNvgjKC54sq4Q8KD/+lKWgsEFZoCX3i5h/rxaImPng kbxHWhhvJeyyxPt7FUkqSt4ORpDpDORsI4eE/n7CWexxJU4pcR9yHFG8jFkeZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=benoitj.ca header.s=MBO0001 header.b=t0oRLmLE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=benoitj.ca (policy=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: -0.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=benoitj.ca header.s=MBO0001 header.b=t0oRLmLE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=benoitj.ca (policy=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: 7A72123CFF X-Spam-Score: -0.28 X-Migadu-Scanner: scn0.migadu.com X-TUID: V6Sy5C+DwGjQ * 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 © 2020 B. Wilson ;;; Copyright © 2020 divoplade ;;; Copyright © 2021 Xinglu Chen +;;; Copyright © 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 and 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-imap) + ("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-sasl) + ("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 messages) using IDLE, golang version.") + (home-page "https://gitlab.com/shackra/goimapnotify") + (license license:gpl3+)))) -- 2.30.1