Get a lot of spam — use spamassasin.

If you get a lot of spam into your local inbox and do not want your service provider to filter them for you, like me :), then you can use spamassasin.

The benefit with this approach is that all the spam will be delivered to your local inbox and you do not need to do anything on the server. You can blacklist, whitelist, report message as spam all on your client and it would not change anything on the server. So you control your mail, isn\’t that great. What to do, start with minimal things:

sudo yum install spamassassin evolution-spamassassin

Now configure spamassasin to start on system bootup. And then configure your evolution to use spamassasin.

You can do this in the evolution preferences -> Mail Preferences -> Junk


Perl script to create csv files with a pattern – Generic script.

I was having a really bad day and needed a quick solution to create some csv files. And this I needed to do for multiple data kinds and patterns, so I created this small script to do the job for me…

#Number of rows required in the output.

$rows = 100;

#The config and the output file

open (CF_FILE, \”<Config.test\”);
open (OUT_FILE, \”>test.csv\”);

# No need to change anything below this.

$count = 0 ;

#read a line from config file of the type

#also any line starting with # is treated as comment.

# startingvalue incrementvalue

# so you can have any number of fields here and all of them you would be joined with , to write to the output file.
while (<CF_FILE>)
/^#/ && next;
@vars = split(/ /);
$arr[$count] = $vars[0];
$arr_inc[$count] = $vars[1];
for ($i=0; $i < $rows; $i++)
$line = join (\”,\”,@arr);
print OUT_FILE \”$line\\n\”;
for ($j=0; $j < $count; $j++)
$arr[$j] += $arr_inc[$j];