X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/2315baa7a8223fbc2c9ec0d30818d8e2d8bfcba6..616f061f77605ce342e3068e5aacda3dffa24710:/.mutt/get-timestamp diff --git a/.mutt/get-timestamp b/.mutt/get-timestamp new file mode 100755 index 0000000..4a1c524 --- /dev/null +++ b/.mutt/get-timestamp @@ -0,0 +1,28 @@ +#!/bin/sh +# +# get-timestamp - helper script to obtain a timestamp from the user +# +# Copyright © 2008 martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +set -eu + +printf 'When should I tickle you about this message? ' >/dev/tty +read timespec &2 + exit 1 + ;; + *) date="now + $timespec days 00:00";; +esac + +exec date +'%s (%c)' -d "$date"