Logwatch Dovecot Issue in 7.5

Frank Crawford <[email protected]> Sun, 27 Jan 2019 15:08:07 +1100
Newsgroups gmane.comp.log.logwatch.devel
Message-ID <037eb511f03deed1844adc7e41935c17e3b43e7b.camel@crawford.emu.id.au>
--===============6055395465455590252==
Content-Type: multipart/alternative; boundary="=-C0HfF8dlRUJN8rsgKt/X"


--=-C0HfF8dlRUJN8rsgKt/X
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

Folks,
Of course you find an issue the day after a release.  The recent update
of dovecot (2.3.3 I believe) has a slight change to the lda message, so
logwatch doesn't count the deliveries.
The patch for this is:
--- ../../GIT/logwatch-git/scripts/services/dovecot	2019-01-19
18:00:29.000000000 +1100+++ dovecot	2019-01-27 14:42:56.000000000
+1100@@ -168,7 +168,7 @@       }  # 'lda' for dovecot 2.0, 'deliver'
for earlier versions-   } elsif (my ($User, $Mailbox) = ( $ThisLine =~
/^$dovecottag (?:lda|deliver)\((.*)\): msgid=.*: saved mail to (.*)/ )
) {+   } elsif (my ($User, $Mailbox) = ( $ThisLine =~ /^$dovecottag
(?:lda|deliver)\((.*)\)(?:<[^>]+><[^>]+>)?: msgid=.*: saved mail to
(.*)/ ) ) {       $Deliver{$User}{$Mailbox}++;    } elsif ( ($User,
$Mailbox) = ( $ThisLine =~ /^$dovecottag service=lda, user=(.*), .*
msgid=.*: saved mail to (.*)/ ) ) {       $Deliver{$User}{$Mailbox}++;
Hopefully it will get into the repo soon.
RegardsFrank

--=-C0HfF8dlRUJN8rsgKt/X
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr"><head></head><body style=3D"text-align:left; direction:lt=
r;"><div>Folks,</div><div><br></div><div>Of course you find an issue the da=
y after a release.  The recent update of dovecot (2.3.3 I believe) has a sl=
ight change to the lda message, so logwatch doesn't count the deliveries.</=
div><div><br></div><div>The patch for this is:</div><div><br></div><pre>---=
 ../../GIT/logwatch-git/scripts/services/dovecot	2019-01-19 18:00:29.000000=
000 +1100</pre><pre>+++ dovecot	2019-01-27 14:42:56.000000000 +1100</pre><p=
re>@@ -168,7 +168,7 @@</pre><pre>       }</pre><pre> </pre><pre> # 'lda' fo=
r dovecot 2.0, 'deliver' for earlier versions</pre><pre>-   } elsif (my ($U=
ser, $Mailbox) =3D ( $ThisLine =3D~ /^$dovecottag (?:lda|deliver)\((.*)\): =
msgid=3D.*: saved mail to (.*)/ ) ) {</pre><pre>+   } elsif (my ($User, $Ma=
ilbox) =3D ( $ThisLine =3D~ /^$dovecottag (?:lda|deliver)\((.*)\)(?:&lt;[^&=
gt;]+&gt;&lt;[^&gt;]+&gt;)?: msgid=3D.*: saved mail to (.*)/ ) ) {</pre><pr=
e>       $Deliver{$User}{$Mailbox}++;</pre><pre>    } elsif ( ($User, $Mail=
box) =3D ( $ThisLine =3D~ /^$dovecottag service=3Dlda, user=3D(.*), .* msgi=
d=3D.*: saved mail to (.*)/ ) ) {</pre><pre>       $Deliver{$User}{$Mailbox=
}++;</pre><pre><br></pre><div>Hopefully it will get into the repo soon.</di=
v><div><br></div><div>Regards</div><div>Frank</div><pre></pre></body></html=
>

--=-C0HfF8dlRUJN8rsgKt/X--



--===============6055395465455590252==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6055395465455590252==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Logwatch-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/logwatch-devel

--===============6055395465455590252==--