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

Re: Display Filters



* 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:

#v+
#!/bin/bash
# http://aperiodic.net/phil/configs/bin/mutt-display-filter

sed -e '

# fix incorrect sig delimiters
s/^--$/-- /
s/^_____.*/-- /

# yahoo groups links
s/^-----* Yahoo! Groups Sponsor .*/-- /

# humbug notes
/^\[ Humbug.*/d
/^\[ Unix-related topics.*/d
/^\[ replies to the originator.*/d

# try getting rid of "[-- .* --]" notes...
/^\[-- Autoview using .* --]$/d
/^^[][0-9;]*^G\[-- Autoview using .* --]$/d
/^\[-- Attachment .* --]$/d
/^^[][0-9;]*^G\[-- Attachment .* --]$/d
/^\[-- Type: .* --]$/d
/^^[][0-9;]*^G\[-- Type: .* --]$/d
' \
\
| t-prot -acelmtS -Mmutt --spass -L${HOME}/.mutt/mlfooters 
-A${HOME}/.mutt/adfooters
#v-

How can I incorporate both?  Pipe on to the other?

-- 
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