Laurent Frigault via Postfix-users:
> Hi,
>
> I'm trying to prepend one long header in a perl policy daemon.
> my daemon is returning
> action=PREPEND MyHeader: Some very long line ....
>
> 1/
> At first I thought that posfix will wrap the header in multi-line like
> MyHeader: Some
> very long
> line
>
> But unfortunately not, i got
> MyHeader: Some very long line ....
Postfix does not automatically fold long lines added with PREPEND
etc. There has been no demand, probably because no human is going
to read that stuff.
The SMTP protocol limit (text lines with up to 998 octets) should
be sufficient to convey text that no human is ever going to look
at.
> 2/
> Then I split the line myself and return
> action=PREPEND MyHeader: Some\n very long\n line ...\n
>
> => no success the header got truncated the first \n
As documented, the policy protocol uses newline to terminate the
reply.
> How can I PREPEND a multi-line header ?
Don't.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]