maxigas | 21 Apr 2012 08:09
Gravatar

[mew-int 3076] kill file

hi!

is there a way to implement a kill file in mew?

i would like mew to put the D mark automatically to messages after mail download that are set in the
configuration file in a similar way to guess-alist.

for example to say that "whenever somebody <at> example.org sends me a message it should automatically marked
D after download".

maxigas, kiberpunk

--

"The members of the government know our arguments very well,
the demands of the Network are clear.  They *know* what we want.
The question is how to make them *do* what we want."

Magic: http://maxigas.hu/maxigas.gpg
EE2E D824 B5C3 4544 C2B8  B75F 2183 52B5 8EC1 57C1

Christophe TROESTLER | 21 Apr 2012 10:12
X-Face
Picon

[mew-int 3077] Re: kill file

Hi,

On Sat, 21 Apr 2012 08:09:15 +0200, maxigas wrote:
> 
> is there a way to implement a kill file in mew?
> 
> i would like mew to put the D mark automatically to messages after
> mail download that are set in the configuration file in a similar
> way to guess-alist.
> 
> for example to say that "whenever somebody <at> example.org sends me a
> message it should automatically marked D after download".

You can use a spam filter.  For example, for spamassasin, put in your
mew-rc-file 

(setq mew-spam-prog "sa-learn")
(setq mew-spam-prog-args '("--spam" "--single"))
(setq mew-ham-prog "sa-learn")
(setq mew-ham-prog-args '("--ham" "--single"))

(setq mew-inbox-action-alist
      '(("X-Spam-Flag:" (?D "YES" "yes"))
	))

and then, in ~/.spamassassin/user_prefs, put

blacklist_from somebody <at> example.org

or
(Continue reading)

Petter Gustad | 21 Apr 2012 10:32

[mew-int 3078] Re: kill file

From: maxigas <maxigas <at> anargeek.net>
Subject: [mew-int 3076] kill file
Date: Sat, 21 Apr 2012 08:09:15 +0200 (CEST)

> for example to say that "whenever somebody <at> example.org sends me a
> message it should automatically marked D after download".

You should also be able to match the From field in
mew-inbox-action-alist for this purpose, e.g.

(setq mew-inbox-action-alist
       '(("From:"
          (?D "somebody <at> example.org"))))

//Petter


Gmane