From: martin f. krafft Date: Tue, 6 Sep 2011 05:22:46 +0000 (+0200) Subject: allow direct date specification in get-ts X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/a226e71c1322a12917f13d962a3e023b6dc74eba allow direct date specification in get-ts --- diff --git a/.mutt/get-timestamp b/.mutt/get-timestamp index 18a7049..f165be6 100755 --- a/.mutt/get-timestamp +++ b/.mutt/get-timestamp @@ -21,6 +21,8 @@ case "$timespec" in ;; @[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) date="$timespec";; + [0-9][0-9][0-9][0-9][-.][0-9][0-9][-.][0-9][0-9]) + date="$timespec";; *[0-9]y) date="now + ${timespec%y} years 00:00";; *[0-9]m) date="now + ${timespec%m} months 00:00";; *[0-9]w) date="now + ${timespec%w} weeks 00:00";;