Re: sa-learn from a cronjob?

2014-05-01 Thread RW
On Wed, 30 Apr 2014 13:52:52 -0600 Bob Proulx wrote: The maildir exists and a cron script can be used to scan and process mail incoming there. People do it. It works. Saying it does not work or is not sensible is just wrong mean talk. People do this all of the time. So do I. I haven't

Re: sa-learn from a cronjob?

2014-04-30 Thread Bob Proulx
RW wrote: Bob Proulx wrote: The script is looping through mail files in a maildir and processing them remotely on the server through sa-learn. After processing the messages it is moving the messages to mark them as having been read. No, the Maildir spec defines the S flag in the info

Re: sa-learn from a cronjob?

2014-04-27 Thread RW
On Thu, 24 Apr 2014 14:37:52 -0600 Bob Proulx wrote: RW wrote: Ian Zimmerman wrote: RW wrote: RW I don't think it will work for the purpose mentioned, and if RW it's working properly for you, there's a lot you're not RW mentioning. I looked at the script and it looks like an

Re: sa-learn from a cronjob?

2014-04-24 Thread RW
On Wed, 23 Apr 2014 19:15:13 -0700 Ian Zimmerman wrote: On Sun, 20 Apr 2014 12:14:37 -0700 (PDT) Dan Mahoney, System Admin d...@prime.gushi.org wrote: 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

Re: sa-learn from a cronjob?

2014-04-24 Thread Ian Zimmerman
On Thu, 24 Apr 2014 15:07:32 +0100 RW rwmailli...@googlemail.com wrote: RW I don't think it will work for the purpose mentioned, and if it's RW working properly for you, there's a lot you're not mentioning. RW It's only looking for mail in the immediate post-delivery state RW after it's been put

Re: sa-learn from a cronjob?

2014-04-24 Thread RW
On Thu, 24 Apr 2014 09:29:21 -0700 Ian Zimmerman wrote: On Thu, 24 Apr 2014 15:07:32 +0100 RW rwmailli...@googlemail.com wrote: RW I don't think it will work for the purpose mentioned, and if it's RW working properly for you, there's a lot you're not mentioning. RW It's only looking for

Re: sa-learn from a cronjob?

2014-04-24 Thread Bob Proulx
RW wrote: Ian Zimmerman wrote: RW wrote: RW I don't think it will work for the purpose mentioned, and if it's RW working properly for you, there's a lot you're not mentioning. I looked at the script and it looks like an example that would work for Ian fine. There are some points of shell

Re: sa-learn from a cronjob?

2014-04-24 Thread Bob Proulx
Ian Zimmerman wrote: Here is my cronjob for that purpose, in its entirety. Note that each of ~/spam-corpora{ham,spam} is a Maildir. There is a small race condition between the sa-learn run and the move to cur, which wasn't worth fixing in my case; if you use this and fix it let me know :) I

Re: sa-learn from a cronjob?

2014-04-23 Thread Ian Zimmerman
On Sun, 20 Apr 2014 12:14:37 -0700 (PDT) Dan Mahoney, System Admin d...@prime.gushi.org wrote: 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. Here is my cronjob for

Re: sa-learn from a cronjob?

2014-04-21 Thread Benny Pedersen
Dan Mahoney, System Admin skrev den 2014-04-20 21:14: Perl's Mail::Box seems like a heavy tool for this simple task. Does anyone else have any recommendations? if you are happy with dovecot, you can use dovecot-antispam plugin to handle this live learning for all users that is afraid of

Re: sa-learn from a cronjob?

2014-04-21 Thread James Michael Keller
On 04/20/2014 03:14 PM, 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

sa-learn from a cronjob?

2014-04-20 Thread Dan Mahoney, System Admin
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

RE: sa-learn from a cronjob?

2014-04-20 Thread David Jones
fetchmail works well. Use procmail if needed. From: Dan Mahoney, System Admin d...@prime.gushi.org Sent: Sunday, April 20, 2014 2:14 PM To: users@spamassassin.apache.org Subject: sa-learn from a cronjob? All, Most of my users aren't command-line friendly

Re: sa-learn from a cronjob?

2014-04-20 Thread John Hardin
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

Re: sa-learn from a cronjob?

2014-04-20 Thread Thomas Harold
On 4/20/2014 3:14 PM, 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. We do this, but you *really* need to trust your users

Re: sa-learn from a cronjob?

2014-04-20 Thread Daniel Staal
--As of April 20, 2014 12:14:37 PM -0700, Dan Mahoney, System Admin is alleged to have said: 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