... although it is used mostly on the command line or from within a cron job.
Fixed in SVN 8808.
MD
Patch from change log:
--- twiki/lib/TWiki/Contrib/Mailer.pm 2006-02-15 17:27:43 UTC (rev 8807)
+++ twiki/lib/TWiki/Contrib/Mailer.pm 2006-02-15 17:32:46 UTC (rev 8808)
@@ -77,7 +77,10 @@
$webstr = '*' unless ( $webstr );
$webstr =~ s/\*/\.\*/g;
- $twiki ||= new TWiki( $TWiki::cfg{DefaultUserLogin} );
+ if (!defined $twiki) {
+ $twiki = new TWiki( $TWiki::cfg{DefaultUserLogin} );
+ $twiki->enterContext( 'command_line' );
+ }
# absolute URL context for email generation
$twiki->enterContext( 'absolute_urls' );
Modified: twiki/branches/DEVELOP/twikiplugins/MailerContrib/tools/mailnotify
===================================================================
--- twiki/tools/mailnotify 2006-02-15 17:27:43 UTC (rev 8807)
+++ twiki/tools/mailnotify 2006-02-15 17:32:46 UTC (rev 8808)
@@ -33,7 +33,7 @@
my @webs = ();
# Called from the command line
-foreach $arg ( @ARGV ) {
+foreach my $arg ( @ARGV ) {
if ( $arg eq "-q" ) {
$verbose = 0;
} else {
--
PTh
Closed with the release of 4.0.2
KJL