Albert Shih | 14 May 23:47

grep -v in a mail.

Hi all

I would like to known if it's possible (and easy of course) to make something like 

	grep -v "someword" 

in a message when I read it, and this depend the from.

More precisly what I want to do is (for example)

	grep -v "sshd"

in the body of a message send by the system (like logcheck). But of course
I don't want this grep in a «normal» message.

Regards.
--

-- 
Albert SHIH
SIO batiment 15
Observatoire de Paris Meudon
5 Place Jules Janssen
92195 Meudon Cedex
Heure local/Local time:
Mer 14 mai 2008 23:45:01 CEST

Gary Johnson | 15 May 00:25

Re: grep -v in a mail.

On 2008-05-14, Albert Shih <Albert.Shih <at> obspm.fr> wrote:
> Hi all
> 
> I would like to known if it's possible (and easy of course) to 
> make something like 
> 
> 	grep -v "someword" 
> 
> in a message when I read it, and this depend the from.
> 
> More precisly what I want to do is (for example)
> 
> 	grep -v "sshd"
> 
> in the body of a message send by the system (like logcheck). But 
> of course I don't want this grep in a «normal» message.

   message-hook ~A            'set display-filter='
   message-hook '~f logcheck' 'set display-filter="grep -v sshd"'

See the mutt manual, manual.txt, not the man page, for details.

HTH,
Gary


Gmane