Skip to content

Commit

Permalink
Item12952: Apply mailProgram changes
Browse files Browse the repository at this point in the history
Partially tested.   jsonrpc keeps looping instead of saving the
configuration.  So testing is blocked for now.

Loops, 100% cpu,  jsonrpc: Use of uninitialized value
$Foswiki::cfg{"DataDir"}   Single post loops on the server side.
  • Loading branch information
gac410 committed Aug 30, 2014
1 parent c85ac01 commit cacfed9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/lib/Foswiki/Configure/Wizards/AutoConfigureEmail.pm
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,15 @@ sub _setMailProgram {
Identified $cfg->{name} ( =$path/$cfg->{file}= ) as your mail program
ID

_setConfig( $reporter, '{SMTP}{Debug}', 0 );
_setConfig( $reporter, '{Email}{MailMethod}', 'MailProgram' );
_setConfig( $reporter,
'{MailProgram}', "$path/$cfg->{file} $cfg->{flags}" );
_setConfig( $reporter, '{SMTP}{DebugFlags}', $cfg->{debug} );
_setConfig( $reporter, '{EnableEmail}', 1 );
_setConfig( $reporter, '{SMTP}{MAILHOST}',
' ---- Unused when MailProgram selected ---' );

# MailProgram probes don't send mail, so just a generic message if
# isSELinux is enabled.
_sniffSELinux($reporter), $reporter->NOTE(ACCEPTMSG);
Expand Down

0 comments on commit cacfed9

Please sign in to comment.