<20.10.23.12.46> but what about ordering posts by time?

When posting to this phlog via email using my little snippet, the time of
creation was not taken into account when display them on the index page. I
figure, OK, gotta add some kind of numbering to the posts, or timestamping.
Numbering is complicated -- i have to know how many posts there have already
been when im writing a new one. Timestamping will have to do.

   #!/usr/bin/env bash
   # phlog

   TMP=`mktemp`
   < /dev/tty vim $TMP

   {
       echo "Subject: <`date '+%y.%m.%d.%H.%M'`> $@"
       echo "To: [email protected]"
       echo "From: mcol <[email protected]>"
       echo ""
       cat $TMP
       echo ""
   } | msmtp -a personal -t

Presumably, all that is required is adding a timestamp to the start of the
Subject line. And of course I have to manually edit the posts that i have
already made!


[Fri Oct 23 13:46:59 2020] -- powered by smtpd(1)