<<< Date Index >>>     <<< Thread Index >>>

Re: Display Filters



* Troy Piggins <troy@xxxxxxxxx> :
> * Gary Johnson <garyjohn@xxxxxxxxxxxxxxx> :
> > On 2006-06-30, Dave Chandraratnam <davec@xxxxxxxxxxxxxxx> wrote:
> > > Gary,
> > > 
> > > On Thu, Jun 29, 2006 at 10:41:53AM -0700, Gary Johnson wrote:
> > > > 
> [snip]
> > > 
> > > Would it be possible that you could send on the scripts that you have?
> > > The "Demoronizer" and "Exchange" ones in particular.
> > 
> > The mail-to-filter is here:
> > 
> >     http://www.spocom.com/users/gjohnson/mutt/#tocc
> 
> Gary - couple of questions/comments for you...
> 
> Your mail-to-filter has #!/usr/local/bin/perl in first line, but
> many/most distros would be /usr/bin/perl?  It failed for me til I
> realised what was going on and changed that path.
> 
> It works great, though!
> 
> Now, my question.  It works fine with display_filter set to
> mail-to-filter.  However I have my own display filter bash script
> that I was using before I saw yours.  It's a sed -e type one:
[snip]
 
> How can I incorporate both?  Pipe on to the other?

Never mind.  Figured it out - was trying to pipe within the scripts,
when I did this it works:

set display_filter='mail-to-filter | $HOME/bin/display-filter'

-- 
Troy Piggins
  ,-o   Ubuntu v6.06 (Dapper Drake): kernel 2.6.15-25-server, 
 o   )  postfix 2.2.10, procmail 3.22, mutt 1.5.11i,
  `-o   slrn 0.9.8.1/rt (score_color patch), vim 7.0