From owner-freebsd-hackers Thu Jun 20 13:29:20 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.comcast.net (smtp.comcast.net [24.153.64.2]) by hub.freebsd.org (Postfix) with ESMTP id D253837B41A for ; Thu, 20 Jun 2002 13:29:09 -0700 (PDT) Received: from dallben (pcp529856pcs.nash01.tn.comcast.net [68.52.131.181]) by mtaout01.icomcast.net (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 13 2002)) with ESMTP id <0GY0007ZJU5OD8@mtaout01.icomcast.net> for freebsd-hackers@FreeBSD.ORG; Thu, 20 Jun 2002 16:27:25 -0400 (EDT) Date: Thu, 20 Jun 2002 15:27:24 -0500 (CDT) From: "Brandon D. Valentine" Subject: Re: Some small projects for mutt(1) In-reply-to: <20020620161838.A24262@unixdaemons.com> X-X-Sender: bandix@dallben.homeportal.2wire.net To: Bosko Milekic Cc: Matthew Hunt , freebsd-hackers@FreeBSD.ORG Message-id: <20020620152533.H753-100000@dallben.homeportal.2wire.net> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT 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, 20 Jun 2002, Bosko Milekic wrote: >On Thu, Jun 20, 2002 at 01:10:39PM -0700, Matthew Hunt wrote: >> 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. > > Interesting. How would you have a key bound sequence in mutt set off >the script on the message, though? For instance, if I do a "ctrl+B", how >would you ensure that the Right Thing happens, without modifying mutt >code? Check out mutt2procmailrc written by my good friend timball: http://www.ghettohack.net/timball/ It rocks. Brandon D. Valentine -- http://www.geekpunk.net bandix@geekpunk.net ++[>++++++<-]>[<++++++>-]<.>++++[>+++++<-]>[<+++++>-]<+.+++++++..++ +.>>+++++[<++++++>-]<++.<<+++++++++++++++.>.+++.------.--------.>+. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message