From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Mar 19 14:40: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 ADD1810656BD for ; Thu, 19 Mar 2009 14:40: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 7E1E28FC28 for ; Thu, 19 Mar 2009 14:40: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 n2JEe3lm042817 for ; Thu, 19 Mar 2009 14:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n2JEe3Jr042816; Thu, 19 Mar 2009 14:40:03 GMT (envelope-from gnats) Resent-Date: Thu, 19 Mar 2009 14:40:03 GMT Resent-Message-Id: <200903191440.n2JEe3Jr042816@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, Fernan Aguero Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDE25106566C for ; Thu, 19 Mar 2009 14:32:05 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: from mail-ew0-f171.google.com (mail-ew0-f171.google.com [209.85.219.171]) by mx1.freebsd.org (Postfix) with ESMTP id 2BF288FC08 for ; Thu, 19 Mar 2009 14:32:04 +0000 (UTC) (envelope-from fernan.aguero@gmail.com) Received: by ewy19 with SMTP id 19so385713ewy.43 for ; Thu, 19 Mar 2009 07:32:04 -0700 (PDT) Received: by 10.216.73.85 with SMTP id u63mr1181329wed.37.1237473124188; Thu, 19 Mar 2009 07:32:04 -0700 (PDT) Message-Id: <520894aa0903190732q491409abyfabef3a3f789f15@mail.gmail.com> Date: Thu, 19 Mar 2009 11:32:04 -0300 From: Fernan Aguero To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/132815: add option to mail/nmzmail to override max number of mailboxes 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: Thu, 19 Mar 2009 14:40:10 -0000 >Number: 132815 >Category: ports >Synopsis: add option to mail/nmzmail to override max number of mailboxes >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Mar 19 14:40:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Fernan Aguero >Release: FreeBSD 6.3-RELEASE-p1 i386 >Organization: IIB-UNSAM >Environment: FreeBSD gama.iib.unsam.edu.ar 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Apr 2 18:37:14 ART 2008 fernan@gama.iib.unsam.edu.ar:/usr/obj/freebsd/freebsd-6.3/src/sys/GAMA i386 >Description: nmzmail will only index 32 mailboxes per run. This is a hard-coded value that is set at compile time. The proposed patch allows the user to compile nmzmail with a different limit by setting MAX_MAIL_DIRS >How-To-Repeat: >Fix: --- nmzmail.diff begins here --- diff -ruN --exclude=CVS /usr/ports/mail/nmzmail/Makefile nmzmail/Makefile --- /usr/ports/mail/nmzmail/Makefile 2009-03-19 11:26:46.000000000 -0300 +++ nmzmail/Makefile 2009-03-19 11:25:59.000000000 -0300 @@ -23,6 +23,18 @@ PLIST_FILES= bin/nmzmail PORTDOCS= README NEWS +pre-extract: +.if !defined(MAX_MAIL_DIRS) + @ ${ECHO_MSG} "You can define MAX_MAIL_DIRS=n." + @ ${ECHO_MSG} "nmzmail will only process this many mailboxes, the default is 32." +.endif + +post-extract: +.if defined(MAX_MAIL_DIRS) + @ ${SED} -i.bak -e 's/MAX_MAIL_DIRS 32/MAX_MAIL_DIRS ${MAX_MAIL_DIRS}/' \ + ${WRKSRC}/src/nmzmail.c +.endif + post-install: .if !defined(NOPORTDOCS) @${INSTALL} -d ${DOCSDIR}/ --- nmzmail.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: