From owner-freebsd-hackers Thu Jun 20 13:11:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.103.10]) by hub.freebsd.org (Postfix) with ESMTP id E953237B738 for ; Thu, 20 Jun 2002 13:10:40 -0700 (PDT) Received: from wopr.caltech.edu (localhost.caltech.edu [127.0.0.1]) by wopr.caltech.edu (8.12.3/8.12.3) with ESMTP id g5KKAePh007487; Thu, 20 Jun 2002 13:10:40 -0700 (PDT) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.12.3/8.12.3/Submit) id g5KKAdIx007486; Thu, 20 Jun 2002 13:10:39 -0700 (PDT) Date: Thu, 20 Jun 2002 13:10:39 -0700 From: Matthew Hunt To: Bosko Milekic Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Some small projects for mutt(1) Message-ID: <20020620131039.A7042@wopr.caltech.edu> References: <20020620152454.A23499@unixdaemons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020620152454.A23499@unixdaemons.com>; from bmilekic@unixdaemons.com on Thu, Jun 20, 2002 at 03:24:54PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jun 20, 2002 at 03:24:54PM -0400, Bosko Milekic wrote: > cool if mutt did it). What this does is pretty straightforward: I see > a thread with subject "foo." I don't like it. I really don't like it. > I hit a key combination such as, I don't know, CTRL+B (or something not > bound yet), and not only is the entire thread instantly marked for > deletion, but a carefully crafted rule is also dropped into a sh*tlist > file (that can be handled by procmail?) which will ensure that all > _future_ mailings that are in response to said thread will immediately > be marked for deletion, or merely filtered. Hence, "persistent thread > suppression/deletion." This shouldn't be hard to glue together without modifying mutt itself. Make a little program, foo, that takes the message on stdin, passes it through "formail -x subject", massages it into a procmail rule, and appends it to some procmail rule file. The "massage" step should include escaping characters that have special meanings in procmail regexps, and adding something like (Re: *)? at the beginning of the subject when appropriate. Shouldn't be more than a screenful of Perl. -- Matthew Hunt * Stay close to the Vorlon. http://www.pobox.com/~mph/ * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message