2 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
3 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
4 # this is intended for server administrators, so it takes an absolute
5 # path (however this may be run by clients, too).
6 my $usage = "ssoma-rm /path/to/git/repo < /path/to/rfc2822_message";
11 my $dir = shift or die "usage: $usage\n";
12 my $git = Ssoma
::Git
->new($dir);
13 my $rm = Ssoma
::Remover
->new($git);
16 local $/; # slurp message from stdin
17 $simple = Email
::Simple
->new(<>);
19 $rm->remove_simple($simple);