From: martin f. krafft Date: Mon, 3 Mar 2008 10:44:35 +0000 (+0100) Subject: fix tickling with epochs X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/d10d0522d7b803b124771e0a2ea01e8ebce57006?ds=sidebyside;hp=-c fix tickling with epochs --- d10d0522d7b803b124771e0a2ea01e8ebce57006 diff --git a/.mutt/add-tickle-stamp b/.mutt/add-tickle-stamp index 4adf491..715ceff 100755 --- a/.mutt/add-tickle-stamp +++ b/.mutt/add-tickle-stamp @@ -22,9 +22,9 @@ else case "$arg" in *[0-9]w) date="now + ${arg%w} weeks 00:00";; *[0-9]m) date="now + ${arg%m} months 00:00";; - *[0-9]h) date="now + ${arg%h} hours";; *[0-9]d) date="now + ${arg%d} days 00:00";; - @#[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) + *[0-9]h) date="now + ${arg%h} hours";; + @[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]) date="@${arg#@}";; *' '*) date="$args";; *[!0-9]*)