Changeset 1278


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.

Location:
trunk/core
Files:
2 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 
  • trunk/core/templates/messages.tmpl

    r1206 r1278  
    241241---+++ %MAKETEXT{"Error registering new user"}% 
    242242 
    243 %MAKETEXT{"Internal error when sending email to [_1]." args="%PARAM1%"}% 
    244  
     243%MAKETEXT{"While attempting to email [_1]." args="%PARAM1%"}% 
     244 
     245%MAKETEXT{"Your registration verification email has either failed, or is queued in the mail system."}% 
     246 
     247%MAKETEXT{"If you don't receive a verification email within the next hour, "}% 
    245248%MAKETEXT{"Please contact [_1]." args="%WIKIWEBMASTER%"}% 
    246249 
    247 %MAKETEXT{"You have *not* been registered."}% 
     250 
    248251%TMPL:END% 
    249252%TMPL:DEF{"send_mail_error"}% 
     
    410413%MAKETEXT{"Check your configuration settings for {TemplateDir} and {TemplatePath}. If that's not the problem, it may be because you have a setting of [_1] that is pointing to a template that doesn't exist." args="=%PARAM2%="}% 
    411414 
    412 %MAKETEXT{"[_1] is currently set to [_2]" args="=%PARAM2%=,<code><nop>%PARAM1%</code>"}%  
     415%MAKETEXT{"[_1] is currently set to [_2]" args="=%PARAM2%=,<code><nop>%PARAM1%</code>"}% 
    413416 
    414417(%MAKETEXT{"don't forget to check your Topic Settings"}%) 
Note: See TracChangeset for help on using the changeset viewer.