All pastes #715472 Raw Edit

Someone

public text v1 · immutable
#715472 ·published 2007-09-26 10:27 UTC
rendered paste body
        my $to = $permsgstatus->get('Received');
        $to =~ /for (\S+\@\S+);/;
        my $received = $1;
        $received = lc($received);
        $received = $self->stripUser($received);
        my $cmd = "bogofilter -d /var/lib/bogofilter/$received -v < $tmpfile";
.
.
.
.
.
sub stripUser {
    my $self  = shift;
    my $email = shift;
    $email =~ /([A-Za-z\-\_]+?)\@/;
    return $1;
}