On Friday 27 February 2004 2:57 am, Matthew Hunter wrote: > FWIW, here's how I learn currently (learning from all read > messages, except known spam, and mailing lists dealing with > spam): > > find /home/matthew/Maildir/ -type d -name "cur" | grep -v -i spam | xargs > --max-args=1 -t sa-learn --no-rebuild --ham
I had to do the first couple of parts by hand to see what is happening, but it sort of makes sense: you're eliminating any mail directories that happen to have the word "spam" as part of the NAME of the directory (folder). At first, I thought grep would scan the FILES in each directory passed to it, rather than "the list of filenames" itself [really gotta learn piped precedence :) ] Unfortunately, this doesn't take into consideration "uncaught spam" -- i.e., stuff that really is spam that is in the "wrong" folder. In my case, I have a bit of "history" built up, and although for the most part I've been pretty diligent in removing the garbage, I wouldn't be 100% certain to use this shotgun approach (but that's just me -- this will probably be fine for others) -- Yet another Blog: http://osnut.homelinux.net
pgp1lYlw2NnW2.pgp
Description: signature
