* rmail-spam-filter: how to find rejection rule
@ 2006-04-19 2:03 gry
2006-04-19 23:14 ` Kevin Rodgers
0 siblings, 1 reply; 2+ messages in thread
From: gry @ 2006-04-19 2:03 UTC (permalink / raw)
[GNU Emacs 22.0.50.1 (sparc-sun-solaris2.9, X toolkit)]
rmail-spam-filter.el arch-tag: 03e1d45d-b72f-4dd7-8f04-e7fd78249746
I have rmail-spam-filter basically working. But it appears that some
entry in
rsf-definitions-alist is catching a portion of valid email.
Is there any way to
find out *which* clause in rsf-definitions-alist caught a particular
message
[as saved in XRMAIL-SPAM]? It would help tremendously if there was
some
record made of which clause caught which message. Perhaps an added
header
in each mesasge in XRMAIL-SPAM, or a separate (optional) log file
showing
message-id vs. rsf-definitions-alist entry?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rmail-spam-filter: how to find rejection rule
2006-04-19 2:03 rmail-spam-filter: how to find rejection rule gry
@ 2006-04-19 23:14 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-04-19 23:14 UTC (permalink / raw)
gry@ll.mit.edu wrote:
> [GNU Emacs 22.0.50.1 (sparc-sun-solaris2.9, X toolkit)]
> rmail-spam-filter.el arch-tag: 03e1d45d-b72f-4dd7-8f04-e7fd78249746
>
> I have rmail-spam-filter basically working. But it appears that some
> entry in
> rsf-definitions-alist is catching a portion of valid email.
>
> Is there any way to
> find out *which* clause in rsf-definitions-alist caught a particular
> message
> [as saved in XRMAIL-SPAM]? It would help tremendously if there was
> some
> record made of which clause caught which message. Perhaps an added
> header
> in each mesasge in XRMAIL-SPAM, or a separate (optional) log file
> showing
> message-id vs. rsf-definitions-alist entry?
That of course is possible if you hack the rmail-spam-filter function.
But for a quick-and-dirty diagnostic, try this:
(defadvice check-field (after log-spam-result activate)
"Log spam result in the *Messages* buffer."
(when (and (first ad-return-value) (rest ad-return-value))
(message "check-field: %s test in %s rule matched \"%s\""
(ad-get-arg 0) (ad-get-arg 2) (ad-get-arg 1))))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-19 23:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 2:03 rmail-spam-filter: how to find rejection rule gry
2006-04-19 23:14 ` Kevin Rodgers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).