This is a discussion on Re: Add/change header instead of reject? within the mailing.postfix.users forums, part of the Mail Servers and Related category; Victor.Duchovni@morganstanley.com: > On Thu, 26 Feb 2004, Wietse Venema wrote: > > > As documented, the PREPEND ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Victor.Duchovni@morganstanley.com:
> On Thu, 26 Feb 2004, Wietse Venema wrote: > > > As documented, the PREPEND action prepends a line to the input line > > that triggered the PREPEND action. > > > > I think that for both body and header checks the "cleanup" PREPEND action > should record the extra headers in the "extracted" section of the queue > file, and that the prepending of the headers should happen in delivery > agents. Perhaps the set of headers to prepend is included in the delivery What says that the result of PREPEND must always be a message header? Postfix does the following: if PREPEND appears in header context, then it requires a valid header label and will not prepend non-header text; if PREPEND appears in body context, then Postfix does not care. Wietse > request, alternatively the delivery agent reads the extracted section > looking for headers to prepend. > > Furthermore, the PREPEND content should either be coerced to a valid > non-MIME header: > > X-Some-Header: YYY -> X-Some-Header: YYY > foo -> X-Postfix-Prepend: foo > Content-([^:]*): foo -> X-Postfix-Prepend: Content-${1}: foo > > or should be ignored with a warning. > > -- > Viktor. > > > |