]> git.ozlabs.org Git - next-scripts/blob - send_email
message_helper: more "gentele" coding style
[next-scripts] / send_email
1 #!/bin/bash
2
3 TARGET="$(realpath --relative-to=. $(dirname $0)/../mails)"/$(date +"%Y-%m-%d+%s").email
4
5 to="$1"
6 cc="$2"
7 subject="$3"
8
9 (
10         cat <<EOF
11 To: $to
12 Cc: $cc
13 Subject: $subject
14
15 EOF
16         cat
17 ) > $TARGET
18
19 gvim $TARGET
20
21 echo "When you're finished editing you need to send $TARGET"
22
23 exit 0