3 ###############################################################################
6 # Author : Chris Koeritz #
7 # Rights : Copyright (C) 1996-$now by Author #
11 # Creates a new signature file using Nechung. #
13 ###############################################################################
14 # This program is free software; you can redistribute it and/or modify it #
15 # under the terms of the GNU General Public License as published by the Free #
16 # Software Foundation; either version 2 of the License or (at your option) #
17 # any later version. See: "http://www.gruntose.com/Info/GNU/GPL.html" for a #
18 # version of the License. Please send any updates to "fred@gruntose.com". #
19 ###############################################################################
21 require "filename_helper.pl";
25 # creates a new signature file for outgoing email.
26 local($temp_filename) = "$TMP/zz_signate";
27 open(FILE, ">" . $temp_filename) || die "couldn't open $temp_filename for writing.";
29 print FILE "_______ chosen by the Nechung Oracle Program [ http://gruntose.com/ ] _______\n";
32 local($bindir) = $ENV{'FEISTY_MEOW_BINARIES'};
33 $bindir = &sanitize_name($bindir);
34 system("$bindir/nechung >>$temp_filename");
35 ###always hits this. nechung gives an error? || die "couldn't run nechung.";
36 open(FILE, ">>" . $temp_filename) || die "couldn't open $temp_filename for writing.";
38 print FILE "_____________ not necessarily my opinions, not necessarily not. _____________\n";
41 open(FILE, "<" . $temp_filename) || die "couldn't open $temp_filename for reading.";
42 foreach $line (<FILE>) { print $line; }