"Fossies" - the Fresh Open Source Software Archive

Member "sendpage-1.001001/sendmail2snpp" (3 Jan 2008, 1218 Bytes) of package /linux/privat/old/sendpage-1.001001.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/local/bin/perl
    2 #
    3 # quick script for sending pages through sendmail
    4 #
    5 # $Id: sendmail2snpp 158 2004-01-16 02:03:20Z nemies $
    6 #
    7 # Copyright (C) 2000-2004 Kees Cook
    8 # kees@outflux.net, http://outflux.net/
    9 #
   10 # This program is free software; you can redistribute it and/or
   11 # modify it under the terms of the GNU General Public License
   12 # as published by the Free Software Foundation; either version 2
   13 # of the License, or (at your option) any later version.
   14 #
   15 # This program is distributed in the hope that it will be useful,
   16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   18 # GNU General Public License for more details.
   19 #
   20 # You should have received a copy of the GNU General Public License
   21 # along with this program; if not, write to the Free Software
   22 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
   23 # http://www.gnu.org/copyleft/gpl.html
   24 
   25 # to tee off the pages, use this:
   26 #$cmd="tee /tmp/page.$$ | email2page | snpp ".join(" ",@ARGV);
   27 $cmd="email2page | snpp ".join(" ",@ARGV);
   28 system($cmd);
   29 exit ($?>>8);
   30 
   31 #
   32 # This is really the same as a shell script doing the following:
   33 #
   34 #   email2page | snpp "$@"
   35 #