contrib/plan9/9mail
author Christian Ebert <blacktrash@gmx.net>
Mon, 17 Oct 2016 17:42:46 +0200
changeset 30326 eac5c1737f79
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
keyword: handle filectx _customcmp Suggested by Yuya Nishihara: https://www.mercurial-scm.org/pipermail/mercurial-devel/2016-October/089461.html Related to issue5364.

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