-
Notifications
You must be signed in to change notification settings - Fork 178
Q0905
Nigel Metheringham edited this page Nov 29, 2012
·
2 revisions
I know I can use a system filter to replace certain headers in messages, but how can I add text to existing headers? I want to add [SPAM] to the subject line of messages that appear to be spam.
You can only do this in a round about way, using filter commands like this:
headers_add "New-Subject: SPAM: $h_subject:"
headers_remove subject
neaders_add "Subject: $h_new-subject:"
headers_remove new-subject
This trick works only in system filters, where the commands are obeyed
in order, and affect the master list of headers that apply to the whole
message. You cannot do this with the headers_add
and headers_remove
options on drivers.
- I would like add some custom headers to selected outgoing mail based on
- Is it possible to have Exim add a header to only certain local parts of
- How can I remove some part of the Received: header?
- How I can insert the PGP header line using Exim filters?
- I know I can use a system filter to replace certain headers in messages,
- How do I reject messages that don't have a Message-ID header? How do I