Re: Logwatch Dovecot Issue in 7.5

"Jason Pyeron" <[email protected]> Sun, 27 Jan 2019 10:59:55 -0500
Newsgroups gmane.comp.log.logwatch.devel
Organization PD Inc
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============2007612351879544005==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_2010B_01D4B62F.70A7F2C0"
Content-Language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_2010B_01D4B62F.70A7F2C0
Content-Type: text/plain;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I would like to add the log data to my test cases, would you mind =
sending a sample? If you desire =E2=80=93 you can privately send it and =
I will anonimize it.

=20

-Jason

=20

From: Frank Crawford <[email protected]>=20
Sent: Saturday, January 26, 2019 11:08 PM
To: [email protected]
Cc: Jan Synacek <[email protected]>
Subject: [Logwatch-devel] Logwatch Dovecot Issue in 7.5

=20

Folks,

=20

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.

=20

The patch for this is:

=20

--- ../../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 @@
       }
=20
 # 'lda' for dovecot 2.0, 'deliver' for earlier versions
-   } elsif (my ($User, $Mailbox) =3D ( $ThisLine =3D~ /^$dovecottag =
(?:lda|deliver)\((.*)\): msgid=3D.*: saved mail to (.*)/ ) ) {
+   } elsif (my ($User, $Mailbox) =3D ( $ThisLine =3D~ /^$dovecottag =
(?:lda|deliver)\((.*)\)(?:<[^>]+><[^>]+>)?: msgid=3D.*: saved mail to =
(.*)/ ) ) {
       $Deliver{$User}{$Mailbox}++;
    } elsif ( ($User, $Mailbox) =3D ( $ThisLine =3D~ /^$dovecottag =
service=3Dlda, user=3D(.*), .* msgid=3D.*: saved mail to (.*)/ ) ) {
       $Deliver{$User}{$Mailbox}++;
=20

Hopefully it will get into the repo soon.

=20

Regards

Frank


------=_NextPart_000_2010B_01D4B62F.70A7F2C0
Content-Type: text/html;
	charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 15 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US =
link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>I would like to add the log data to my test cases, would you mind =
sending a sample? If you desire =E2=80=93 you can privately send it and =
I will anonimize it.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
>-Jason<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'=
><o:p>&nbsp;</o:p></span></p><div style=3D'border:none;border-left:solid =
blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div =
style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span><=
/b><span style=3D'font-size:11.0pt;font-family:"Calibri",sans-serif'> =
Frank Crawford &lt;[email protected]&gt; <br><b>Sent:</b> =
Saturday, January 26, 2019 11:08 PM<br><b>To:</b> =
[email protected]<br><b>Cc:</b> Jan Synacek =
&lt;[email protected]&gt;<br><b>Subject:</b> [Logwatch-devel] Logwatch =
Dovecot Issue in 7.5<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p =
class=3DMsoNormal>Folks,<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>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.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>The patch for this is:<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><pre>--- =
../../GIT/logwatch-git/scripts/services/dovecot=C2=A0 2019-01-19 =
18:00:29.000000000 +1100<o:p></o:p></pre><pre>+++ dovecot=C2=A0=C2=A0 =
2019-01-27 14:42:56.000000000 +1100<o:p></o:p></pre><pre>@@ -168,7 =
+168,7 @@<o:p></o:p></pre><pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
}<o:p></o:p></pre><pre> <o:p></o:p></pre><pre>=C2=A0# 'lda' for dovecot =
2.0, 'deliver' for earlier versions<o:p></o:p></pre><pre>-=C2=A0=C2=A0 } =
elsif (my ($User, $Mailbox) =3D ( $ThisLine =3D~ /^$dovecottag =
(?:lda|deliver)\((.*)\): msgid=3D.*: saved mail to (.*)/ ) ) =
{<o:p></o:p></pre><pre>+=C2=A0=C2=A0 } elsif (my ($User, $Mailbox) =3D ( =
$ThisLine =3D~ /^$dovecottag =
(?:lda|deliver)\((.*)\)(?:&lt;[^&gt;]+&gt;&lt;[^&gt;]+&gt;)?: =
msgid=3D.*: saved mail to (.*)/ ) ) =
{<o:p></o:p></pre><pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
$Deliver{$User}{$Mailbox}++;<o:p></o:p></pre><pre>=C2=A0=C2=A0=C2=A0 } =
elsif ( ($User, $Mailbox) =3D ( $ThisLine =3D~ /^$dovecottag =
service=3Dlda, user=3D(.*), .* msgid=3D.*: saved mail to (.*)/ ) ) =
{<o:p></o:p></pre><pre>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
$Deliver{$User}{$Mailbox}++;<o:p></o:p></pre><pre><o:p>&nbsp;</o:p></pre>=
<div><p class=3DMsoNormal>Hopefully it will get into the repo =
soon.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Regards<o:p></o:p></p></div><div><p =
class=3DMsoNormal>Frank<o:p></o:p></p></div></div></div></body></html>
------=_NextPart_000_2010B_01D4B62F.70A7F2C0--



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


--===============2007612351879544005==
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

--===============2007612351879544005==--