From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jan 27 16:10:03 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA29F1065676 for ; Tue, 27 Jan 2009 16:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 959718FC19 for ; Tue, 27 Jan 2009 16:10:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n0RGA20P078428 for ; Tue, 27 Jan 2009 16:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n0RGA22Y078427; Tue, 27 Jan 2009 16:10:02 GMT (envelope-from gnats) Resent-Date: Tue, 27 Jan 2009 16:10:02 GMT Resent-Message-Id: <200901271610.n0RGA22Y078427@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthias Andree Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E780510656D7 for ; Tue, 27 Jan 2009 16:04:19 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 1C0CE8FC22 for ; Tue, 27 Jan 2009 16:04:18 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: (qmail invoked by alias); 27 Jan 2009 16:04:17 -0000 Received: from g225197042.adsl.alicedsl.de (EHLO m2a2.dyndns.org) [92.225.197.42] by mail.gmx.net (mp046) with SMTP; 27 Jan 2009 17:04:17 +0100 Received: by merlin.emma.line.org (Postfix, from userid 1001) id 863F7B8B6; Tue, 27 Jan 2009 17:04:14 +0100 (CET) Message-Id: <20090127160414.863F7B8B6@merlin.emma.line.org> Date: Tue, 27 Jan 2009 17:04:14 +0100 (CET) From: Matthias Andree To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: question+fbsdports@closedsrc.org Subject: ports/131047: [PATCH] mail/getmail: fix excessive log volume X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 16:10:04 -0000 >Number: 131047 >Category: ports >Synopsis: [PATCH] mail/getmail: fix excessive log volume >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 27 16:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Matthias Andree >Release: FreeBSD 7.1-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD merlin.emma.line.org 7.1-RELEASE-p2 FreeBSD 7.1-RELEASE-p2 #2: Wed Jan 14 17:14:29 CET 2009 >Description: getmail 4.8.3 introduced a logging change that causes excessive (dozens of megabytes per day) log growth by logging skipped messages in delete-after or keep configurations. The patch reverts to old behaviour, while leaving the opportunity for full logging in verbose mode. The patch has been submitted to the upstream maintainer as well, but I don't expect a new getmail release soonish. Added file(s): - files/patch-excessive-logs Port maintainer (question+fbsdports@closedsrc.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- getmail-4.8.4_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/mail/getmail/Makefile /usr/home/emma/ports/mail/getmail/Makefile --- /usr/ports/mail/getmail/Makefile 2008-09-28 07:51:04.000000000 +0200 +++ /usr/home/emma/ports/mail/getmail/Makefile 2009-01-27 16:57:14.000000000 +0100 @@ -7,6 +7,7 @@ PORTNAME= getmail PORTVERSION= 4.8.4 +PORTREVISION= 1 CATEGORIES= mail python MASTER_SITES= http://pyropus.ca/software/getmail/%SUBDIR%/ \ http://mirrors.closedsrc.org/getmail/ diff -ruN --exclude=CVS /usr/ports/mail/getmail/files/patch-excessive-logs /usr/home/emma/ports/mail/getmail/files/patch-excessive-logs --- /usr/ports/mail/getmail/files/patch-excessive-logs 1970-01-01 01:00:00.000000000 +0100 +++ /usr/home/emma/ports/mail/getmail/files/patch-excessive-logs 2009-01-27 16:58:46.000000000 +0100 @@ -0,0 +1,17 @@ +--- getmail ++++ getmail +@@ -210,10 +210,10 @@ def go(configs): + + if (retrieve or delete or oplevel > 1): + log.info(' %s\n' % info) +- if options['logfile']: +- options['logfile'].write(logline) +- if options['message_log_syslog']: +- syslog.syslog(syslog.LOG_INFO, logline) ++ if options['logfile']: ++ options['logfile'].write(logline) ++ if options['message_log_syslog']: ++ syslog.syslog(syslog.LOG_INFO, logline) + + if (options['max_messages_per_session'] + and msgs_retrieved >= --- getmail-4.8.4_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: