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/test/unit/MailerContrib/MailerContribSuite.pm

    r4556 r5289  
    276276 
    277277    my @webs = ( $this->{test_web}, $this->{users_web} ); 
    278     Foswiki::Contrib::MailerContrib::mailNotify( \@webs, $this->{session}, 0 ); 
     278    Foswiki::Contrib::MailerContrib::mailNotify( \@webs, $this->{session}, 0, 0, 0 ); 
    279279 
    280280    #print "REPORT\n",join("\n\n", @FoswikiFnTestCase::mails); 
     
    332332 
    333333    my @webs = ( $testWeb2, $this->{users_web} ); 
    334     Foswiki::Contrib::MailerContrib::mailNotify( \@webs, $this->{session}, 0 ); 
     334    Foswiki::Contrib::MailerContrib::mailNotify( \@webs, $this->{session}, 0, 0, 0 ); 
    335335 
    336336    #print "REPORT\n",join("\n\n", @FoswikiFnTestCase::mails); 
     
    458458        $meta, "Before\n${s}After", $meta ); 
    459459    Foswiki::Contrib::MailerContrib::mailNotify( [ $this->{test_web} ], 
    460         $this->{session}, 0 ); 
     460        $this->{session}, 0, 0, 0 ); 
    461461 
    462462    my %matched; 
     
    487487        $meta, "Before\n${s}After", $meta ); 
    488488    Foswiki::Contrib::MailerContrib::mailNotify( [ $this->{test_web} ], 
    489         $this->{session}, 0 ); 
     489        $this->{session}, 0, 0, 0 ); 
    490490 
    491491    my %matched; 
     
    553553    # Launch mailNotify 
    554554    Foswiki::Contrib::MailerContrib::mailNotify( [ $this->{test_web} ], 
    555         $this->{session}, 0 ); 
     555        $this->{session}, 0, 0, 0 ); 
    556556 
    557557    for my $message (@FoswikiFnTestCase::mails) { 
Note: See TracChangeset for help on using the changeset viewer.