#! /usr/bin/perl -w
# vim:syntax=perl

while (<>){
    chomp;
    next if (/^#|^\s*$/);
    print (( split )[0] . ' ') or die;
}
print "\n" or die;

__END__

=pod

=head1 NAME

lr_getaddresses - extract addresses from address.cf

=head1 SYNOPSIS

B<lr_getaddresses>

=head1 DESCRIPTION

B<lr_getaddresses> expects data as found in e.g. address.cf on
stdin, and prints each lines first field.  It is called by lr_spoold(1).

=head1 SEE ALSO

lr_addresses2serviceflags(1), lr_spoold(1)

=head1 VERSION

$Id: lr_getaddresses.in,v 1.9 2001/10/18 19:13:17 flacoste Exp $

=head1 COPYRIGHT

Copyright (C) 2000-2001 Stichting LogReport Foundation LogReport@LogReport.org

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html or write to the Free Software 
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.

=head1 AUTHOR

Joost van Baal <joostvb@logreport.org>

=cut

# Local Variables:
# mode: cperl
# End:
