From ae720c51e022fd07217ac77f7452821ca0033839 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Wed, 2 Jan 2019 18:29:27 +0100 Subject: mrep: add -noquote Closes #139. --- mcom | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'mcom') 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) -- cgit 1.4.1