diff -uNr orig/bin/mailnotify fixed/bin/mailnotify --- orig/bin/mailnotify Thu Nov 22 04:06:13 2001 +++ fixed/bin/mailnotify Wed Aug 7 15:27:38 2002 @@ -19,6 +19,7 @@ use lib ( '../lib' ); use TWiki; use TWiki::Net; +use POSIX qw(strftime); my $debug = ! ( @ARGV && $ARGV[0] eq "-q" ); @@ -156,12 +157,13 @@ $emailbody .= $after; my $from = &TWiki::Prefs::getPreferencesValue("WIKIWEBMASTER"); - + my $sentdate = strftime("%a, %d %b %Y %H:%M:%S %z", localtime( time() ) ); my $notifylist = join ', ', @notifylist; $text = &TWiki::Store::readTemplate( "mailnotify" ); $text =~ s/%EMAILFROM%/$from/go; $text =~ s/%EMAILTO%/$notifylist/go; + $text =~ s/%SENTDATE%/$sentdate/go; $text =~ s/%EMAILBODY%/$emailbody/go; $text =~ s/%TOPICLIST%/$topiclist/go; $text =~ s/%LASTDATE%/&TWiki::formatGmTime($prevLastmodify)/geo; diff -uNr orig/templates/mailnotify.tmpl fixed/templates/mailnotify.tmpl --- orig/templates/mailnotify.tmpl Sat Dec 1 00:45:39 2001 +++ fixed/templates/mailnotify.tmpl Wed Aug 7 15:27:56 2002 @@ -1,3 +1,4 @@ +Date: %SENTDATE% From: %WIKIWEBMASTER% To: %EMAILTO% Subject: %WIKITOOLNAME%.%WEB% - Automated notification of topic changes