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; On Sunday, May 09, 2004 at 17:49 CEST, Wietse Venema <wietse@porcupine.org> wrote: > I suggest ...


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
Magnus Bäck
 
Posts: n/a
Default Re: Long lines with postmap

On Sunday, May 09, 2004 at 17:49 CEST,
Wietse Venema <wietse@porcupine.org> wrote:

> 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.


"-u" for "unfold" would be true to RFC (2)822, but would confuse
since "-f" already is "fold".

> In addition, it would be nice if the code gave consistent
> treatment to:
>=20
> +-------------
> |% postmap -q - maptype:mapname <<EOF
> |some
> | multi-line
> | text
> |EOF
> +-------------
>=20
> and
>=20
> +-------------
> |% postmap -q 'some
> | multi-line
> | text' maptype:mapname
> +-------------


What would be the semantics of the latter case if multiple keys
are specified as input? For example, should the two cases below
be equivalent?

$ cat > /tmp/foo
Subject: A long
subject line
X-Foo: bar
^D
$ postmap -lq "`cat /tmp/foo`" maptype:mapname
$ postmap -lq - maptype:mapname < /tmp/foo

If they should be equivalent, I think postmap should be rewritten
somewhat so that there only is one query function that is used for
both modes, and that the input key-splitting takes place elsewhere.

If they should not be equivalent, what would be the semantics of
the command below?

$ postmap -q 'Subject:
A multi-line header
some other text' maptype:mapname

(Please, slap me with a clue stick if required.)

--=20
Magnus B=E4ck
magnus@dsek.lth.se
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:16 AM.


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