From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/2244 Path: news.gmane.org!not-for-mail From: Shao Zhang Newsgroups: gmane.emacs.gnus.user Subject: Re: help with spam.el Date: Thu, 27 Mar 2003 10:30:31 +1100 Message-ID: References: <4nhe9yeykj.fsf@lockgroove.bwh.harvard.edu> <4n7kaopvz5.fsf@lockgroove.bwh.harvard.edu> <4nvfy6850a.fsf@lockgroove.bwh.harvard.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668748 14457 80.91.229.2 (31 Jan 2006 00:52:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:52:28 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:30:24 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!uni-berlin.de!203.185.212.194!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: 203.185.212.194 Original-X-Trace: fu-berlin.de 1048721440 79599505 203.185.212.194 (16 [76489]) X-Face: $>)r}og6b.JbA$y%X0q?2"p4u&N/WI_fF>^HU'dC+Ze8t]K-SgKfn%U On [Wed, 26 Mar 2003 11:30:29 -0500], Ted Zlatanov wrote: >> I expect that spams in my IMAP folder will be automatically marked >> as spam and transfered to the spam group upon exit the summary >> buffer. I will need to occasionally mark/unmark the wrongly guessed >> ones. > > spam.el does not mark *incoming* messages as spam. If you set the > contents parameter of a folder to be spam, then new mail in that > folder will be marked as spam automatically. The idea is that > spam-split will put spam messages in a spam folder, where the new > messages will be automatically marked with the spam-mark. Right. Then my problem is spam-split. The spam messages in my nnimap folders are not split out to the spam folders at all. > Also, you need to train spam detection at first. If you have a lot of > spam stored somewhere, you can train ifile on that spam from the > command line (using category "spam" to indicate the spam contents, as > spam.el does). Does the current spam.el do this if the group is classified as spam groups? Or do I need to run it manually? > I would not recommend making your inbox a spam folder (I think that's > what you are implying above). Mail in the inbox that's spam has to be > manually marked as spam (because spam-split failed to classify it > automatically) and then when you exit the inbox that manually marked > spam will be spam-processed (for instance, with bogofilter - the spam > processor you have set is used) and transferred to whatever you have > set for the spam-process-destination. Agreed. As mentioned above, I am not getting any spam msgs split into my spam folders. >> Not at all, I am very confused as well. I have two imap servers, all >> my emails are in ~/Mail for both server, so I have >> nnimap+work:~/Mail/inbox and nnimap+private:~/Mail/inbox. According >> to the manual, nnimap-list-pattern accepts ~/Mail/*. > > I've never used such folder names, personally, but if it works for you > that's great. I don't like the ~ stuff at all. I wonder what other folders you can have? I see the manual using INBOX as examples, what does that mean? >> I think my split rule is definitely wrong, and that maybe why my >> mails from nnimap folder are not moved to the spam group: >> > (require 'spam) > (setq nnimap-split-download-body t) > (setq nnimap-split-rule '(("private" (".*" nnimap-split-fancy)) > ("work" (".*" nnimap-split-fancy))) > nnimap-split-inbox (quote ("nnimap+private:~/Mail/inbox" "nnimap+work:~/Mail/inbox")) > nnimap-split-fancy '(| > (: spam-split))) Regards, Shao.