On Thu, Jan 01, 2004 at 08:31:09PM -0500, David Yitzchak Cohen wrote: > On Thu, Jan 01, 2004 at 06:04:54PM +0200, Miki Tebeka wrote: > > I'd like mutt not to open the editor when I the subject line ends with > > <eom>, is this possible? > > Simple: do this in your muttrc: > set editor="muttedit" > > ...where muttedit is a cool little script: > #!/bin/sh > > file=$1 > if egrep "^Subject:" $file | egrep -q "<eom>\$" ; then > true > else > vi $file > fi I ilke this version of muttedit better, actually: #!/bin/sh file=$1 if egrep "^Subject:" $file | egrep -q "<eom>\$" ; then touch $file else vi $file fi Happy Muttin', - Dave -- Uncle Cosmo, why do they call this a word processor? It's simple, Skyler. You've seen what food processors do to food, right? Please visit this link: http://rotter.net/israel
Attachment:
pgp7y4jta8V5F.pgp
Description: PGP signature