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";
22 require "importenv.pl";
24 # creates a new signature file for outgoing email.
25 local($temp_filename) = "$TMP/zz_signate";
26 open(FILE, ">" . $temp_filename) || die "couldn't open $temp_filename for writing.";
28 print FILE "_______ chosen by the Nechung Oracle Program [ http://gruntose.com/ ] _______\n";
31 local($bindir) = $ENV{'BINDIR'};
32 $bindir = &sanitize_name($bindir);
33 system("$bindir/nechung >>$temp_filename");
34 ###always hits this. nechung gives an error? || die "couldn't run nechung.";
35 open(FILE, ">>" . $temp_filename) || die "couldn't open $temp_filename for writing.";
37 print FILE "_____________ not necessarily my opinions, not necessarily not. _____________\n";
40 open(FILE, "<" . $temp_filename) || die "couldn't open $temp_filename for reading.";
41 foreach $line (<FILE>) { print $line; }