[exim] add_header when header already exists?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Patrick von der Hagen
Fecha:  
A: exim-users
Asunto: [exim] add_header when header already exists?
Hi all,

if a user activates an ooo-message our exchange-server sends
auto-replies even to spam the exchange-server itself judged to be spam
(!!!). However, it does not sent auto-replies if the message contains a
"Precedence: (bulk|junk|list)"-header.

As you can guess my exchange-admin told me to include a "Precedence:
junk" header in every message classified as spam by spamassassin. I'm
not sure I really want to do that, since such a header might already
exist and I don't dare to alter headers that are already present.

Now my question: how does exim react if I do "add_header" (during acl)
for a header that already exists?

What happens if a message has "Precedence: list" and I do "add_header =
Precedence: junk"?
Would exim alter the existing header, would exim add a second header or
would exim skip adding that header?

What happens if a message has "Precedence: junk" and I do "add_header =
Precedence: junk"?
Would it result in one or two header lines?f

The documentation doesn't mention the case that a header might already
exist. But I think I could solve the issue using string-expansion anyway.


-- 
CU,
    Patrick.