contrib/plan9/9mail
author Matt Harbison <matt_harbison@yahoo.com>
Sun, 02 Nov 2014 14:58:50 -0500
changeset 23148 b405dd6c90bf
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
filemerge: split the logic for finding an external tool to its own function This will be used by extdiff in an subsequent patch.

#!/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