about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-01-02 18:29:27 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-01-02 18:29:27 +0100
commitae720c51e022fd07217ac77f7452821ca0033839 (patch)
tree3528f49ed297712d2fe1d89931fe7c585b3364f2
parent5280abfa10d04fc294778f85335dcb72498481d7 (diff)
downloadmblaze-ae720c51e022fd07217ac77f7452821ca0033839.tar.gz
mblaze-ae720c51e022fd07217ac77f7452821ca0033839.tar.xz
mblaze-ae720c51e022fd07217ac77f7452821ca0033839.zip
mrep: add -noquote
Closes #139.
-rw-r--r--man/mcom.14
-rwxr-xr-xmcom10
2 files changed, 12 insertions, 2 deletions
diff --git a/man/mcom.1 b/man/mcom.1
index 53a6c79..4d4c81b 100644
--- a/man/mcom.1
+++ b/man/mcom.1
@@ -14,6 +14,7 @@
 .Nm mcom
 .Fl r Op draft
 .Nm mrep
+.Op Fl noquote
 .Op Fl Ar header Ar values\ ... Fl -
 .Ar msg
 .Nm mfwd
@@ -36,6 +37,9 @@ by default, the last modified draft will be edited.
 .Nm mrep
 creates the draft such that the message will be a reply to
 .Ar msg .
+Unless
+.Fl noquote
+is passed, it will contain the original mail quoted.
 .Pp
 .Nm mfwd
 creates the draft with a subject and body appropriate
diff --git a/mcom b/mcom
index 45be6fb..0d7f304 100755
--- a/mcom
+++ b/mcom
@@ -76,6 +76,7 @@ default_from=$(mhdr -h local-mailbox "$MBLAZE/profile")
 
 hdrs=
 resume=
+noquote=
 case "$0" in
 *mcom*)
 	hdr=to
@@ -160,6 +161,9 @@ case "$0" in
 		--)
 			shift
 			break;;
+		-noquote)
+			noquote=1
+			shift;;
 		-??*)
 			hdr=${1#-}
 			shift;;
@@ -308,8 +312,10 @@ fi
 		cat "$MBLAZE/headers" 2>/dev/null
 		printf '\n'
 
-		mquote "$1"
-		printf '\n'
+		if [ -z "$noquote" ]; then
+			mquote "$1"
+			printf '\n'
+		fi
 		(
 			IFS=$NL
 			cat -- /dev/null $(printf '%s' "$hdrs" | mhdr -M -h body /dev/stdin)