From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id AB34E1F9FD for ; Fri, 26 Mar 2021 16:32:12 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id w203-20020a1c49d40000b029010c706d0642so6209088wma.0 for ; Fri, 26 Mar 2021 09:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PL6AHPmh8MxUl/XTGfl5CL78Zz904AO+0qjQxn6nxXE=; b=KCQ3LO1mvtUfrqra7c6+Xxrrfe83ICaUdJ8wP44mwT6rKJxi/k574GpA+F7cuhuOel iAKj+S2SgoZGrCc+F0/oIE4RcEzZ9KRfne1BNAxM4F2oIpF8Rxj/XZ9r9KHaVs4Q4lMq ptmGER5bczIaKhYMjKPZfCV8+lWu35OuDwZvehXEqC7/1GOy7WP/a8yI+jC8mGwifjI4 yGCViIrhgIdHMGnRViOMW1ZbUPEtJX9dSQgbb8JP7nqMQE/53ZQFDTiJ+ScR8gSUhz4Q ugrtj6giJ3WgYwVouqmdplBaJVBMAcShRVfbBSEGw/WlHwOmWe5ODJcPwOZzpyFxAQmp qVPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PL6AHPmh8MxUl/XTGfl5CL78Zz904AO+0qjQxn6nxXE=; b=W6vqMSOQ7BVcTK97auQiDEO89IsRKJKn/9Uo/WK20Cg4T/lQBBClSpH2E5adR8Diig CKS0Ev227VVFpUwx7oL11FtufNMZcIZPDrSg1D0VDxrU+2bntFBFi0uiX4/Rp1uuNTtk yJ1uG8aFEuT94oM3/yEQuR5pxgArCDAd7LkfaC6ozxjUa7xXCMpYZQ/LxbZfZOSQOqCv 7gIkSqurgxH7Ap4M8rPczC5YBt0CTgUXK/1Do50AmV5mGq5wAthBkcOi2wBJGNuHQvHo Mdxh9hVMzGBtENPWt4VCM6Ff6jGzgnkecbBZHkAtZ5TQPtvZyIVm7Ghwj1o7tER1Zqn0 aqcA== X-Gm-Message-State: AOAM530MqwDcqgxsB8epoItaJkbEYHmaTkZLEo1XvdHZymqwwgCfODl9 QJ0QTfiquC2exyW7TG95lAmE8rCUNoKpQx4/sEE= X-Google-Smtp-Source: ABdhPJxZdIpcakeAfksL3m8RZg5o9OIlyJQI1MLohpnJnoO5nDPh4hWquHmmb/usG9douf+MFZEFNg== X-Received: by 2002:a05:600c:4150:: with SMTP id h16mr13831997wmm.120.1616776330769; Fri, 26 Mar 2021 09:32:10 -0700 (PDT) Received: from localhost.localdomain ([2a02:85f:2a0a:9300:501f:ca6d:3b18:1e72]) by smtp.googlemail.com with ESMTPSA id t8sm14182188wrr.10.2021.03.26.09.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 09:32:10 -0700 (PDT) From: Stavros Ntentos X-Google-Original-From: Stavros Ntentos <133706+stdedos@users.noreply.github.com> To: meta@public-inbox.org Cc: Eric Wong , stdedos+git@gmail.com, Stavros Ntentos <133706+stdedos@users.noreply.github.com> Subject: [PATCH v1] git-send-email-reply: Append subject Date: Fri, 26 Mar 2021 18:31:46 +0200 Message-Id: <20210326163146.30830-1-133706+stdedos@users.noreply.github.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: I keep copy-pasting the addresses provided, I keep writing my plaintext reply in a file, and I keep forgetting to add a subject (because I am "just" writing a plaintext file) Teach `git-send-email-reply` to append a `--subject` line. Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com> --- lib/PublicInbox/Reply.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/PublicInbox/Reply.pm b/lib/PublicInbox/Reply.pm index 8226fdc3..0f312fbe 100644 --- a/lib/PublicInbox/Reply.pm +++ b/lib/PublicInbox/Reply.pm @@ -103,6 +103,8 @@ sub mailto_arg_link { } } + push @arg, "--subject=".squote_maybe($subj); + # I'm not sure if address obfuscation and mailto: links can # be made compatible; and address obfuscation is misguided, # anyways. -- 2.31.0