[mew-int 01667] Re: spam again ( sorry )
Francesco Scaglioni
fgs at example.com
Tue Dec 2 19:03:28 JST 2003
From: mew at example.com
Subject: [mew-int 01664] Re: spam again ( sorry )
Date: Tue, 02 Dec 2003 00:21:08 +0100 (CET)
> From: Francesco Scaglioni <fgs at example.com>
> Subject: [mew-int 01657] Re: spam again ( sorry )
> Date: Fri, 28 Nov 2003 15:32:29 +0000 (GMT)
>
> > What I am trying to do is have mew pass its mail through
> > bogofilter on the "way in" as it were so that X-spam headers get
> > added on the fly. IS procmail the best way of doing this?
>
>
> It depends on your setup. If you have an account on the mail server
> and if sendmail (or any other mta) is already configured to run
> procmail and you have access to bogofilter/wordlist.db you should be
> able to make a file in your home directory called .procmailrc
> containing:
>
> :0fw
> | bogofilter -u -e -p
>
> This should add a X-Bogosity: header to the message.
>
Thanks,
I now have mail in /var/spool/mail/fgs with X-bogosity headers
but despite having a ~/.mew..el which says :
(autoload 'mew "mew" nil t)
(setq mew-name "Francesco Scaglioni") ;; (user-full-name)
(setq mew-user "fgs") ;; (user-login-name)
(setq mew-mail-domain "epulse.net")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; for local mail in /var/spool/mail/fgs
(setq mew-mailbox-type 'mbox)
(setq mew-mbox-command "incm")
(setq mew-mbox-command-arg "-d /var/spool/mail/fgs")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(setq mew-smtp-server "xxx.xx.xx.xxx")
(autoload 'mew-user-agent-compose "mew" nil t)
(if (boundp 'mail-user-agent)
(setq mail-user-agent 'mew-user-agent))
(if (fboundp 'define-mail-user-agent)
(define-mail-user-agent
'mew-user-agent
'mew-user-agent-compose
'mew-draft-send-letter
'mew-draft-kill
'mew-send-hook))
(defun mew-spam-bogofilter (val)
(let ((case-fold-search t))
(if (string-match "yes" val) ?D)))
(setq mew-inbox-action-alist
`(
("X-Bogosity:" mew-spam-bogofilter)
))
followed by a load of sruff to display msoffice stuff ...
mew will not collect mail from the spool but on starting ( or on
pressing i after having started ) mew scans ~/Mail/inbox and does
not fetch mail from the spool.
Any help much appreciated
Francesco
More information about the Mew-int
mailing list