1 |
diff -Nur --no-dereference smeserver-sendmail-wrapper-0.1.old/createlinks smeserver-sendmail-wrapper-0.1/createlinks |
2 |
--- smeserver-sendmail-wrapper-0.1.old/createlinks 1969-12-31 19:00:00.000000000 -0500 |
3 |
+++ smeserver-sendmail-wrapper-0.1/createlinks 2021-11-06 22:58:04.225000000 -0400 |
4 |
@@ -0,0 +1,6 @@ |
5 |
+#!/usr/bin/perl -w |
6 |
+use esmith::Build::CreateLinks qw(:all); |
7 |
+ |
8 |
+ |
9 |
+# create smeserver-sendmail-wrapper-ipdate event as link to |
10 |
+safe_symlink("webapps-update", "root/etc/e-smith/events/smeserver-sendmail-wrapper-update") |
11 |
diff -Nur --no-dereference smeserver-sendmail-wrapper-0.1.old/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunctionX smeserver-sendmail-wrapper-0.1/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunctionX |
12 |
--- smeserver-sendmail-wrapper-0.1.old/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunctionX 2021-11-06 22:46:10.647000000 -0400 |
13 |
+++ smeserver-sendmail-wrapper-0.1/root/etc/e-smith/templates/etc/php.ini/80ModuleSettings02mailfunctionX 2021-11-06 22:50:35.685000000 -0400 |
14 |
@@ -1,8 +1,11 @@ |
15 |
{ |
16 |
|
17 |
return ";sendmail-wrapper.pl disabled to enable do: config setprop php sendmail enabled" if ($php{sendmail} || 'enabled') eq "disabled" ; |
18 |
+my $mailog = $phpcur->prop(MailLog) || $php{"MailLog"} || "disabled"; |
19 |
|
20 |
-$OUT= "mail.log= \"/var/log/sendmail/mail.log\" |
21 |
-sendmail_path= \"/usr/bin/sendmail-wrapper.pl\"\n"; |
22 |
+$OUT= "# smeserver-sendmail-wrapper contrib\n"; |
23 |
+$OUT= "mail.log= \"/var/log/sendmail/mail.log\"\n" if $mailog eq "disabled"; |
24 |
+ |
25 |
+$OUT= "sendmail_path= \"/usr/bin/sendmail-wrapper.pl\"\n"; |
26 |
|
27 |
} |