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

Re: Display Filters



On Thu, Jun 29, 2006 at 06:58:50PM -0700, Gary Johnson wrote:
> 
> ----------------------------- cut here -----------------------------
> 
> Here's the more conservative of my "[-- .* --]" filters:
> 
> sed -e '
>       /^\[-- Autoview using .* --]$/d
>         /^^[][0-9;]*^G\[-- Autoview using .* --]$/d
>       /^\[-- Attachment .* --]$/d
>         /^^[][0-9;]*^G\[-- Attachment .* --]$/d
>       /^\[-- Type: .* --]$/d
>         /^^[][0-9;]*^G\[-- Type: .* --]$/d
> '
> 

Okay, I'll admit it, I can't figure out how to use this script. Gary, do I
make an excutable script and then source it from .muttrc? I tried that using
just the "Attachment" line, and Mutt keeps telling me there are errors in the
script.

Here's my muttrc line:

message-hook . "source ~/.mutt/scripts/strip"


Here's my script:

sed -e "/^\[-- Attachment .* --].*$/d"


I named the script "strip" and put it in ~/.mutt/scripts".


Thanks!