Spam Filter Rules: AddHeader

Statement AddHeader
Version 2.1.7+
Purpose Allows you to add, replace or remove the specified header line in the message headers

The AddHeader statement requires the full header line in one continuous string, in the format

AddHeader "<full header line>"

From VPOP3 v6.20 onwards, the header modifier format has been extended:

Examples

Changing the subject header

AddHeader "subject: VPOP3SPAM ${Subject}"

Removing a header line, by not setting a value

AddHeader "X-MyHeader:"

Changing the value of a header, or inserting it if it does not already exist

AddHeader "X-MyHeader: The new value of the header named X-MyHeader"