help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rmail-spam-filter: how to find rejection rule


From: Kevin Rodgers
Subject: Re: rmail-spam-filter: how to find rejection rule
Date: Wed, 19 Apr 2006 17:14:58 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]