GNU bug report logs - #63215
[PATCH mumi 0/2] Cc all issue participants when sending email

Previous Next

Package: mumi;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Mon, 1 May 2023 20:58:02 UTC

Severity: normal

Tags: patch

Done: Arun Isaac <arunisaac <at> systemreboot.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 63215 <at> debbugs.gnu.org (full text, mbox):

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 63215 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH mumi 1/2] client: Support passing options to git send-email.
Date: Mon,  1 May 2023 22:01:50 +0100
* mumi/client.scm (git-send-email): Add options optional argument.
---
 mumi/client.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/mumi/client.scm b/mumi/client.scm
index b8d588b..2750836 100644
--- a/mumi/client.scm
+++ b/mumi/client.scm
@@ -207,12 +207,13 @@ arguments."
          (cut proc port)
          (cut close-pipe port))))))
 
-(define (git-send-email to patches)
-  "Send PATCHES using git send-email to the TO address and return the
-message ID of the first email sent."
+(define* (git-send-email to patches #:optional (options '()))
+  "Send PATCHES using git send-email to the TO address with
+OPTIONS. Return the message ID of the first email sent."
   (let ((command (cons* "git" "send-email"
                         (string-append "--to=" to)
-                        patches)))
+                        (append options
+                                patches))))
     (display (string-join command))
     (newline)
     (call-with-input-pipe command
-- 
2.39.2





This bug report was last modified 1 year and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.