#!/bin/bash
# e5 - email helper

set -e

source "/home/zwelch/src/mcf/mcsh-release/install/share/mcsh/mcsh.sh"

lib_load 'net/email'
lib_load 'doc/tool/email2pdf'


######
# Check

e5_config_init() {
	:
}

e5_config_check() {
	:
}

######
# CLI

e5_headers() { email_headers "$1"; }
e5_body() { email_body "$1"; }

e5_view() { email_view "$1"; }
e5_pdf() { pdf_email "$1" "${2:-1.pdf}"; }


######
# Check

e5_check() {
	:
}


######
# Main

e5_desc() { echo "email helper"; }
e5_usage() {
	cat <<USAGE
<cmd> ...
Email Commands:
	headers <msg>			Prints all email headers
	body <msg>			Prints email body

Email Viewing Commands:
	view <msg>			Views email
	pdf <msg>			views email as PDF
USAGE
}
e5_help() {
	cat <<HELP
e5 is an email helper tool.  It is part of the mcsh package.
HELP
}

app_run "$@"

View the Developer Guide Index

View the Reference Manual Index


Generated on Fri Jul 28 14:34:33 PDT 2017 by mcsh d14 v0.23.0.