From a226e71c1322a12917f13d962a3e023b6dc74eba Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 6 Sep 2011 07:22:46 +0200 Subject: [PATCH 1/1] allow direct date specification in get-ts --- .mutt/get-timestamp | 2 ++ 1 file changed, 2 insertions(+) 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";; -- 2.39.5