]> git.donarmstrong.com Git - bin.git/commitdiff
escape = to :
authorDon Armstrong <don@donarmstrong.com>
Mon, 24 Sep 2007 07:33:54 +0000 (07:33 +0000)
committerDon Armstrong <don@donarmstrong.com>
Mon, 24 Sep 2007 07:33:54 +0000 (07:33 +0000)
delay_mail

index f78b66c2cdd1b15b367a155c8b1ed837d1aa0792..71d1663ad31385b9851a137aa7b2c5be2f258998 100755 (executable)
@@ -49,9 +49,12 @@ The delay option is actually an email address; apply the following
 regex to parse it:
 
     $delay =~ m/[+-]d(?:ela?y?)?[-+]([^\@]+)/;
-    $delay = $1; $delay =~ s/_/ /;
+    $delay = $1;
+    $delay =~ s/_/ /;
+    $delay =~ s/=/:/;
 
-Thus, foo-delay-now+5_min@bar.baz becomes now+5 min
+Thus, foo-delay-now+5_min@bar.baz becomes now+5 min and
+foo-del+00=30=00@bar.baz becomes 00:30:00
 
 =item B<--list>
 
@@ -156,7 +159,9 @@ if (exists $options{enqueue}) {
      $delay =~ s/\n//g;
      if ($options{email}) {
          $delay =~ m/[+-]d(?:ela?y?)?[-+]([^\@]+)/;
-         $delay = $1; $delay =~ s/_/ /;
+         $delay = $1;
+         $delay =~ s/_/ /;
+         $delay =~ s/=/:/;
      }
      # slurp email
      local $/;