diff options
author | Jeffery To <jeffery.to@gmail.com> | 2009-08-07 01:55:31 +0800 |
---|---|---|
committer | Jeffery To <jeffery.to@gmail.com> | 2009-08-07 01:55:31 +0800 |
commit | 5f293f0e2fd0561caa940c9799fad623ce953a60 (patch) | |
tree | 264fe223837d2235f8c64570e1b57922685ab950 /scripts | |
parent | c261a645a16fc0498e338cef4144b276a481646c (diff) |
Added configuration option to disable post-by-email.
This hides the relevant settings from the email settings page and
prevents maildaemon.php from processing email if the option is
disabled.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/maildaemon.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/maildaemon.php b/scripts/maildaemon.php index 3ef4d0638..91c257adb 100755 --- a/scripts/maildaemon.php +++ b/scripts/maildaemon.php @@ -385,5 +385,7 @@ class MailerDaemon } } -$md = new MailerDaemon(); -$md->handle_message('php://stdin'); +if (common_config('emailpost', 'enabled')) { + $md = new MailerDaemon(); + $md->handle_message('php://stdin'); +} |