rohrpost

A commandline mail client to change the world as we see it.
git clone git://r-36.net/rohrpost
Log | Files | Refs | LICENSE

commit 14280e4f1d7606dd025876cb3f630083dcd0c57b
parent f3948791d499030731726b9f83a2d61e3b6e2643
Author: Christoph Lohmann <20h@r-36.net>
Date:   Mon, 21 Apr 2014 11:36:53 +0200

Add a commandline composing shell.

Diffstat:
bin/rpmailcomposer | 10++++++++++
bin/rpnews | 1+
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/bin/rpmailcomposer b/bin/rpmailcomposer @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ $# -lt 1 ]; +then + printf "usage: %s address\n" "$(basename "$0")" >&2 + exit 1 +fi + +st -e sh -c "rpcompose \"$1\"; rpdrafts -l; PS1='compose> ' sh" + diff --git a/bin/rpnews b/bin/rpnews @@ -6,6 +6,7 @@ if [ -t 1 -a -x "$TMPL" ]; then if [ -n "$PAGER" ]; then + if [ -n "$mailbox" ]; rohrpost rpscan "$@" | $TMPL | eval $PAGER else rohrpost rpscan "$@" | $TMPL