From udo.schweigert@siemens.com  Fri Jul 11 00:53:44 2003
Return-Path: <udo.schweigert@siemens.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3812C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 00:53:44 -0700 (PDT)
Received: from david.siemens.de (david.siemens.de [192.35.17.14])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7EE6543F85
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 00:53:42 -0700 (PDT)
	(envelope-from udo.schweigert@siemens.com)
Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14])
	by david.siemens.de (8.11.7/8.11.7) with ESMTP id h6B7rfv19060
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 09:53:41 +0200 (MEST)
Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17])
	by mail3.siemens.de (8.11.7/8.11.7) with ESMTP id h6B7re026006
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 09:53:40 +0200 (MEST)
Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [139.23.202.134])
	by mars.cert.siemens.de (8.12.9/8.12.9/$SiemensCERT: mail/cert.mc,v 1.46 2003/05/28 09:28:32 ust Exp $) with ESMTP id h6B7rekX087842
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 09:53:40 +0200 (CEST)
Received: from alaska.cert.siemens.de (alaska.cert.siemens.de [127.0.0.1])
	by alaska.cert.siemens.de (8.12.9/8.12.9/$Ust: hosts/alaska/mail/config.mc,v 1.15 2002/12/31 15:32:17 ust Exp $) with ESMTP id h6B7re5U051102
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 11 Jul 2003 09:53:40 +0200 (CEST)
	(envelope-from ust@alaska.cert.siemens.de)
Received: (from ust@localhost)
	by alaska.cert.siemens.de (8.12.9/8.12.9/$Ust: hosts/alaska/mail/submit.mc,v 1.4 2002/12/31 15:32:17 ust Exp $) id h6B7reQW027504;
	Fri, 11 Jul 2003 09:53:40 +0200 (CEST)
	(envelope-from ust)
Message-Id: <200307110753.h6B7reQW027504@alaska.cert.siemens.de>
Date: Fri, 11 Jul 2003 09:53:40 +0200 (CEST)
From: Udo Schweigert <udo.schweigert@siemens.com>
Reply-To: Udo Schweigert <udo.schweigert@siemens.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: maintainer-update of mail/mutt
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         54360
>Category:       ports
>Synopsis:       maintainer-update of mail/mutt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 11 01:00:30 PDT 2003
>Closed-Date:    Fri Jul 11 10:33:42 PDT 2003
>Last-Modified:  Fri Jul 11 10:33:42 PDT 2003
>Originator:     Udo Schweigert
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD alaska.cert.siemens.de 4.8-STABLE FreeBSD 4.8-STABLE #69: Thu Jul 10 17:58:25 CEST 2003 ust@alaska.cert.siemens.de:/usr/obj/usr/src/sys/alaska i386


>Description:

Maintainer-update of mail-mutt:

	- Add patch for the new ~a function. By this one can tag entire
	  threads via "T ~a" (means: tag all entire threads where at least one
	  message of the tread is tagged).

	- Bump PORTREVISION.

>How-To-Repeat:
>Fix:

diff -ru  /usr/ports/mail/mutt/Makefile ./Makefile
--- /usr/ports/mail/mutt/Makefile	Sun Jun  1 06:07:52 2003
+++ ./Makefile	Fri Jul 11 09:38:41 2003
@@ -8,7 +8,7 @@
 
 PORTNAME=	mutt
 PORTVERSION=	1.4.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES+=	mail ipv6
 MASTER_SITES=	ftp://ftp.mutt.org/mutt/ \
 		ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \
diff -ru  /usr/ports/mail/mutt/files/patch-threadcomplete ./files/patch-threadcomplete
--- /usr/ports/mail/mutt/files/patch-threadcomplete	Thu Jan  1 01:00:00 1970
+++ ./files/patch-threadcomplete	Fri Jul 11 09:41:08 2003
@@ -0,0 +1,73 @@
+written by Nicolas Rachinsky <nr@rachinsky.de>
+http://www.rachinsky.de
+
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published
+by the Free Software Foundation;  version 2 of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+General Public License for more details.
+
+--- mutt-1.3.28.ori/mutt.h	Thu Mar 14 19:22:25 2002
++++ mutt.h	Fri Mar 15 00:22:41 2002
+@@ -198,6 +198,7 @@
+   M_LIMIT,
+   M_EXPIRED,
+   M_SUPERSEDED,
++  M_THREADCOMPLETE,
+ 
+   /* actions for mutt_pattern_comp/mutt_pattern_exec */
+   M_AND,
+--- mutt-1.3.28.ori/pattern.c	Thu Mar 14 19:22:26 2002
++++ pattern.c	Fri Mar 15 00:23:52 2002
+@@ -50,6 +50,7 @@
+ }
+ Flags[] =
+ {
++  { 'a', M_THREADCOMPLETE,	0,		NULL },
+   { 'A', M_ALL,			0,		NULL },
+   { 'b', M_BODY,		M_FULL_MSG,	eat_regexp },
+   { 'B', M_WHOLE_MSG,		M_FULL_MSG,	eat_regexp },
+@@ -957,6 +958,27 @@
+   return alladdr;
+ }
+ 
++static int match_threadcomplete(int flag,THREAD *t,int left,int up,int right,int down)
++{
++	int a=0;
++	HEADER *h=NULL;
++
++	if(! t)return 0;
++	h=t->message;
++	if(! flag && h && h->tagged)return 1;
++	if(flag && h && ! h->tagged) return 1;
++
++	if(up)a=match_threadcomplete(flag,t->parent,1,1,1,0);
++	if(a)return a;
++	if(right && t->parent)a=match_threadcomplete(flag,t->next,0,0,1,1);
++	if(a)return a;
++	if(left && t->parent)a=match_threadcomplete(flag,t->prev,1,0,0,1);
++	if(a)return a;
++	if(down)a=match_threadcomplete(flag,t->child,1,0,1,1);
++	if(a)return a;
++	return 0;
++}
++
+ /* flags
+    	M_MATCH_FULL_ADDRESS	match both personal and machine address */
+ int
+@@ -1053,6 +1075,8 @@
+       return (pat->not ^ (h->env->x_label && regexec (pat->rx, h->env->x_label, 0, NULL, 0) == 0));
+     case M_DUPLICATED:
+       return (pat->not ^ (h->thread && h->thread->duplicate_thread));
++    case M_THREADCOMPLETE:
++      return ((h->thread && match_threadcomplete(pat->not,h->thread,1,1,1,1)));
+   }
+   mutt_error (_("error: unknown op %d (report this error)."), pat->op);
+   return (-1);
+--- PATCHES~    Tue Nov  6 19:59:33 2001
++++ PATCHES     Tue Nov  6 19:59:42 2001
+@@ -1,0 +1 @@
++1.3.28.nr.threadcomplete

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nork 
State-Changed-When: Fri Jul 11 10:33:31 PDT 2003 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=54360 
>Unformatted:
