File:  [Local Repository] / processmail / Attic / checkfrom.pl
Revision 2.1: download - view: text, annotated - select for diffs - revision graph
Mon Jan 24 03:16:35 2005 UTC (19 years, 5 months ago) by boris
Branches: MAIN
CVS tags: HEAD
Added new files

#!/usr/bin/perl

use strict;

open (TEAMS, "tmp.res");
my %teams;
while (<TEAMS>) {
    chomp;
    s/^\s+//;
    s/\s+$//;
    $teams{$_}=1;
}
close TEAMS;

my $name="";
while (<>) {
    chomp;
    s/^\s+//;
    s/\s+$//;
    if (/^From: (.*)$/) {
	$name=$1;
	next;
    }
    if (exists $teams{$_}) {
	s/\*\*\*\s+//;
	print "$name ($_)\n";
	next;
    }
}
	

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>