Monthly Archives: February 2007
ESR gives up on Fedora, moves to Ubuntu
| 23-Feb-2007 | Posted by Sonia Hamilton under Ubuntu |
The title says it all. ESR has given up on Fedora and moved to Ubuntu. Thanks to BarraPunto.
apt & Translation-en_AU
| 22-Feb-2007 | Posted by Sonia Hamilton under Ubuntu |
On Ubuntu Edgy I notice that when I do an ‘apt-get update’ I get
messages like this:
Get:1 http://au.archive.ubuntu.com edgy Release.gpg 191B Ign http://au.archive.ubuntu.com edgy/main Translation-en_AU ^^^ ^^^^^^^^^^^^^^^^^
Solution is to unset language before doing updates:
$ unset LANG LANGUAGE $ sudo apt-get update
Thanks to Michael Fox, SLUG list, 13 Jan 07.
beat image spam with procmail
| 03-Feb-2007 | Posted by Sonia Hamilton under Procmail |
I blogged a while ago about using FuzzyOcr for detecting image spam. My FuzzyOcr isn’t working and at the moment I haven’t got time to fix it, so I wrote a procmail recipe to solve the problem instead:
# test if body contains gif, html, etc, and get procmail score
:0 Bc
* 3.5^0 Content-Type: image/gif
* 2^0 Content-Type: text/html
/dev/null
SCORE_PM=$=
# pull out SA score and required; if 2 scores > SA req'd, ISGT = 1 (true)
SCORE_SA=`formail -c -xX-Spam-Status: | awk '{print $2}' | awk -F= '{print $2}'`
REQD_SA=`formail -c -xX-Spam-Status: | awk '{print $3}' | awk -F= '{print $2}'`
ISGT=`echo "${SCORE_SA} + ${SCORE_PM} > ${REQD_SA}" | bc -l`
# test if ISGT = 1, if so, spam prob
:0 :
* ISGT ?? ^^1^^
.y_spam_probable/
Recent Comments