On Tuesday 24 August 2004 10:11, Brian Brazil wrote:
> > When I have read email, I want to either delete it,
> > or save it in a folder to run sa-learn on, or keep it.
> > Is there a simple way of doing this?
>> My guide (for Matrix) on the matter:
>http://netsoc.tcd.ie/~bbrazil/matrix/spamassassin/spamassassin.html>> For just the mutt part (from my live config):
>http://netsoc.tcd.ie/~bbrazil/matrix/mutt/conf/spam>> Pressing 'S' will run it through sa-learn --spam nad move it to the
> 'spam' folder. Pressing 'H' will sa-learn --ham and copy it to the
> 'ham' folder.
Thanks very much for the pointer.
I had actually glanced through your tutorial on linux.ie
and also Elkin's more or less unintelligible manual.txt .
I should have made my query a little clearer.
I had over 10,000 messages in this remote account,
99% of them spam.
I reduced this to 5.000 by a simple shell script
looking for "Subject: Bad address" and variants of this.
Now I'd like to go through the 5,000 remaining.
If I could just click "S" or "H" as your lines for muttrc below suggest,
and this transferred the message to specified folders,
that would be fine.
You say "These will allow your to use 'S' and 'H' to mark ham and spam,
and transfer them to the correct folders.
They also will show relevant Spam headers.
You'll probably want to start Mutt with the -y option
to view all the folders. "
But what exactly does the script for "S" do?
It seems to suggest piping to sa-learn,
which I would have thought would be extremely slow
if repeated 4000 times.
Also, what do you mean by "the correct folders"?
Basically, if I could just pressn"S" or "H" and the message went
to a specified folder that would be fine.
====================================================
set folder=/home/bbrazil/mail #alter as appropriate. Needed for the '+'
set wait_ke y=no #Should be a better way of doing this
macro pager "S" "<pipe-message>sa-learn --spam >/dev/null
&<enter><save-message>=spam<enter>"
macro index "S" "<pipe-message>sa-learn --spam >/dev/null
&<enter><save-message>=spam<enter>"
macro pager "H" "<copy-message>=ham<enter><pipe-message>sa-learn --ham
>/dev/null </dev/null &<enter><enter>"
macro index "H" "<copy-message>=ham<enter><pipe-message>sa-learn --ham
>/dev/null </dev/null &<enter><enter>"
unignore X-Spam-Status
unignore X-Spam-Report
mailboxes +ham +spam +caught-spam +default
====================================================
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!