contrib/plan9/9mail
author Raphaël Gomès <rgomes@octobus.net>
Mon, 02 Aug 2021 16:23:45 +0200
branchstable
changeset 47792 6c86f96042c9
parent 19613 4bfd3c7160d9
permissions -rw-r--r--
heptapod-ci: enable pytype testing for all pipelines Now that pytype agrees with the codebase, let's run it by default to catch regressions. Differential Revision: https://phab.mercurial-scm.org/D11242

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