Delay ACL header edits until transport time.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 14 Jun 2015 12:51:55 +0000 (13:51 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 Jun 2015 12:51:55 +0000 (13:51 +0100)
commit1e5ccd7c52be79d1de45691a0bb46cbb1a686bf0
tree85782c3553c377efb918c06fe5ee8cd0e9bb0628
parent285fc90e0acea923ffd75380e74e7199e48bb176
Delay ACL header edits until transport time.

Don't use the `add_header' ACL control any more.  Instead, just
accumulate the desired header additions and removals in variables, and
apply them at transport time.

This way, the headers we see in the message are the unmodified ones, as
the message was originally given to us.  We can therefore apply header
/removals/ (which aren't allowed in ACLs, so have to be delayed to
routing/transport time) coherently, without the risk of clobbering
the headers we've added ourselves.
base.m4
defs.m4
exchange.m4
spam.m4