sa_patgen

A lot of spammers use modified words to get throuth spam filters. What they do is take a word like ‘casino’ and insert a random character into it. For example ‘ca!sino’. If you get a lot of spam with words modifed like this, then you can use sa_patgen.pl to generate pattern rules for SpamAssassin.

All you have to do is specify the score to add for each modified word match (I use 0.5) and a list of words like casino, gambling, viagra, etc. The script will output a set of rules to match modified words. You can save the output in your local.cf file or pipe it somewhere else.

sa_patgen.pl

ldap2mutt

Although Mutt can query LDAP directories for addresses directly, sometimes connectivity to LDAP server is troublesome (firewalls, company policies, etc). One way to go around this problem would be to create Mutt addressbook regularly from the content of LDAP directory. This script does exactly this. Specify which LDAP server to query, the branch where people records are, and the filter to use. Output can be redirected to the file of your choice.

ldap2mutt.pl

Vim for Perl developers

This is my attempt to provide a clear and simple instructions on adopting Vim text editor for programming needs. I am using Perl as the programming language in the examples, but most of this document will apply equally for any other programming language.

Update: This post was translated into Portuguese by Alceu Rodrigues de Freitas Junior.

Continue reading Vim for Perl developers

NovaMail

This script is an attempt of improving NovaStor NovaNet 8 notification system. It allows for different messages to different roles (backup administrator/IT manager/etc).

This code is very old and I haven’t looked at for some time now. I am also not using NovaNet anymore, so you are on your own.

novamail.tar.gz