From 4b99383e317a51af892013c53e086d512dd5f089 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Mon, 24 Sep 2007 07:33:54 +0000 Subject: [PATCH] escape = to : --- delay_mail | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/delay_mail b/delay_mail index f78b66c..71d1663 100755 --- a/delay_mail +++ b/delay_mail @@ -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 $/; -- 2.39.5