X-Git-Url: https://snippets.scripts.mit.edu/gitweb.cgi/Scripts/git/.git/blobdiff_plain/000e3285eb142b8583e99f68109c825bee12ed7b..0dd4bf7727b13e23b9734cb89c687a348c068cad:/rt/BarnOwl/lib/BarnOwl/Module/RT.pm diff --git a/rt/BarnOwl/lib/BarnOwl/Module/RT.pm b/rt/BarnOwl/lib/BarnOwl/Module/RT.pm index b4ee67f..4963eff 100644 --- a/rt/BarnOwl/lib/BarnOwl/Module/RT.pm +++ b/rt/BarnOwl/lib/BarnOwl/Module/RT.pm @@ -48,7 +48,7 @@ if(-r "$file_path") { close($fh); } -my $file_path = "$cfg/rtcommands"; +$file_path = "$cfg/rtcommands"; if(-r "$file_path") { open(my $fh, "<:encoding(UTF-8)", "$file_path") or die("Unable to read $file_path:$!\n"); while(defined(my $line = <$fh>)) { @@ -165,7 +165,7 @@ rtcommands: It is a good place to put custom queries which will be used frequently. Examples: - "list-owner (\w+)" "rt list -o +Created \"((Status=new or Status=stalled or Status=open) and (Queue='\$q') and 'Owner='\$1')\"" + "list-owner (\\w+)" "rt list -o +Created \"((Status=new or Status=stalled or Status=open) and (Queue='\$q') and 'Owner='\$1')\"" \$t is the current ticket \$q is the current queue