Package: logwatch
Version: 7.4.1-2
Severity: normal
Tags: patch

Dear Maintainer,

I run a small mail server for which I need to have dovecot imap debug enabled.

Unfortunately, the debugging information fills up my logwatch reports.
As this is for debugging imap problems (which are quite frequent), I do not
think there is any need for these messages to appear in the logwatch report.

The patch below suppresses these lines from the logwatch report:

--- /usr/share/logwatch/scripts/services/dovecot        2014-11-03 
19:03:19.000000000 +0000
+++ dovecot     2016-10-16 13:43:58.000000000 +0100
@@ -145,7 +145,8 @@
          ($ThisLine =~ /IMAP.*: Connection closed bytes/) or
          ($ThisLine =~ /IMAP.* failed with mbox file/) or
          ($ThisLine =~ /discarded duplicate forward to/) or
-         ($ThisLine =~ /discarding vacation response/)
+         ($ThisLine =~ /discarding vacation response/) or
+         ($ThisLine =~ /Debug:/)
          # We don't care about these

-- System Information:
Debian Release: 8.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_GB.utf8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages logwatch depends on:
ii  perl                            5.20.2-3+deb8u6
ii  postfix [mail-transport-agent]  2.11.3-1

Versions of packages logwatch recommends:
ii  libdate-manip-perl  6.47-1
ii  libsys-cpu-perl     0.61-1+b1

Versions of packages logwatch suggests:
pn  fortune-mod  <none>

-- no debconf information

Reply via email to