Ignore:
Timestamp:
12/12/08 03:30:59 (3 years ago)
Author:
SvenDowideit
Message:

Item137: looks like sendmail is returning 67, when its log file says its returning 75, so I can't actually test the exit value at all :(. ammended the opps message instead, to give users hope.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/lib/Foswiki/Net.pm

    r1050 r1278  
    226226    '$Rev: 13594 $' =~ /([0-9]+)/; 
    227227    my $revstr = $1; 
    228     $request->header( 'User-Agent' => 'Foswiki::Net/'  
     228    $request->header( 'User-Agent' => 'Foswiki::Net/' 
    229229          . $revstr 
    230230          . " libwww-perl/$LWP::VERSION" ); 
     
    339339 
    340340            unless ( $e =~ /^ERROR/ ) { 
    341                 $e = "Mail could not be sent - see Foswiki warning log."; 
     341                $e = "Mail could not be sent - please ask your %WIKIWEBMASTER% to look at the Foswiki warning log."; 
    342342            } 
    343343            $errors .= $e . "\n"; 
     
    373373    print MAIL $text; 
    374374    close(MAIL); 
    375     die "ERROR: Exit code $? from Foswiki::cfg{MailProgram}" if $?; 
     375    #SMELL: this is bizzare. on a freeBSD server, I've seen sendmail return 17152 
     376    #(17152 >> 8) == 67 == EX_NOUSER - however, the mail log says that the error was 
     377    #EX_TEMPFAIL == 75, and that (as per oreilly book) the email is cued. The email 
     378    #does reach the user, but they are very confused because they were told that the 
     379    #rego failed completely. 
     380    #Sven has ameneded the oops_message for the verify emails to be less positive that 
     381    #everything has failed, but. 
     382    die "ERROR: Exit code ".($? << 8)." ($?) from Foswiki::cfg{MailProgram}" if $?; 
    376383} 
    377384 
Note: See TracChangeset for help on using the changeset viewer.