This is a discussion on Re: Long lines with postmap within the mailing.postfix.users forums, part of the Mail Servers and Related category; On Sun, 9 May 2004, Wietse Venema wrote: > Additional comment: if the idea is to have postmap fold long ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Sun, 9 May 2004, Wietse Venema wrote:
> Additional comment: if the idea is to have postmap fold long header > lines, then the code should recognize that something is a header. > > It should not fold non-header text, and it probably also should > not apply header patterns to non-header text. > > In fact, one might want to invoke the mime_state() engine let it > do the hard work. > > postmap -M body -q... apply body patterns > postmap -M primary,mime,nested -q... apply header patterns > Yes, the MIME parser approach did occur to me, but it is not clear that test cases will always be complete messages. Sometimes they will be just random collections header-valued test verctors. So the two solutions solve different problems. With "-M" one might even want to specify separate RE map lists for each of the header types. Something along the lines of: $ postmap -Mheader=map[,map...] -Mmime=... -Mnested=... -q - bodymap ... -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majordomo@postfix.org?body=unsubscribe%20p ostfix-users> |