Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Alexander Wirt
Rudy Gevaert schrieb am Friday, den 29. July 2011: > Indeed that works. I tried it, however when you run it as the root > user it creates ~root/.spammassasin/config file. > > I have tried to use the /usr/sbin/amavisd-new-cronjob script, but > I'm stuck with the quoting. :( It has to run as user

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Rudy Gevaert
Indeed that works. I tried it, however when you run it as the root user it creates ~root/.spammassasin/config file. I have tried to use the /usr/sbin/amavisd-new-cronjob script, but I'm stuck with the quoting. :( -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Alexander Wirt
Rudy Gevaert schrieb am Friday, den 29. July 2011: > I saw that the cleaning script has a way to see if it is turned on or off. > > In /usr/bin/sa-learn we have > > if ( !$spamtest->{conf}->{use_bayes} ) { > warn "ERROR: configuration specifies 'use_bayes 0', sa-learn disabled\n"; > exit 1;

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Rudy Gevaert
I saw that the cleaning script has a way to see if it is turned on or off. In /usr/bin/sa-learn we have if ( !$spamtest->{conf}->{use_bayes} ) { warn "ERROR: configuration specifies 'use_bayes 0', sa-learn disabled\n"; exit 1; } -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Alexander Wirt
Rudy Gevaert schrieb am Friday, den 29. July 2011: > I agree the patch isn't covering all cases. > > Can you tell me which files I need to check? Or should I just check > the entire dir? at least all .cf in /etc/spamassassin/** and ~.spamassassin. But maybe some perl snippet would be easier. I'l

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Rudy Gevaert
I agree the patch isn't covering all cases. Can you tell me which files I need to check? Or should I just check the entire dir? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Alexander Wirt
Rudy Gevaert schrieb am Friday, den 29. July 2011: > Package: amavisd-new > Version: 1:2.6.4-3 > Severity: normal > Tags: patch > > This issue was raised in bug #447040. However it was not fixed. > I'm still getting emails that saying I'm not using bayes so it can > clean the database. > > See

Bug#635861: amavisd-new-cronjob should check if bayes is switched off

2011-07-29 Thread Rudy Gevaert
Package: amavisd-new Version: 1:2.6.4-3 Severity: normal Tags: patch This issue was raised in bug #447040. However it was not fixed. I'm still getting emails that saying I'm not using bayes so it can clean the database. See also LP: #165184, comment 37 and 38. /usr/sbin/amavisd-new-cronjob