#!/bin/bash TARGET="$(realpath --relative-to=. $(dirname $0)/../mails)"/$(date +"%Y-%m-%d+%s").email to="$1" cc="$2" subject="$3" ( cat < $TARGET gvim $TARGET echo "When you're finished editing you need to send $TARGET" exit 0