Re: [Evolution] Wish list: Append file when saving a message.



An easy way is (works with local SA and SA on IMAP servers): Create a
folder SPAM and move all SPAM messages to this folder. You can report
this as SPAM to SA (manually or automatic and periodically) using SA
built in features:

$ sa-learn --spam --showdots --mbox <SPAM.mbox>

Everything does go off to one folder, however I use Maildir on my server. So
each message is, of course, a separate file.

You still should be able to deal with this in several ways:

- Create an mbox folder just for spam, in addition to your maildir
folders.  In Evolution you add another mail account of type "standard
Unix mbox", but it will just show up in your folder list.  Drag your
spam there.

- Run sa-learn on the maildir folder.  Create yourself a shell script
along the lines of:


  for MailFile in /my/maildir/folder/spam/new/*  \
                /my/maildir/folder/spam/cur/*
  do
    sa-learn --spam --showdots --mbox $MailFile
  done


Either way should do it without needing Evolution changed.  

I personally would object to an "append to file" feature which is based
on the assumption that the file just so happens to match the mbox
format.  Any feature like that would be better defined in Evolution as
"add to folder", working with any folder format (mbox, maildir, imap). 
If you want to make your folder mbox for external side effects like
sa-learn, you can.

- Alan
-- 
Alan Millar                  Email: Alan Millar LPCorp com
System Administrator         Voice: 503-821-5450
Louisiana-Pacific            Fax:   509-692-3948





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