public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/amavis-logwatch/, net-mail/amavis-logwatch/files/
Date: Thu,  7 Sep 2017 11:46:30 +0000 (UTC)	[thread overview]
Message-ID: <1504784575.ae1126934d8ed86f82d4c3f1e07a2c03f208ac26.mjo@gentoo> (raw)

commit:     ae1126934d8ed86f82d4c3f1e07a2c03f208ac26
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  7 11:42:37 2017 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Sep  7 11:42:55 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae112693

net-mail/amavis-logwatch: new revision with yet another bugfix patch.

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 ...r2.ebuild => amavis-logwatch-1.51.03-r3.ebuild} |  1 +
 .../files/file-libmagic-errors.patch               | 35 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild
similarity index 96%
rename from net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild
rename to net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild
index 3fa4278da7a..e312caecfdf 100644
--- a/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r2.ebuild
+++ b/net-mail/amavis-logwatch/amavis-logwatch-1.51.03-r3.ebuild
@@ -19,6 +19,7 @@ PATCHES=(
 	"${FILESDIR}/ignore-amavis-startup-notifications.patch"
 	"${FILESDIR}/ignore-utf8smtp-lines.patch"
 	"${FILESDIR}/unchecked-encrypted.patch"
+	"${FILESDIR}/file-libmagic-errors.patch"
 )
 
 src_prepare() {

diff --git a/net-mail/amavis-logwatch/files/file-libmagic-errors.patch b/net-mail/amavis-logwatch/files/file-libmagic-errors.patch
new file mode 100644
index 00000000000..2a28c4ee623
--- /dev/null
+++ b/net-mail/amavis-logwatch/files/file-libmagic-errors.patch
@@ -0,0 +1,35 @@
+From 63421f1c92403149be838c64ebb731778c148dde Mon Sep 17 00:00:00 2001
+From: Michael Orlitzky <michael@orlitzky.com>
+Date: Thu, 7 Sep 2017 07:36:39 -0400
+Subject: [PATCH 1/1] Ignore errors from the File::LibMagic describe_filename
+ function.
+
+Newer versions of amavisd-new can make use of the File::LibMagic
+library (as opposed to the "file" executable) to get information about
+attachments. Using the library should be faster, but when it fails, it
+does so in a novel way:
+
+  (02859-21) File::LibMagic::describe_filename failed on p003: libmagic
+  JPEG image data, Exif standard: [TIFF image data, big-endian,...
+
+This commit adds such lines to the global ignore list, since they
+don't provide us with any useful information.
+---
+ amavis-logwatch | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/amavis-logwatch b/amavis-logwatch
+index 448de3a..ac93cbc 100644
+--- a/amavis-logwatch
++++ b/amavis-logwatch
+@@ -2033,6 +2033,7 @@ sub create_ignore_list() {
+ 
+    push @ignore_list_final, qr/^Inserting header field: X-Amavis-Hold: /;
+    push @ignore_list_final, qr/^Decoding of .* failed, leaving it unpacked: /;
++   push @ignore_list_final, qr/^File::LibMagic::describe_filename failed on p\d+: /;
+ 
+       # various forms of "Using ..."
+       # more specific, interesting variants already captured: search "Using"
+-- 
+2.13.0
+


             reply	other threads:[~2017-09-07 11:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07 11:46 Michael Orlitzky [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-02-16 16:32 [gentoo-commits] repo/gentoo:master commit in: net-mail/amavis-logwatch/, net-mail/amavis-logwatch/files/ Michael Orlitzky
2018-12-28 15:23 Michael Orlitzky
2017-09-06 13:28 Michael Orlitzky
2017-08-24 13:16 Michael Orlitzky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1504784575.ae1126934d8ed86f82d4c3f1e07a2c03f208ac26.mjo@gentoo \
    --to=mjo@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox