Ignore:
Timestamp:
10/17/09 11:46:21 (3 years ago)
Author:
KennethLavrsen
Message:

Item1302: mailnotify ignores -news operand
It is a bug that goes back to TWiki 4.0. The -news was documented but never implemented
Fixing it as speced would cause trouble for people.
And the spec is bad. It would not work well. So instead of implenting a bad spec I decided to implement -nonews and -nochanges which will give people the flexibility AND maintain status quo for those already$

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MailerContrib/tools/mailnotify

    r3944 r5289  
    3535my @webs = (); 
    3636my @exwebs = (); 
     37my $nonews = 0; 
     38my $nochanges = 0; 
    3739 
    3840# Called from the command line 
     
    4042    if( $arg eq "-q" ) { 
    4143        $verbose = 0; 
     44    } elsif ( $arg eq "-nonews" ) { 
     45        $nonews = 1; 
     46    } elsif ( $arg eq "-nochanges" ) { 
     47        $nochanges = 1; 
    4248    } elsif ( $arg =~ m/^-(.*)/ ) { 
    4349        push( @exwebs, $1 ); 
     
    5157 
    5258my $report = Foswiki::Contrib::MailerContrib::mailNotify( 
    53     \@webs, undef, $verbose, \@exwebs ); 
     59    \@webs, undef, $verbose, \@exwebs, $nonews, $nochanges ); 
    5460 
    5561print $report."\n" if $verbose; 
Note: See TracChangeset for help on using the changeset viewer.