On Sun, 20 Apr 2014, Dan Mahoney, System Admin wrote:
All,
Most of my users aren't command-line friendly. I'd like to basically have my
IMAP server default to handing out two imap mailboxes that get
auto-crontabbed to training bayes.
Ideally, I'd also like to make it so that things dropped in the learn_spam
folder are deleted, and stuff in the learn_ham folder (mistake-based
training) are de-tagged and moved back to the inbox. Alternatively, a single
"learned" folder would do.
Perl's Mail::Box seems like a heavy tool for this simple task. Does anyone
else have any recommendations?
-Dan
Warning/recommendation: do NOT learn from user-supplied FP/FN reports
without manual review, unless you really trust the individual user's
judgement and responsibility.
Far too often users will do things like drop stuff they actually *did*
intentionally subscribe to (or that is from a vendor they *have* bought
things from) into the spam-training folder rather than unsubscribing
properly when they lose interest.
For the learn-ham folder, train your users to *copy* the message from
their spam quarantine folder to their learn-ham folder and then *move* it
back to their inbox. That way you don't need to re-deliver it to their
inbox via scripting, they've already done that if they want to keep a copy
of the message.
If you still want to script that instead, take a look at "formail". It's
part of the procmail suite if you have that installed.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhar...@impsec.org FALaholic #11174 pgpk -a jhar...@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
Warning Labels we'd like to see #1: "If you are a stupid idiot while
using this product you may hurt yourself. And it won't be our fault."
-----------------------------------------------------------------------
3 days until Max Planck's 156th birthday