[Logwatch] Unable to kill dovecot disconnect warnings.

Mike Tremaine mgt at stellarcore.net
Mon Nov 17 21:36:36 MST 2008


On Nov 17, 2008, at 7:44 PM, Edward Dekkers wrote:

> Nov 18 12:39:39 ubuntu dovecot: IMAP(edward): Disconnected: Logged out
> bytes=91/8241

I committed a patch to cvs but you should be able to fix yours by  
editing 1 line

in /usr/share/logwatch/scripts/services/dovcot

at about line 148 you want to change it like so

148c149
<    } elsif (($Reason) = ($ThisLine =~ /IMAP.+: Disconnected: (. 
+)/) ) {
---
 >    } elsif (($Reason) = ($ThisLine =~ /IMAP.+: Disconnected: (.+)  
(bytes=)?/) ) {

You should able to use vi or nano to open that file and just find  
that line

    } elsif (($Reason) = ($ThisLine =~ /IMAP.+: Disconnected: (.+)/) ) {

and add the" (bytes=)?" to it that should fix your problem.

-Mike



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www2.list.logwatch.org:81/pipermail/logwatch/attachments/20081117/d0410caa/attachment.html 


More information about the Logwatch mailing list