From fernan.aguero@gmail.com  Thu Mar 19 14:32:05 2009
Return-Path: <fernan.aguero@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id BDE25106566C
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Mar 2009 14:32:04 +0000 (UTC)
	(envelope-from fernan.aguero@gmail.com)
Received: by ewy19 with SMTP id 19so385713ewy.43
        for <FreeBSD-gnats-submit@freebsd.org>; 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 <fernan.aguero@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: add option to mail/nmzmail to override max number of mailboxes

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 19 14:40:03 UTC 2009
>Closed-Date:    Tue May 12 08:48:13 UTC 2009
>Last-Modified:  Tue May 12 08:50:06 UTC 2009
>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

	<machine, os, target, libraries (multiple lines)>
>Description:
	<precise description of the problem (multiple lines)>
	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:
	<code/input/activities to reproduce the problem (multiple lines)>
	
>Fix:

	<how to correct or work around the problem, if known (multiple lines)>



--- 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:
Class-Changed-From-To: maintainer-update->change-request 
Class-Changed-By: edwin 
Class-Changed-When: Thu Mar 19 14:40:25 UTC 2009 
Class-Changed-Why:  
Fix category (submitter is not maintainer) (via the GNATS Auto Assign 
Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132815 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Mar 19 14:40:30 UTC 2009 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132815 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: fernan@iib.unsam.edu.ar
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/132815: add option to mail/nmzmail to override max number of mailboxes
Date: Thu, 19 Mar 2009 14:40:28 UT

 Maintainer of mail/nmzmail,
 
 Please note that PR ports/132815 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/132815
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Fernan Aguero <fernan@iib.unsam.edu.ar>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/132815: add option to mail/nmzmail to override max number 
	of mailboxes
Date: Thu, 19 Mar 2009 11:43:53 -0300

 On Thu, Mar 19, 2009 at 11:40 AM, Edwin Groothuis <edwin@freebsd.org> wrote=
 :
 > Maintainer of mail/nmzmail,
 >
 > Please note that PR ports/132815 has just been submitted.
 >
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 >
 > The full text of the PR can be found at:
 > =A0 =A0http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/132815
 
 Approved. I'm the one who submitted the PR ... just forgot to send it
 from my other email address :(
 
 --=20
 fernan
State-Changed-From-To: feedback->closed 
State-Changed-By: pav 
State-Changed-When: Tue May 12 08:47:52 UTC 2009 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=132815 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/132815: commit references a PR
Date: Tue, 12 May 2009 08:48:10 +0000 (UTC)

 pav         2009-05-12 08:48:02 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/nmzmail         Makefile 
   Log:
   - Add MAX_MAIL_DIRS option to define a number of mailboxes to process
   
   PR:             ports/132815
   Submitted by:   Fernan Aguero <fernan.aguero@gmail.com> (maintainer)
   
   Revision  Changes    Path
   1.7       +12 -0     ports/mail/nmzmail/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
