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:
{bob}Subject: Bob's new subject
) it will only be added to the headers when placed into that user's mailbox#Bibble: ^[a-z]{5}$
- otherwise the original header will be left in placeChanging 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"