[mew-int 02085] Re: alternative spam flag

Tatsuya Kinoshita tats at example.com
Sun Nov 27 16:03:58 JST 2005


On November 26, 2005, [mew-int 02084],
mew (at gustad.com) wrote:

> > X-BV-Spam-Flag: YES
> 
> If you want to mark these with a default folder, e.g. +spam you can do
> something like (not tested):
> 
> (setq mew-inbox-action-alist
>    `(("X-BV-Spam-Flag:" mew-bv-spam-flag)))
> 
> ;; or add the above entry to your mew-inbox-action-alist
> 
> (defun mew-bv-spam-flag (val)
>   (when (and val (string-match "YES" val))
>      "+spam"))

To add the field to mew-scan-fields, put the following to your
`~/.emacs'

(setq mew-spam: "X-BV-Spam-Flag:")

or put the following to your `~/.mew.el'.

(setq mew-spam: "X-BV-Spam-Flag:")
(setq mew-scan-fields (append mew-scan-fields (list mew-spam:)))
(setq mew-scan-fields (delete "Body" mew-scan-fields))
(setq mew-scan-fields (append mew-scan-fields (list "Body")))

For IMAP, put the following to your `~/.mew.el'.

(setq mew-imap-spam-folder "%spam")
(setq mew-imap-spam-field "X-BV-Spam-Flag:")
(setq mew-imap-spam-word "YES")

See also Mew manual, section "spam".
(M-x info RET d m Mew RET g spam RET)

-- 
Tatsuya Kinoshita



More information about the Mew-int mailing list