This is an old revision of the document!
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>"
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"