User Tools

Site Tools


reference:spamrules_addfixedtexttosubject
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


reference:spamrules_addfixedtexttosubject [2021/12/13 15:20] (current) – created paul
Line 1: Line 1:
 +======Use the spam filter scripting to add fixed text to the subject on incoming messages======
 +This needs VPOP3 version 5 or later.
 +
 +This script allows you to add fixed text to the subject an incoming message, eg so that users can see that a message is an incoming rather than local message (be aware of weaknesses in this strategy - eg forwarded messages, spoofing of the marker, breaking DKIM message signatures, etc)
 +
 +Add the following to the ''spamrules_userchecks.txt'' file. This script file only gets processed on incoming messages (the ''spamrules_localmail.txt'' script ends the processing of locally sent messages)
 +
 +<code>
 +IfMatch subject /\[external\]/
 +# modification already exists
 +Else
 + AddHeader "Subject: [external] ${Subject}"
 +EndIf
 +</code>
  
reference/spamrules_addfixedtexttosubject.txt · Last modified: 2021/12/13 15:20 by paul