Avatar (Fabio Alessandro Locati|Fale)'s blog

An idea to fight spam

February 28, 2013

Today I would like to give you an idea on how to implement a spam system that can reduce some kind of spam. The problem Sometimes a company or a politician, that does not respect the usual privacy policy, continues to send e-mails even if the user already tried to unsubscribe. My postulates The people who usually send this kind of e-mail are not very familiar with how e-mail work or how the privacy policy works.

Read More

How to send an e-mail with attachment from the command line

January 3, 2013

Have you ever had to develop a script in UNIX that has to send an email? If you have, probably you have used the “mail” function since this program is the standard program to send e-mails in UNIX environments if you are using the CLI (Command Line Interface). The manual for mail reports this as mail usage prototype: mail -r [sender] -s [subject] receiver-1[,receiver-2,...,receiver-n] > [File with the body] I think all the parameters are pretty straightforward except the “File with the body” one.

Read More