contrib/plan9/9mail
author Pierre-Yves David <pierre-yves.david@fb.com>
Mon, 25 Aug 2014 18:09:54 +0200
changeset 22337 c380fe290290
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
obsmarker: write a message with the number of markers added through bundle2

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