knowledge-database (beta)

Current group: comp.mail.mutt

mutt, t-prot and reply

mutt, t-prot and reply  
Sven Geggus
 Re: mutt, t-prot and reply -> apply filter from editor  
Sven Guckes
 Re: mutt, t-prot and reply -> apply filter from editor  
Sven Geggus
 Re: mutt, t-prot and reply -> apply filter from editor  
Sven Guckes
From:Sven Geggus
Subject:mutt, t-prot and reply
Date:Fri, 10 Dec 2004 19:39:03 +0000 (UTC)
Hi there,

a few days ago I discovered t-prot which prevents me from viewing TOFU-Style
Email (german acronym).

This works using the display_filter capability of mutt.

So far so good, but when I reply to a filtered Email, mutt just uses the
Original Mail.

Is there a possibility to setup mutt in a way, that a filter is applied to a
message before reply, e.g. using a hook or something?

Sven

--
"And I'm right. I'm always right, but in this case I'm just a bit more
right than I usually am." (Linus Torvalds, Sunday Aug 27, 2000)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web
From:Sven Guckes
Subject:Re: mutt, t-prot and reply -> apply filter from editor
Date:10 Dec 2004 23:18:12 GMT
* Sven Geggus [2004-12-10]:
> a few days ago I discovered t-prot which prevents me from
> viewing TOFU-Style Email (german acronym). This works using the
> display_filter capability of mutt. So far so good, but when I
> reply to a filtered Email, mutt just uses the Original Mail.

the display_filter is only active when showing a mail. feature.

> Is there a possibility to setup mutt in a way, that a filter is
> applied to a message before reply, e.g. using a hook or something?

some editors have a "filter" feature.
should be as easy to apply as
the display_filter itself.
example for vi (and clones):
:%!filter

you could also "set editor=script"
which makes use of the display_filter -
but there are always cases
when you do *not* want this.

i suggest applying the filter
with an editor macro/mapping
when you *really* want it.

Sven
From:Sven Geggus
Subject:Re: mutt, t-prot and reply -> apply filter from editor
Date:Sat, 11 Dec 2004 14:33:58 +0000 (UTC)
Sven Guckes wrote:

> some editors have a "filter" feature.

The Problem with this is the fact, that the message has already got massaged
by mutt when the Editor is going to handle it (quotes, Intro, signature,
etc.).

The t-prot Filter should be applied before doing so. In case of
display_filter f-prot can be turned of using macros this should be possible
in the reply case as well.

Sven

--
This APT has Super Cow Powers.
(apt-get --help on debian woody)

/me is giggls@ircnet, http://sven.gegg.us/ on the Web
From:Sven Guckes
Subject:Re: mutt, t-prot and reply -> apply filter from editor
Date:11 Dec 2004 15:10:12 GMT
* Sven Geggus [2004-12-11]:
> Sven Guckes wrote:
>> some editors have a "filter" feature.
>
> The Problem with this is the fact, that the message
> has already got massaged by mutt when the Editor is
> going to handle it (quotes, Intro, signature, etc.).

well, you can pipe the message through the filter
and then save the result in a temporary file:
| filter > file

bottom line: this is an editing issue.

> The t-prot Filter should be applied before doing so.

of course you could add yao (yet another option) to mutt and
hope for its integration - but i wouldn't hold my breath.

> In case of display_filter f-prot can be turned off using
> macros this should be possible in the reply case as well.

more options?

Sven
   

Copyright © 2006 knowledge-database   -   All rights reserved