Github messages for mblaze
 help / color / mirror / Atom feed
* [PR PATCH] Add a template argument to hyrate default body
@ 2021-07-06 16:18 Eluminae
  2021-07-06 16:27 ` leahneukirchen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Eluminae @ 2021-07-06 16:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

There is a new pull request by Eluminae against master on the mblaze repository

https://github.com/Eluminae/mblaze template
https://github.com/leahneukirchen/mblaze/pull/211

Add a template argument to hyrate default body
I firstly though about adapting SIGNATURE. The thing is that people probably rely on existing configuration so I added a simple argument for that.

A patch file from https://github.com/leahneukirchen/mblaze/pull/211.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-template-211.patch --]
[-- Type: text/x-diff, Size: 1127 bytes --]

From 20176430ebebcf69d928efc50bfe8f24de6f97ae Mon Sep 17 00:00:00 2001
From: Stacy Harper <contact@stacyharper.net>
Date: Tue, 6 Jul 2021 17:35:13 +0200
Subject: [PATCH] Add a template argument to hyrate default body

---
 mcom | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/mcom b/mcom
index 4c1027f..cca1c47 100755
--- a/mcom
+++ b/mcom
@@ -110,6 +110,7 @@ defaultc=e
 hdrs=
 resume=
 noquote=
+template=
 case "$0" in
 *mcom*)
 	hdr=to
@@ -137,6 +138,11 @@ case "$0" in
 				shift
 			fi
 			;;
+		-t)
+			shift
+			template="$1"
+			shift
+			;;
 		-send)
 			defaultc=justsend
 			shift;;
@@ -214,6 +220,11 @@ case "$0" in
 		-send)
 			defaultc=justsend
 			shift;;
+		-t)
+			shift
+			template="$1"
+			shift
+			;;
 		-noquote)
 			noquote=1
 			shift;;
@@ -403,6 +414,14 @@ fi
 	case "$0" in
 	*mbnc*) ;;
 	*)
+		if [ -n "$template" ]; then
+			if [ ! -r "$template" ]; then
+				printf "The template %s in unredeable\n" "$template" >&2
+				exit 1
+			fi
+			cat "$template"
+		fi
+
 		if [ -f "$MBLAZE/signature" ]; then
 			SIGNATURE="$MBLAZE/signature"
 		elif [ -f ~/.signature ]; then

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add a template argument to hyrate default body
  2021-07-06 16:18 [PR PATCH] Add a template argument to hyrate default body Eluminae
@ 2021-07-06 16:27 ` leahneukirchen
  2021-07-06 16:31 ` Eluminae
  2021-07-06 16:31 ` [PR PATCH] [Closed]: " Eluminae
  2 siblings, 0 replies; 4+ messages in thread
From: leahneukirchen @ 2021-07-06 16:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

New comment by leahneukirchen on mblaze repository

https://github.com/leahneukirchen/mblaze/pull/211#issuecomment-874906158

Comment:
mcom(1):
> The flag -body file can be used to
> prepopulate the draft for mcom and mrep with the contents of file.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Add a template argument to hyrate default body
  2021-07-06 16:18 [PR PATCH] Add a template argument to hyrate default body Eluminae
  2021-07-06 16:27 ` leahneukirchen
@ 2021-07-06 16:31 ` Eluminae
  2021-07-06 16:31 ` [PR PATCH] [Closed]: " Eluminae
  2 siblings, 0 replies; 4+ messages in thread
From: Eluminae @ 2021-07-06 16:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 139 bytes --]

New comment by Eluminae on mblaze repository

https://github.com/leahneukirchen/mblaze/pull/211#issuecomment-874909102

Comment:
nice. UwU

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PR PATCH] [Closed]: Add a template argument to hyrate default body
  2021-07-06 16:18 [PR PATCH] Add a template argument to hyrate default body Eluminae
  2021-07-06 16:27 ` leahneukirchen
  2021-07-06 16:31 ` Eluminae
@ 2021-07-06 16:31 ` Eluminae
  2 siblings, 0 replies; 4+ messages in thread
From: Eluminae @ 2021-07-06 16:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

There's a closed pull request on the mblaze repository

Add a template argument to hyrate default body
https://github.com/leahneukirchen/mblaze/pull/211

Description:
I firstly though about adapting SIGNATURE. The thing is that people probably rely on existing configuration so I added a simple argument for that.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-06 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06 16:18 [PR PATCH] Add a template argument to hyrate default body Eluminae
2021-07-06 16:27 ` leahneukirchen
2021-07-06 16:31 ` Eluminae
2021-07-06 16:31 ` [PR PATCH] [Closed]: " Eluminae

Github messages for mblaze

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/mblaze-github

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 mblaze-github mblaze-github/ http://inbox.vuxu.org/mblaze-github \
		mblaze-github@inbox.vuxu.org
	public-inbox-index mblaze-github

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.github.mblaze


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git