From patchwork Sun Nov 14 20:36:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip McGrath X-Patchwork-Id: 450 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D4DC827BBE3; Sun, 14 Nov 2021 20:37:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2DA8627BBE1 for ; Sun, 14 Nov 2021 20:37:16 +0000 (GMT) Received: from localhost ([::1]:52206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmMFX-0007Et-C1 for patchwork@mira.cbaines.net; Sun, 14 Nov 2021 15:37:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmMFK-0007Ek-No for guix-patches@gnu.org; Sun, 14 Nov 2021 15:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40286) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmMFK-0001wO-Ff for guix-patches@gnu.org; Sun, 14 Nov 2021 15:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmMFK-0007KW-DU; Sun, 14 Nov 2021 15:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51853] [PATCH 0/2] gnu: sendgmail: Rename package; don't limit domain. Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: philip+debbugs.cc@philipmcgrath.com, guix-patches@gnu.org Resent-Date: Sun, 14 Nov 2021 20:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51853 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51853@debbugs.gnu.org Cc: Philip McGrath X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Philip McGrath Received: via spool by submit@debbugs.gnu.org id=B.163692218128112 (code B ref -1); Sun, 14 Nov 2021 20:37:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Nov 2021 20:36:21 +0000 Received: from localhost ([127.0.0.1]:51831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmMEf-0007JM-El for submit@debbugs.gnu.org; Sun, 14 Nov 2021 15:36:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:53820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmMEd-0007JD-Fj for submit@debbugs.gnu.org; Sun, 14 Nov 2021 15:36:19 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmMEd-0007B5-95 for guix-patches@gnu.org; Sun, 14 Nov 2021 15:36:19 -0500 Received: from [2607:f8b0:4864:20::831] (port=43671 helo=mail-qt1-x831.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmMEb-0001sP-22 for guix-patches@gnu.org; Sun, 14 Nov 2021 15:36:18 -0500 Received: by mail-qt1-x831.google.com with SMTP id q14so13738436qtx.10 for ; Sun, 14 Nov 2021 12:36:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=znWRmze/QVFAx4bEhUN+uNz4JoGV/4BKUKoHXxf/EYc=; b=glhtiWAWZ1jM4n3PiWaXKAz9qT7UZf869j8TnOb4H21JgpJr7hgz4qM+vzXBhEw3Pm 519m03TLUEhKr+Sf8+q+B6Y5sOxHXhvZnbwfTknxHB76SlVKArn1326p8/0JHI6e0csw 34996GYK3YYdIwSNgyT2gFyoWfy0b30b3OZiuQpjMyu4pSHpF76G28omwLC2otuFJ1yi 49bRHLWWiPpL/GWlixfrJO+kymqGVpm9z12I81e5CLQeM4Vs9h6l4x3nhP1DKwBJ30Pi HamgDpSEvlmsU0MCGBO4SXHop6+TBy/90jy0ma4/D+1fEYwhoPlvVzECVWaQARHFfmAH lh3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=znWRmze/QVFAx4bEhUN+uNz4JoGV/4BKUKoHXxf/EYc=; b=0HiP+6mdzl50M3RRhqwx+mhcYdyWgH8qU9W68yxqlEILXwxL39URZ1Ra7DVHxkX2el o8ummS3+xIlg08Ma9CeQcZkL7ZlhcgQWZKFywgPAU5D/qDw1w3Bx2oePaK63tEcFY41c U+Tf0/p3hVE54G0lF/i0yF6FgbtGgGOVxBuPoawmCSuM1IHCqp9xQdh3KDtZO5S8pVAh yRjUfDARkEyVZCAHTsKXQ0e/8JjbXQS/ZnaVtjrNBMGpuFg42oZn6lJa3D+dQBy/RMfs 1YIEvhD2Y+YuyeYsjVlzs25cInh/5qaaig7JJ6JGO3wHwX33DUrxdhyDqFkKv9rdpPvj yxRg== X-Gm-Message-State: AOAM531lH1DIn+cIffDsQKMp/FWyffdzTxRxC+AWQJUc97q8KH8er++D pZVqRyftXtLwhBeAkZ2PJmmEdw0wKIjkuyBw X-Google-Smtp-Source: ABdhPJykxoIjfkj7jwWDWK2bMKNuDwyEaSgwhHPJSjhsWpNrbLFFrwUiG2OH57e3kVfD28XCDzPz2w== X-Received: by 2002:ac8:5a01:: with SMTP id n1mr760781qta.13.1636922175743; Sun, 14 Nov 2021 12:36:15 -0800 (PST) Received: from localhost (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id i6sm6122482qkn.26.2021.11.14.12.36.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Nov 2021 12:36:15 -0800 (PST) From: Philip McGrath Date: Sun, 14 Nov 2021 15:36:14 -0500 Message-Id: <20211114203614.89441-1-philip@philipmcgrath.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::831 (failed) Received-SPF: neutral client-ip=2607:f8b0:4864:20::831; envelope-from=philip@philipmcgrath.com; helo=mail-qt1-x831.google.com X-Spam_score_int: -4 X-Spam_score: -0.5 X-Spam_bar: / X-Spam_report: (-0.5 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This patch series continues where the discussion in left off. For anyone who isn't aware of `sendgmail` at all, one reason it's notable is that it's recommended in (by the SourceHut developers). The first commit renames the sendgmail package to match the name of the command, rather than the (remarkably long) Go import path. The second commit applies some patches to let the command also work for non-`@gmail.com` email addresses, with an interface compatible with all known forks. There's more detail on that below. I am using the resulting package: /gnu/store/38bv07yrqzqwfgbdg8f1qswp1kpidw1l-sendgmail-0.0.0-1.e322915 to send these emails. Philip McGrath (2): gnu: sendgmail: Rename package to match command. gnu: sendgmail: Don't limit domain name of sender. gnu/local.mk | 2 + gnu/packages/golang.scm | 36 +--------------- gnu/packages/mail.scm | 43 +++++++++++++++++++ ...sendgmail-accept-ignored-gsuite-flag.patch | 39 +++++++++++++++++ .../sendgmail-remove-domain-restriction.patch | 34 +++++++++++++++ 5 files changed, 119 insertions(+), 35 deletions(-) create mode 100644 gnu/packages/patches/sendgmail-accept-ignored-gsuite-flag.patch create mode 100644 gnu/packages/patches/sendgmail-remove-domain-restriction.patch