Main repository for pfSense
Go to file
Phil Davis 02376f6f23 Check if notification is disabled
in send_smtp_message()
Other packages like arpwatch sm.php and cron job output as reported in forum https://forum.pfsense.org/index.php?topic=88347.0 call send_smtp_message() directly, currently bypassing notification disabled checks. I think those packages [are intended to | should be] respecting the notifications disabled setting. People in the forum certainly expect them to respect this setting.
If we add the $force parameter here, passing it through from notify_via_smtp() then the default behavior of send_smtp_message() can be to respect the "disable" setting. That should stop other package callers from spamming people who have disabled SMTP notifications.
If a package really wants/needs to send regardless, then it can set $force, just like the "Test SMTP" button does.
2015-02-10 23:35:16 +05:45
boot Remove old write caching tunable as well. Ticket #4203 2015-01-12 12:43:34 -06:00
cf/conf Its long overdue the ez-ipupdate.cache file 2014-04-26 09:59:37 +00:00
conf.default Update Unbound defaults 2015-02-09 22:28:15 -06:00
etc Check if notification is disabled 2015-02-10 23:35:16 +05:45
root Set proxy env vars on interactive shell and also on crontab to make all scripts be able to use it. Ticket #3789 2014-11-11 11:57:38 -02:00
sbin Set this to /8 instead since that's how it's done in stock FreeBSD 10.1. Ticket #3941 2014-11-10 21:52:52 -06:00
tmp Deal correct with filenames with spaces 2014-11-14 07:46:57 -02:00
usr touch up Unbound text 2015-02-09 22:34:00 -06:00
.gitattributes include gettext locales in line encoding list 2014-01-13 22:05:10 -05:00
.gitignore Ignore vim swap files 2013-03-08 14:41:01 -03:00
license.txt Welcome 2015 2014-12-31 16:22:00 -02:00