Changeset 1757


Ignore:
Timestamp:
2000-12-07T11:47:27+13:00 (23 years ago)
Author:
say1
Message:

tightened the criteria for email files to avoid matching all dynamic libraries

File:
1 edited

Legend:

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

    r1658 r1757  
    8585    # Check that we're dealing with a valid mail file
    8686    return undef unless (($$textref =~ /From:/) || ($$textref =~ /To:/));
     87
     88    # slightly more strict validity check, to prevent us from matching
     89    # .so.x files ...
     90    return undef unless (($$textref =~ /^From(:| )/) ||
     91             ($$textref =~ /^[-A-Za-z]{2-100}:/));
    8792
    8893    print $outhandle "EMAILPlug: processing $file\n"
Note: See TracChangeset for help on using the changeset viewer.