<20.10.23.00.20> it worked! now for something a bit more natural
SO the little scriptlet in the last phlog(?) post did its job well, but using
it involved writing a file, saving it, then running 'phlog name-of-the-file'.
As i want my messages to be somewhat throwaway, i would cd /tmp (tmpfs) so the
files don't persist.
But now this alternative makes things a bit different:
#!/usr/bin/env bash
# phlog
TMP=`mktemp`
< /dev/tty vim $TMP
{
echo "Subject: $@"
echo "To:
[email protected]"
echo "From: mcol <
[email protected]>"
echo ""
cat $TMP
echo ""
} | msmtp -a personal -t
Now, when i run 'phlog', vim is opened, i can write whatever, then when i save
and close vim, the saved text is sent off immediately into the gopher hole.
neat :)
[Fri Oct 23 02:20:08 2020] -- powered by smtpd(1)