[2/2] WUI log-section Mail: add support for postfix addon

Message ID 20190831185300.20508-2-ipfire@starkstromkonsument.de
State Accepted
Commit 111216416ffefa0574f8c044aaf93c250a8acb2c
Headers
Series [1/2] WUI log-section Mail: bugfix for dmi |

Commit Message

Alexander Koch Aug. 31, 2019, 6:53 p.m. UTC
  Expand the regex for the section dmi ("Mail") for /var/log/mail to include the log contents of postfix, in case the addon is installed.

Signed-off-by: Alex Koch <ipfire@starkstromkonsument.de>
---
 html/cgi-bin/logs.cgi/log.dat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Michael Tremer Sept. 1, 2019, 12:31 p.m. UTC | #1
Likewise!

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>

> On 31 Aug 2019, at 19:53, Alex Koch <ipfire@starkstromkonsument.de> wrote:
> 
> Expand the regex for the section dmi ("Mail") for /var/log/mail to include the log contents of postfix, in case the addon is installed.
> 
> Signed-off-by: Alex Koch <ipfire@starkstromkonsument.de>
> ---
> html/cgi-bin/logs.cgi/log.dat | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat
> index 98b09041a..ebbc3f8cd 100644
> --- a/html/cgi-bin/logs.cgi/log.dat
> +++ b/html/cgi-bin/logs.cgi/log.dat
> @@ -57,7 +57,7 @@ my %sections = (
>         'cron' => '(fcron\[.*\]: )',
>         'ddns' => '(ddns\[\d+\]:)',
>         'dhcp' => '(dhcpd: )',
> -        'dma' => '(dma: |dma\[.*\]: )',
> +        'dma' => '(dma: |dma\[.*\]: |postfix/\w*\[\d*\]: )',
>         'guardian' => '(guardian\[.*\]: )',
>         'ipfire' => '(ipfire: )',
>         'ipsec' => '(ipsec_[\w_]+: |pluto\[.*\]: |charon: |vpnwatch: )',
> -- 
> 2.17.1
>
  

Patch

diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat
index 98b09041a..ebbc3f8cd 100644
--- a/html/cgi-bin/logs.cgi/log.dat
+++ b/html/cgi-bin/logs.cgi/log.dat
@@ -57,7 +57,7 @@  my %sections = (
         'cron' => '(fcron\[.*\]: )',
         'ddns' => '(ddns\[\d+\]:)',
         'dhcp' => '(dhcpd: )',
-        'dma' => '(dma: |dma\[.*\]: )',
+        'dma' => '(dma: |dma\[.*\]: |postfix/\w*\[\d*\]: )',
         'guardian' => '(guardian\[.*\]: )',
         'ipfire' => '(ipfire: )',
         'ipsec' => '(ipsec_[\w_]+: |pluto\[.*\]: |charon: |vpnwatch: )',