diff options
| author | fukachan <fukachan> | 2002-08-19 12:41:01 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-08-19 12:41:01 +0000 |
| commit | 0e97db9e777183b0cb45cca32c4f56547997e2e5 (patch) | |
| tree | 6968384d3d1b2d6a2d624d4d71c6c1bbe16bbf31 /fml/lib/FML/Process/Command.pm | |
| parent | 9d1ab657da9794a4296a1108ba1d5ccd685efde7 (diff) | |
| download | fml8-0e97db9e777183b0cb45cca32c4f56547997e2e5.tar.gz fml8-0e97db9e777183b0cb45cca32c4f56547997e2e5.tar.bz2 fml8-0e97db9e777183b0cb45cca32c4f56547997e2e5.zip | |
enable process if $use_command_mail_program is defined.
Diffstat (limited to 'fml/lib/FML/Process/Command.pm')
| -rw-r--r-- | fml/lib/FML/Process/Command.pm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/fml/lib/FML/Process/Command.pm b/fml/lib/FML/Process/Command.pm index 6584629a..628620b8 100644 --- a/fml/lib/FML/Process/Command.pm +++ b/fml/lib/FML/Process/Command.pm @@ -3,7 +3,7 @@ # Copyright (C) 2000,2001,2002 Ken'ichi Fukamachi # All rights reserved. # -# $FML: Command.pm,v 1.71 2002/08/08 03:09:47 fukachan Exp $ +# $FML: Command.pm,v 1.72 2002/08/14 03:31:55 fukachan Exp $ # package FML::Process::Command; @@ -84,7 +84,14 @@ sub prepare $curproc->load_config_files( $args->{ cf_list } ); $curproc->fix_perl_include_path(); $curproc->scheduler_init(); - $curproc->parse_incoming_message($args); + + if ($config->yes('use_command_mail_program')) { + $curproc->parse_incoming_message($args); + } + else { + LogError("use of command_mail_program prohibited"); + exit(0); + } $eval = $config->get_hook( 'command_prepare_end_hook' ); if ($eval) { eval qq{ $eval; }; LogWarn($@) if $@; } |
