Created
December 29, 2010 06:04
-
-
Save kevinr/758245 to your computer and use it in GitHub Desktop.
first pass at BarnOwl filteredit command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use warnings; | |
use strict; | |
sub cmd_filteredit { | |
my $cmd = shift; | |
my $filtername = shift; | |
my $filter = BarnOwl::getfilter($filtername); | |
chomp $filter; | |
BarnOwl::command("start-command filter " . $filter); | |
} | |
BarnOwl::new_command('filteredit' => \&cmd_filteredit, { | |
summary => 'edit the named filter', | |
usage => 'filteredit FILTERNAME', | |
description => 'Edit the named filter' | |
}); | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment