contrib/plan9/9mail
author anuraggoel <anurag.dsps@gmail.com>
Mon, 03 Mar 2014 23:37:59 +0530
branchstable
changeset 20626 9096f83f9e7c
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
paper: overlapping of section title on help pages (issue4051) Now there will be no overlap lines between various section title on help pages. http://selenic.com/repo/hg/help/config

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