Changeset 3523 for trunk/gsdl/perllib


Ignore:
Timestamp:
2002-11-11T15:26:08+13:00 (22 years ago)
Author:
kjdon
Message:

now EMAILplug accepts the split_exp option - a regular expression that SplitPlug uses to divide a file into multiple documents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/EMAILPlug.pm

    r3414 r3523  
    8383sub new {
    8484    my ($class) = @_;
    85     my $self = new BasPlug ("EMAILPlug", @_);
     85    my $self = new BasPlug ($class, @_);
     86
     87    if (!parsargv::parse(\@_,
     88             q^split_exp/.*/^, \$self->{'split_exp'},
     89             "allow_extra_options")) {
     90    print STDERR "\nIncorrect options passed to $class.";
     91    print STDERR "\nCheck your collect.cfg configuration file\n";
     92    die "\n";
     93    }
    8694    # this might not actually be true at read-time, but after processing
    8795    # it should all be utf8.
     
    102110sub get_default_split_exp {
    103111    return q^\nFrom .*\n^;
     112   
    104113}
    105114
     
    186195    $value =~ s/^\s+//;
    187196    $value =~ s/\s+$//;
    188 
    189197    # decode headers if stored using =?<charset>?[BQ]?<data>?= (rfc2047)
    190198    if ($value =~ /=\?.*\?[BbQq]\?.*\?=/) {
Note: See TracChangeset for help on using the changeset viewer.