* Re: spam.el/spam-stat checks in non-mail groups [not found] <87ekzealuw.fsf@everett.mit.edu> @ 2003-08-22 10:31 ` Ted Zlatanov 2003-08-22 19:26 ` David Z Maze 0 siblings, 1 reply; 3+ messages in thread From: Ted Zlatanov @ 2003-08-22 10:31 UTC (permalink / raw) On Thu, 21 Aug 2003, dmaze@mit.edu wrote: > I have spam.el happily set up to use spam-stat for all of my > incoming mail. This works great, but I have groups that aren't mail > groups. In particular, I have a couple of groups that are read-only > archives of mailing lists[1], so these also get a fair bit of spam. > Is there a way to run the spam.el checks on messages in non-news > groups, and automatically give spam messages '$' marks if they need > it? Well these are two different things. You can make a newsgroup a spam group, so unread or unseen messages will get the spam-mark. Just make sure spam-process-destination is nil because you can't move messages of course. You can't currently do spam checks on unseen messages in a newsgroup. It should be possible though, by running spam-split on every unseen message at summary entry and checking if the output is equal to spam-split-group (remember that the ifile backend, for instance, will output a valid group name for non-spam so you can't just check for a string). It's pretty simple to do this. Maybe in such groups the spam-process-destination should be automatically ignored but all other spam functionality should be available. I don't think there's a way to automatically find out if a group is not a mail group, is there? What do you think? Ted ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: spam.el/spam-stat checks in non-mail groups 2003-08-22 10:31 ` spam.el/spam-stat checks in non-mail groups Ted Zlatanov @ 2003-08-22 19:26 ` David Z Maze 2003-08-23 14:07 ` David Z Maze 0 siblings, 1 reply; 3+ messages in thread From: David Z Maze @ 2003-08-22 19:26 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 423 bytes --] Ted Zlatanov <tzz@lifelogs.com> writes: > You can't currently do spam checks on unseen messages in a newsgroup. > > It should be possible though, by running spam-split on every unseen > message at summary entry and checking if the output is equal to > spam-split-group (remember that the ifile backend, for instance, will > output a valid group name for non-spam so you can't just check for a > string). Hmm, like this? [-- Attachment #2: Type: application/emacs-lisp, Size: 526 bytes --] [-- Attachment #3: Type: text/plain, Size: 554 bytes --] I should probably use gnus-newsgroup-unseen rather than gnus-newsgroup-articles. But for a first pass, this appears to at least be close. > I don't think there's a way to automatically find out if a group is > not a mail group, is there? I actually only care about a single backend, which is easier to check. You can check if something is news or not (gnus-news-group-p), at least. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: spam.el/spam-stat checks in non-mail groups 2003-08-22 19:26 ` David Z Maze @ 2003-08-23 14:07 ` David Z Maze 0 siblings, 0 replies; 3+ messages in thread From: David Z Maze @ 2003-08-23 14:07 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 503 bytes --] David Z Maze <dmaze@mit.edu> writes: > Ted Zlatanov <tzz@lifelogs.com> writes: > >> You can't currently do spam checks on unseen messages in a newsgroup. >> >> It should be possible though, by running spam-split on every unseen >> message at summary entry and checking if the output is equal to >> spam-split-group (remember that the ifile backend, for instance, will >> output a valid group name for non-spam so you can't just check for a >> string). > > Hmm, like this? This seems a little better: [-- Attachment #2: Type: application/emacs-lisp, Size: 531 bytes --] [-- Attachment #3: Type: text/plain, Size: 642 bytes --] Having a little more documentation on what all of these hooks are and what you can do from where would be useful, too. gnus-summary-mark-article just doesn't work from gnus-select-group-hook (invoking duplicate suppression fails because gnus-data hasn't been built), but modifying the gnus-newsgroup-* lists directly is tricky. > I should probably use gnus-newsgroup-unseen rather than > gnus-newsgroup-articles. But for a first pass, this appears to at > least be close. -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-08-23 14:07 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <87ekzealuw.fsf@everett.mit.edu> 2003-08-22 10:31 ` spam.el/spam-stat checks in non-mail groups Ted Zlatanov 2003-08-22 19:26 ` David Z Maze 2003-08-23 14:07 ` David Z Maze
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 NNTP newsgroup(s).