# $Id: VR1.pm,v 1.2 2002/06/29 01:13:25 chad Exp $

package Razor2::Preproc::VR1;


sub new { 
    return bless {}, shift;
}


sub doit {

    my ($self, $text) = @_;

    # Equivalent to Mail::Internet cleanup in Razor v1
    # $mail->tidy_body();
    # $mail->remove_sig (); 
    # $mail->tidy_body ();

    $$text =~ s/^[\s\n]+//sg;
    $$text =~ s/[\s\n]+$//sg;
    $$text =~ s/\n--\040?[\r\n]([^\n]*\n){0,8}[^\n]*$//g;
    $$text =~ s/[\s\n]+$//sg;
    $$text .= "\n";

}


1;

