Kirya [.net]

Last updated: Apr 17, 2007

Change the Subject: header of messages not going through antispam filter

Here is my maildrop rule to change the subject of any message delivered without being filtered by my antispam filter (I use dspam but this can be easily adapted to any other mail filter):

if (!/^X-DSPAM-Signature:/:hD)
{
   exception {
        SUBJ=`reformail -x 'Subject:'`
        xfilter 'reformail -A "Subject: [NOT FILTERED] $SUBJ"'
   }
}

As I use dspam to connect to clamd to scan for infected messages, this can be used especially on Windows environment to warn the end-user that the message can potentially be infected by a virus.

About

You will find here some information about me and my different projects. I am involved in several open source projects, and try to promote Free software. This site is thus mainly dedicated to Free Software use on GNU/Linux systems. Please do not hesitate to contact me for any comments on this site.