Bluehost.com Web Hosting $6.95

Re: Long lines with postmap

This is a discussion on Re: Long lines with postmap within the mailing.postfix.users forums, part of the Mail Servers and Related category; Victor.Duchovni@MorganStanley.com: [ Charset ISO-8859-1 unsupported, converting... ] > On Sun, 9 May 2004, Magnus B?ck wrote: &...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-09-2004
Wietse Venema
 
Posts: n/a
Default Re: Long lines with postmap

Victor.Duchovni@MorganStanley.com:
[ Charset ISO-8859-1 unsupported, converting... ]
> On Sun, 9 May 2004, Magnus B?ck wrote:
>
> > On Friday, May 07, 2004 at 17:51 CEST,
> > Victor.Duchovni@MorganStanley.com wrote:
> >
> > [...]
> >
> > > Someone should contribute a "-l" switch for "postmap" that supports
> > > header checks by turning on reading of "long lines" in the input
> > > stream. A very simple change for anyone who wants to get their feet
> > > wet contributing new Postfix code (a full patch should include
> > > documentation updates and must follow the existing coding style).

....
>
> Empty lines can reasonably be ignored, but whitespace only lines cannot:
>
> To: user1@domain.tld,<CRLF>
> <TAB><CRLF>
> <TAB>user2@domain.tld<CRLF>
>
> is a valid folded header with *two* header recipients. (<CRLF> will of
> course be just <LF> when headers are stored on UNIX systems rather than
> transmitted between systems).


I suggest giving the user interface some thought. "-l" for "long"
neither rings a bell that RFC822 is involved, nor does it ring a
bell that it controls table lookups.

In addition, it would be nice if the code gave consistent
treatment to:

+-------------
|% postmap -q - maptype:mapname <<EOF
|some
| multi-line
| text
|EOF
+-------------

and

+-------------
|% postmap -q 'some
| multi-line
| text' maptype:mapname
+-------------

That's more a matter of not intentionally breaking things.

Wietse
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:01 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0