contrib/plan9/9mail
author Augie Fackler <augie@google.com>
Fri, 27 Apr 2018 13:37:10 -0400
changeset 37980 48378d0e9479
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
config: fix py3 backslash escaping bug in parser caught by tests Differential Revision: https://phab.mercurial-scm.org/D3525

#!/bin/rc
# 9mail - Mercurial email wrapper for upas/marshal

fn usage {
	echo >[1=2] usage: mercurial/9mail -f from to [cc]
	exit usage
}

from=()
cc=()
to=()

switch($1){
case -f
	from=$2
case *
	usage
}

to=($3)
if(~ $#* 4)
	cc=(-C $4)

upasname=$from
upas/marshal $cc $to